From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.bugs Subject: bug#1194: 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 Message-ID: Reply-To: Francis Litterio , 1194@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224301731 11947 80.91.229.12 (18 Oct 2008 03:48:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2008 03:48:51 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 18 05:49:52 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 1Kr2p5-00019s-Th for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Oct 2008 05:49:52 +0200 Original-Received: from localhost ([127.0.0.1]:48024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kr2o0-0008N3-SP for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 23:48:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqwGu-000155-MB for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:50:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqwGp-00011m-Bk for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:50:08 -0400 Original-Received: from [199.232.76.173] (port=44242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqwGo-00011Y-ON for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:50:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44373) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KqwGo-0000IL-3H for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 16:50:02 -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 m9HKo0g5022043; Fri, 17 Oct 2008 13:50:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9HKU3dd017424; Fri, 17 Oct 2008 13:30:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Francis Litterio Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Oct 2008 20:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1194 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122427507516201 (code B ref -1); Fri, 17 Oct 2008 20:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Oct 2008 20:24:35 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 22 Original-NNTP-Posting-Host: shell01.theworld.com Original-X-Trace: pcls6.std.com 1224274996 32089 192.74.137.71 (17 Oct 2008 20:23:16 GMT) Original-X-Complaints-To: abuse@TheWorld.com Original-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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 17 Oct 2008 16:50:08 -0400 X-Mailman-Approved-At: Fri, 17 Oct 2008 23:48:40 -0400 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:21646 Archived-At: 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