GNU bug report logs - #20971
24.4; occur-1 makes my buffer read-only

Previous Next

Package: emacs;

Reported by: Alex Schröder <kensanata <at> gmail.com>

Date: Fri, 3 Jul 2015 09:23:02 UTC

Severity: wishlist

Found in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Schröder <kensanata <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; occur-1 makes my buffer read-only
Date: Fri, 03 Jul 2015 09:21:55 +0000
[Message part 1 (text/plain, inline)]
I'm using isearch to search for something, then I use M-s o to run an occur
for my search term. This results in *Occur* being shown and in the buffer
I'm searching to be read-only. This is confusing. I think what people
intended was to make *Occur* read-only. But occur-mode already inherits
from special-mode which already does (setq buffer-read-only t).

I therefore propose to simply remove the (setq buffer-read-only t) line
from the end of occur-1 in replace.el. See attached patch.
[Message part 2 (text/html, inline)]
[fix_occur.patch (application/octet-stream, attachment)]

This bug report was last modified 4 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.