all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Milan Zamazal <pdm@zamazal.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Advising forward-char not working properly
Date: Mon, 23 Jun 2003 09:36:53 +0200	[thread overview]
Message-ID: <87znk9w8h6.fsf@zamazal.org> (raw)
In-Reply-To: <E19RAA3-00088J-3I@fencepost.gnu.org> (Richard Stallman's message of "Sat, 14 Jun 2003 08:29:35 -0400")

>>>>> "RS" == Richard Stallman <rms@gnu.org> writes:

            When I advise the function forward-char or backward-char,
        the advice is not invoked if the function is called via its key
        binding.

    RS> These functions are executed directly in many cases.

It's quite suspicious to me why invoking a command through `C-f' behaves
differently than calling it via `M-x forward-char'.  I'm not saying it's
a bug, but I wish Emacs were less mysterious :-|.
    
    RS> Advising built-in functions does not generally work.

If it is technically difficult to ensure full extensibility including
built-in functions, I can understand it, but it should be clearly
documented.  The only occurrence of the word `built' I could find in the
Elisp manual section about advising is

   - User Option: ad-default-compilation-action

  [...]

       A value of `like-original' specifies to compile
       the advice if the original definition of the advised function is
       compiled or a built-in function.

suggesting that there's no problem with advising built-in functions.

Regards,

Milan Zamazal

-- 
It's amazing how much better you feel once you've given up hope.
                                                (unknown source)

  reply	other threads:[~2003-06-23  7:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-13 10:02 Advising forward-char not working properly Milan Zamazal
2003-06-14 12:29 ` Richard Stallman
2003-06-23  7:36   ` Milan Zamazal [this message]
2003-06-23  7:53     ` Kenichi Handa

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=87znk9w8h6.fsf@zamazal.org \
    --to=pdm@zamazal.org \
    --cc=bug-gnu-emacs@gnu.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.