all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Milan Zamazal <pdm@zamazal.org>
Subject: after change function not invoked on all changes in *Messages*
Date: Fri, 13 Jun 2003 12:14:46 +0200	[thread overview]
Message-ID: <873ciejnc9.fsf@zamazal.org> (raw)

In GNU Emacs 21.3.2 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-06-03 on blackbird, modified by Debian

When I try to install a local after change function on the *Messages*
buffer, it's not invoked on insertions to that buffer via the `message'
function and some other functions.  When I edit the buffer manually, the
after change function gets invoked as expected.  On deletions, the after
change function seems to be always invoked.

Try the following:

- Eval the following code:

   (defvar foo nil)
   (defun my-after-change (&rest args)
     (setq foo (cons args foo)))

- Switch to the *Messages* buffer.

- Apply

   `M-: (add-hook 'after-change-functions 'my-after-change nil t) RET'

- Apply

   `M-: (message "hello") RET'

- There's nothing about the `hello' insertion in the variable `foo'.

- Now try to type or yank some text in *Messages*.

- `foo' should contain information about the changes.

I couldn't find anything in documentation explaining this behavior, so I
think it's a bug.

             reply	other threads:[~2003-06-13 10:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-13 10:14 Milan Zamazal [this message]
2003-06-14 12:29 ` after change function not invoked on all changes in *Messages* Richard Stallman
2003-06-23  7:37   ` Milan Zamazal

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=873ciejnc9.fsf@zamazal.org \
    --to=pdm@zamazal.org \
    /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.