From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.devel Subject: possible bug in M-/ (dabbrev-expand) Date: Sat, 21 Apr 2007 18:14:17 +0200 Organization: The Church of Emacs Message-ID: <87slatg0x2.fsf__14344.9993491688$1177172136$gmane$org@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177172136 2606 80.91.229.12 (21 Apr 2007 16:15:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2007 16:15:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 21 18:15:30 2007 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 1HfIFG-0004iF-8M for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2007 18:15:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfIKR-0001IX-Ou for ged-emacs-devel@m.gmane.org; Sat, 21 Apr 2007 12:20:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfIKO-0001I1-P0 for emacs-devel@gnu.org; Sat, 21 Apr 2007 12:20:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HfIKN-0001H3-9R for emacs-devel@gnu.org; Sat, 21 Apr 2007 12:20:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfIKN-0001Gw-1s for emacs-devel@gnu.org; Sat, 21 Apr 2007 12:20:47 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HfIFA-0004K7-Ql for emacs-devel@gnu.org; Sat, 21 Apr 2007 12:15:25 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HfIEu-0005ES-Vi for emacs-devel@gnu.org; Sat, 21 Apr 2007 18:15:09 +0200 Original-Received: from p54a70580.dip0.t-ipconnect.de ([84.167.5.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2007 18:15:08 +0200 Original-Received: from dieter by p54a70580.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Apr 2007 18:15:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p54a70580.dip0.t-ipconnect.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:AnX/9mtwgYjur52VgXVT19ZNr74= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:69733 Archived-At: Hi I deemed it an especially good idea to have function which is searching something in a buffer when there are changes to the content. (GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, GTK+ Version 2.8.20) of 2007-03-02 on pacem, modified by Debian.) When I install such a function in the following way (for example in the *scratch* buffer): $ emacs -Q -D (defun bla ( &optional a b c) ;dummy variables (interactive) (save-excursion (re-search-forward "a" nil 'noerror))) (add-hook 'after-change-functions 'bla nil t) and I try to M-/ something at the buffer beginning, the cursor does not remain after the expansion but skips somewhere into the buffer. I'm not sure whether this is a bug of M-/ or this is just a stupid approach to have such an functionality after a buffer change? It would be nice if you could give me some advice before I submit a possibly unnecessary bug report. -- Best wishes H. Dieter Wilhelm Darmstadt, Germany