From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Problematic unexpand-abbrev behavior: 23.X Date: Wed, 4 Jun 2008 18:22:57 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212618207 3686 80.91.229.12 (4 Jun 2008 22:23:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2008 22:23:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 05 00:24:06 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K41On-0000bP-HB for ged-emacs-devel@m.gmane.org; Thu, 05 Jun 2008 00:24:05 +0200 Original-Received: from localhost ([127.0.0.1]:49521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K41O1-00072b-0S for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2008 18:23:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K41Nw-00072O-NE for emacs-devel@gnu.org; Wed, 04 Jun 2008 18:23:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K41Nt-00072C-P6 for emacs-devel@gnu.org; Wed, 04 Jun 2008 18:23:11 -0400 Original-Received: from [199.232.76.173] (port=36537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K41Nt-000729-LZ for emacs-devel@gnu.org; Wed, 04 Jun 2008 18:23:09 -0400 Original-Received: from wr-out-0506.google.com ([64.233.184.225]:18180) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K41Nt-0001O2-Gu for emacs-devel@gnu.org; Wed, 04 Jun 2008 18:23:09 -0400 Original-Received: by wr-out-0506.google.com with SMTP id 57so185170wri.12 for ; Wed, 04 Jun 2008 15:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=X9ijjm76P9abwNfhBEafi1eXzy0NWNBCEWDHI74yQq0=; b=L66e2sTIw9Cw0p6ktbubCjzx7f0gguhOqNT7Q34XuYlrXJlKmlbTsz8M4L3ubfygOe qnN3SmtS8U7rQ31J+KSUCwtOKT/g8208nQrpgJt9mO1UD0MPiSfOiYJKPJxmmg1h1riR 5TjFGHfiLYj3BDQqvzynLtzh0H72ZqEa0OL90= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=GUyJyzplNUJD2TtV12lEiCrgcX4XfhWkiz7SqZSc+zw2rWZ3g2z6w7WlsY2JByKV9J CXYuAexJ3nHSmAoNI2MfFoDwYeQKi/2yEoZV4Ji2Ee+UZ+qIOY8vBArJkiN9hg+MWtkf vJHfEFIV7KyqyFMKMz8CeRRj52ogHehZchvzU= Original-Received: by 10.100.42.4 with SMTP id p4mr827675anp.76.1212618188278; Wed, 04 Jun 2008 15:23:08 -0700 (PDT) Original-Received: from terrapin.mhr.utoledo.edu ( [131.183.160.192]) by mx.google.com with ESMTPS id x56sm6974598pyg.10.2008.06.04.15.23.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Jun 2008 15:23:05 -0700 (PDT) X-Mailer: Apple Mail (2.924) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98433 Archived-At: Consider: (define-abbrev global-abbrev-table "foo" "bar" (lambda () (unexpand- abbrev))) unexpand-abbrev in this context has a different behavior from 22.2 to 23.X. The latter incorrectly leaves point before the expanded (and subsequently unexpanded) text. At some point, unexpand-abbrev was re- implemented in lisp, and its save-excursion seems to cause this. This impacts modes which unexpand abbrevs during the abbrev hook in quoted text or comments, where they shouldn't be expanded. JD