From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#1194: marked as done (define-abbrev with EXPANSION equal to nil doesn't run the abbrev hook) Date: Fri, 17 Oct 2008 14:35:05 -0700 Message-ID: References: <87r66e6hfb.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1224279304-1232-0" X-Trace: ger.gmane.org 1224280224 956 80.91.229.12 (17 Oct 2008 21:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 21:50:24 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 23:51:25 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KqxE5-00059p-6k for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 23:51:17 +0200 Original-Received: from localhost ([127.0.0.1]:37259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqxD0-0001Zw-2R for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 17:50:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqxCw-0001Yi-9v for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 17:50:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqxCv-0001Y8-Hd for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 17:50:05 -0400 Original-Received: from [199.232.76.173] (port=42657 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqxCv-0001Xw-CN for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 17:50:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53388) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqxCu-00068j-MF for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 17:50:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9HLo0r2004691; Fri, 17 Oct 2008 14:50:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9HLZ5CA001283; Fri, 17 Oct 2008 14:35:05 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 1194 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21640 Archived-At: This is a multi-part message in MIME format... ------------=_1224279304-1232-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Fri, 17 Oct 2008 17:27:36 -0400 with message-id <87r66e6hfb.fsf@cyd.mit.edu> and subject line Re: define-abbrev with EXPANSION equal to nil doesn't run = the abbrev hook has caused the Emacs bug report #1194, regarding define-abbrev with EXPANSION equal to nil doesn't run the abbrev = hook to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 1194: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D1194 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1224279304-1232-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.0 required=4.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 17 Oct 2008 20:24:35 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9HKOUW9016195 for ; Fri, 17 Oct 2008 13:24:33 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kqvs6-0002uR-5w for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:24:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kqvs0-0002u1-Pf for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:24:29 -0400 Received: from [199.232.76.173] (port=41225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kqvs0-0002ty-KG for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:24:24 -0400 Received: from moderators.individual.net ([130.133.4.7]:46141) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kqvry-0005gy-QW for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:24:23 -0400 Received: from pcls6.std.com ([192.74.137.146] helo=TheWorld.com) by moderators.individual.net (Exim 4.69) for gnu-emacs-bug@moderators.isc.org with esmtp (envelope-from ) id <1Kqvrx-0007w2-Rm>; Fri, 17 Oct 2008 22:24:22 +0200 Received: from pcls6.std.com (localhost [127.0.0.1]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m9HKNHFP010257 for ; Fri, 17 Oct 2008 16:23:19 -0400 Received: (from lp@localhost) by pcls6.std.com (8.13.6/8.13.6/Submit) id m9HKNGPr010178 for gnu-emacs-bug@moderators.isc.org; Fri, 17 Oct 2008 16:23:16 -0400 To: gnu-emacs-bug@moderators.isc.org Path: not-for-mail From: Francis Litterio Newsgroups: gnu.emacs.bug Subject: define-abbrev with EXPANSION equal to nil doesn't run the abbrev hook Date: Fri, 17 Oct 2008 15:25:59 -0400 Organization: The World : www.TheWorld.com : Since 1989 Lines: 22 Message-ID: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1224274996 32089 192.74.137.71 (17 Oct 2008 20:23:16 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 17 Oct 2008 20:23:16 +0000 (UTC) X-Draft-From: ("gnu.emacs.bug") X-Random-Quote: Blessed is the man who, having nothing to say, abstains from giving wordy evidence of the fact. -- George Eliot User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:SqUoSpQn3Bn7FS0wSBwq5dVDdAc= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) The docstring for define-abbrev says: (define-abbrev table name expansion &optional hook &rest props) Define an abbrev in table named name, to expand to expansion and call hook. [...] If expansion is not a string, the abbrev is a special one, which does not expand in the usual way but only runs hook. It seems that EXPANSION must be the empty string for the special behavior described in the docstring to happen. To reproduce this, evaluate this form: (progn (define-abbrev global-abbrev-table "zzz" nil '(lambda () (message "Hello"))) (define-abbrev global-abbrev-table "yyy" "" '(lambda () (message "Hello"))) (switch-to-buffer "temp")) and then type " zzz yyy ". The "zzz" abbrev does cause the hook to run, but the "yyy" abbrev causes the hook to run. -- Fran ------------=_1224279304-1232-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1194-done) by emacsbugs.donarmstrong.com; 17 Oct 2008 21:27:40 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9HLRb4r032354 for <1194-done@emacsbugs.donarmstrong.com>; Fri, 17 Oct 2008 14:27:38 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id D38DD57E194; Fri, 17 Oct 2008 17:27:36 -0400 (EDT) From: Chong Yidong To: 1194-done@emacsbugs.donarmstrong.com Subject: Re: define-abbrev with EXPANSION equal to nil doesn't run the abbrev hook Date: Fri, 17 Oct 2008 17:27:36 -0400 Message-ID: <87r66e6hfb.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > The docstring for define-abbrev says: > > (define-abbrev table name expansion &optional hook &rest props) > > Define an abbrev in table named name, to expand to expansion and call hook. > [...] > If expansion is not a string, the abbrev is a special one, > which does not expand in the usual way but only runs hook. > > It seems that EXPANSION must be the empty string for the special > behavior described in the docstring to happen. To reproduce this, > evaluate this form: > > (progn > (define-abbrev global-abbrev-table "zzz" nil '(lambda () (message "Hello"))) > (define-abbrev global-abbrev-table "yyy" "" '(lambda () (message "Hello"))) > (switch-to-buffer "temp")) > > and then type " zzz yyy ". The "zzz" abbrev does cause the hook to run, > but the "yyy" abbrev causes the hook to run. When EXPANSION is nil, that undefines the abbrev. This is mentioned earlier in the docstring of define-abbrev. I made a small change to the docstring to make this clearer. ------------=_1224279304-1232-0--