all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: "Andrew W. Nosenko" <andrew.w.nosenko@gmail.com>
Cc: 8463@debbugs.gnu.org,
	Daniel Colascione <dan.colascione@gmail.com>,
	Leo <sdl.web@gmail.com>
Subject: bug#8463: 24.0.50; [PATCH] Direct Edit in *Occur* Buffer
Date: Wed, 01 Jun 2011 19:03:36 -0400	[thread overview]
Message-ID: <kjoc2hupbr.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <BANLkTik=kzoYtFf=9hWtC-yW8kVKiXBhnA@mail.gmail.com> (Andrew W. Nosenko's message of "Mon, 30 May 2011 17:04:33 +0300")

"Andrew W. Nosenko" wrote:

> Is there a way to _disable_ this feature?  I'm quite often edit the
> *Occur* and *grep* buffers for line-up results, etc, just for easier
> understanding results, but I don't want these edits to be mirrored
> into original lines or files from where they are come.

Me too.

I expect C-x C-q to toggle the read-only state of a buffer, not switch
me into some unusual mode. I suggest binding this new mode to some other
key.

Other issues with this:

1. After C-x C-q, I can no longer kill entire lines in the occur buffer.
Trying to do so reports "Text is read-only".

2. After C-x C-q, If I delete some text in the occur buffer, then use
"undo", when I reach the point at which there is no more to undo, I get:
"Wrong type argument: markerp, nil" rather than "No further undo information".

Debugger entered--Lisp error: (wrong-type-argument markerp nil)
  marker-buffer(nil)
  occur-after-change-function(1 40 39)
  primitive-undo(1 ((nil font-lock-face underline 1 . 40) (t 0 . 0)))
  undo-more(1)
  undo(nil)
  call-interactively(undo nil nil)

3. After C-x C-q, M-x revert-buffer in the occur buffer triggers an error:

apply: Wrong number of arguments: #[(regexp nlines bufs &optional buf-name)

  occur-1("*Occur*")
  apply(occur-1 "*Occur*")
  occur-revert-function(t nil)
  revert-buffer(t)
  call-interactively(revert-buffer t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

I guess the mode change clobbers occur-revert-arguments.





  parent reply	other threads:[~2011-06-01 23:03 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10  8:14 bug#8463: 24.0.50; [PATCH] Direct Edit in *Occur* Buffer Leo
2011-04-15  1:11 ` Stefan Monnier
2011-05-28 23:05 ` Chong Yidong
2011-05-29  4:04   ` Leo
2011-05-30 14:04 ` Andrew W. Nosenko
2011-05-30 23:10   ` Richard Stallman
2011-06-01 23:03   ` Glenn Morris [this message]
2011-06-03  2:36     ` Leo
2011-06-03 15:38       ` Stefan Monnier
2011-06-04 21:34         ` Chong Yidong
2011-06-05  9:30           ` Štěpán Němec
2011-06-06 15:34           ` Stefan Monnier
2011-06-09  4:47     ` Leo
2011-06-09  5:14       ` Glenn Morris
2011-06-09  9:44         ` Leo
2011-06-09  9:54           ` Eli Zaretskii
2011-06-09  9:58             ` Leo
2011-06-09  9:42     ` Leo
2011-06-09 18:09       ` Glenn Morris
2011-06-10 13:59         ` Stefan Monnier
2011-06-10 16:14           ` Ted Zlatanov
2011-06-11  9:58           ` Andrew W. Nosenko
2011-06-11 18:00             ` Juri Linkov
2011-06-12 23:10               ` Andrew W. Nosenko
2011-06-18 19:35             ` Chong Yidong
2011-06-18 20:36               ` Andrew W. Nosenko
2011-09-09 11:39 ` Juri Linkov
2011-09-14 19:04   ` Juri Linkov
2011-09-17 21:28   ` Chong Yidong
2011-09-18 19:33     ` Juri Linkov
2011-09-19 18:52       ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=kjoc2hupbr.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=8463@debbugs.gnu.org \
    --cc=andrew.w.nosenko@gmail.com \
    --cc=dan.colascione@gmail.com \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.