From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: other-buffer advice on kill-buffer Date: Fri, 19 Aug 2011 15:10:02 +0800 Message-ID: References: <8662mgg2ea.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313737830 24665 80.91.229.12 (19 Aug 2011 07:10:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2011 07:10:30 +0000 (UTC) Cc: Alp Aker , theophilusx@gmail.com, jeremy.compostella@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 19 09:10:22 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QuJDi-0006eZ-L2 for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2011 09:10:22 +0200 Original-Received: from localhost ([::1]:57674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuJDg-0008AZ-Qr for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2011 03:10:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuJDe-0008AN-Lz for emacs-devel@gnu.org; Fri, 19 Aug 2011 03:10:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuJDd-00004y-LM for emacs-devel@gnu.org; Fri, 19 Aug 2011 03:10:18 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:56420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuJDd-0008WM-Aj; Fri, 19 Aug 2011 03:10:17 -0400 Original-Received: by pzk36 with SMTP id 36so5172641pzk.17 for ; Fri, 19 Aug 2011 00:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hw6dA2A3icIO3rgLQMygbiVya/MWyoSB9ElSh5PSilU=; b=NKL/ckmnrRzSYCdGhTt/59+Ca8Gw0Tlz4Co27vqOZxiuwpITf0w2q1xYshFHPaElDr qTexEkbf9fmUIin8XIatnUdX0vhec4i1r19S+Hd0Ax8zFFf7gUr1EuKxkr/LlNdzsvVS mHyc9NbATivFwiwvn7M+BEy+zKyNRgHRNPW5M= Original-Received: by 10.142.246.11 with SMTP id t11mr253672wfh.292.1313737815815; Fri, 19 Aug 2011 00:10:15 -0700 (PDT) Original-Received: from bogon ([58.22.113.140]) by mx.google.com with ESMTPS id i8sm2106301pbi.60.2011.08.19.00.10.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Aug 2011 00:10:15 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Tue, 02 Aug 2011 17:55:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.44 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143423 Archived-At: On 2011-08-03 05:55 +0800, Richard Stallman wrote: > It may be that in a few special cases > we should modify calls within C code to some primitive functions > so that they call the Lisp symbol. > That way, it would work to advise those functions. > > To do this for all the primitive functions would be impossible, I > think, and certainly not worth the pain. But there might be a few > functions for which this would be particularly useful, and it might be > worth doing this for them. I am interested in getting advice to narrow-to-region to work. For example: (defadvice narrow-to-region (before wow activate) (message "wow!")) now uses 'C-x n d' (narrow-to-defun) which calls narrow-to-region and I see no wow printed in the echo area. What to do to make it work? Thanks. Leo