help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

other-window.el


From: Emanuel Berg
Subject: other-window.el
Date: Sun, 15 Jan 2023 14:30:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Made it use itself ... (yuk)

;;; -*- lexical-binding: t -*-
;;
;; this file:
;;   https://dataswamp.org/~incal/emacs-init/window-other.el

(defmacro in-other-window (&rest body)
  `(let ((buf (window-buffer (next-window))))
     (when (bufferp buf)
       (with-current-buffer buf
         ,@body) )))

(defun apply-in-other-window (fn &rest args)
  (in-other-window
    (apply fn args) ))

(provide 'window-other)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]