From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Milan Zamazal Newsgroups: gmane.emacs.bugs Subject: Re: Advising forward-char not working properly Date: Mon, 23 Jun 2003 09:36:53 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87znk9w8h6.fsf@zamazal.org> References: <87brx2jnwl.fsf@zamazal.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1056353820 32670 80.91.224.249 (23 Jun 2003 07:37:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 07:37:00 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 09:36:58 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ULso-0008UV-00 for ; Mon, 23 Jun 2003 09:36:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ULsw-0005Z1-Pq for gnu-bug-gnu-emacs@m.gmane.org; Mon, 23 Jun 2003 03:37:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ULst-0005Vn-OG for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2003 03:37:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ULsr-0005Rk-S5 for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2003 03:37:02 -0400 Original-Received: from ms2.dkm.cz ([62.24.64.14]) by monty-python.gnu.org with smtp (Exim 4.20) id 19ULsr-0005Kc-63 for bug-gnu-emacs@gnu.org; Mon, 23 Jun 2003 03:37:01 -0400 Original-Received: (qmail 3842 invoked by uid 0); 23 Jun 2003 07:36:54 -0000 Original-Received: from l218.brno.mistral.cz (HELO blackbird) (62.245.107.218) by ms2.dkm.cz with SMTP; 23 Jun 2003 07:36:54 -0000 Original-Received: from pdm by blackbird with local (Exim 3.36 #1 (Debian)) id 19ULsk-0000b8-00; Mon, 23 Jun 2003 09:36:54 +0200 Original-To: rms@gnu.org X-Face: >kl&pL}(a*u\BCj7Q,\Yoq35~,4dAu"CPGaJ[ahMli9uu#aF7dWxc3L.eaK2RWRU|',E+. -':&gJ-JAZ/N$f^4-3?G7M&Knna[A=lJ$}^!%@vuvulVl6-)x.V8RZ7fW9< In-Reply-To: (Richard Stallman's message of "Sat, 14 Jun 2003 08:29:35 -0400") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5370 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5370 >>>>> "RS" == Richard Stallman 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)