Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!cmcl2!beta!hc!ames!xanth!john From: john@xanth.UUCP (John Owens) Newsgroups: comp.emacs Subject: find-file-read-only-other-window Message-ID: <1468@xanth.UUCP> Date: Wed, 1-Jul-87 16:53:08 EDT Article-I.D.: xanth.1468 Posted: Wed Jul 1 16:53:08 1987 Date-Received: Fri, 3-Jul-87 01:49:52 EDT Organization: Old Dominion University, Norfolk Va. Lines: 16 The most frustrating lack of orthogonality in GNU Emacs for me has been the lack of a combination of find-file-read-only and find-file-other window. So - a simple elisp function to share with you all: (defun find-file-read-only-other-window (filename) "Like find-file-read-only, but does it in another window." (interactive "FFind file read-only in other window: ") (switch-to-buffer-other-window (find-file-noselect filename)) (setq buffer-read-only t)) (global-set-key "\^x4\^r" 'find-file-read-only-other-window) -- John Owens Old Dominion University - Norfolk, Virginia, USA john@ODU.EDU old arpa: john%odu.edu@RELAY.CS.NET +1 804 440 4529 old uucp: {seismo,harvard,sun,hoptoad}!xanth!john