Sven Joachim wrote: > On 2007-12-23 10:57 +0100, Jörg-Volker Peetz wrote: > >> since version 22 the function 'find-file-read-only-other-frame' does >> *not switch to read-only mode* normally indicated by the two >> percent-signs in the status line and the contents of the new buffer >> can be changed. > > Thanks for the report. I think the following patch fixes this, can you > please try it? > > > --- files.el 23 Dez 2007 15:07:56 +0100 1.896.2.32 > +++ files.el 23 Dez 2007 15:24:27 +0100 > @@ -1015,9 +1015,11 @@ > documentation for additional customization information." > (interactive "BSwitch to buffer in other frame: ") > (let ((pop-up-frames t) > + ret > same-window-buffer-names same-window-regexps) > - (pop-to-buffer buffer t norecord) > - (raise-frame (window-frame (selected-window))))) > + (setq ret (pop-to-buffer buffer t norecord)) ; save return value > + (raise-frame (window-frame (selected-window))) > + ret)) > > (defun display-buffer-other-frame (buffer) > "Switch to buffer BUFFER in another frame.
Thank you Sven for your fast reply. I've tried the following: - extract files.el from the package-file emacs22-el _22.1+1-2.3_all.deb - patch files.el with your patch - byte-compile it with the emacs function 'byte-compile-file' - copy the new file 'files.elc' into directory /usr/share/emacs/22.1/lisp - start a new emacs without loading ~/.emacs with 'emacs -q' - calling 'find-file-read-only-other-frame' But the new buffer is still writeable. Did I miss something? > >> I've reported this bug also to [EMAIL PROTECTED] > > I can't see it there yet. Have you got any reply? > I don't know, why it doesn't appear on the list. I got the following response from Andreas Schwab <[EMAIL PROTECTED]>: Jörg-Volker Peetz <[EMAIL PROTECTED]> writes: > > since version 22 the function 'find-file-read-only-other-frame' does > > *not switch to read-only mode* indicated by the two percent-signs in > > the status line and the contents of the new buffer can be changed. Thanks for the report, this will be fixed in the next release. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." > Kind regards, > Sven > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

