From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why on earth is abbrev baked into the C code? Date: Wed, 02 Mar 2011 12:55:37 -0500 Message-ID: References: <4D69BFD2.7060606@gmail.com> <4D6BF0D7.3080005@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299088558 19521 80.91.229.12 (2 Mar 2011 17:55:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 17:55:58 +0000 (UTC) Cc: Emacs development discussions To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 02 18:55:52 2011 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.69) (envelope-from ) id 1PuqH7-0004WA-SX for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2011 18:55:50 +0100 Original-Received: from localhost ([127.0.0.1]:50760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuqH7-0000LN-43 for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2011 12:55:49 -0500 Original-Received: from [140.186.70.92] (port=36277 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuqGy-0000Jh-HR for emacs-devel@gnu.org; Wed, 02 Mar 2011 12:55:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuqGx-0006l3-I8 for emacs-devel@gnu.org; Wed, 02 Mar 2011 12:55:40 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:57874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuqGx-0006kz-Gl for emacs-devel@gnu.org; Wed, 02 Mar 2011 12:55:39 -0500 Original-Received: from [207.96.179.97] (port=60796 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1PuqGx-0007Rz-6k; Wed, 02 Mar 2011 12:55:39 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id EE4C6660D6; Wed, 2 Mar 2011 12:55:37 -0500 (EST) In-Reply-To: (Daniel Colascione's message of "Tue, 1 Mar 2011 13:08:55 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:136720 Archived-At: > ;; This hack works for me, but there must be an easier, safer way. Haven't tried it, but saving buffer-undo-list before calling `orig-func' and checking the result afterwards (adding an undo-boundary at the saved location of buffer-undo-list when needed), might be "easier, safer". Stefan