From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help 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@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 1177172107 2440 80.91.229.12 (21 Apr 2007 16:15:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2007 16:15:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 18:15:01 2007 Return-path: Envelope-to: geh-help-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 1HfIEn-0004Xk-Cq for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2007 18:15:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfIJy-0000sM-OK for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Apr 2007 12:20:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfIJn-0000rC-8v for help-gnu-emacs@gnu.org; Sat, 21 Apr 2007 12:20:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HfIJk-0000q5-Sj for help-gnu-emacs@gnu.org; Sat, 21 Apr 2007 12:20:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfIJk-0000q2-Nz for help-gnu-emacs@gnu.org; Sat, 21 Apr 2007 12:20:08 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HfIEY-0004H5-Dl for help-gnu-emacs@gnu.org; Sat, 21 Apr 2007 12:14:46 -0400 Original-Received: from [84.167.5.128] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu0) with ESMTP (Nemesis), id 0MKwh2-1HfIEX0k3p-0006B5; Sat, 21 Apr 2007 18:14:45 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1HfIE6-00039o-GB for help-gnu-emacs@gnu.org; Sat, 21 Apr 2007 18:14:18 +0200 Original-Newsgroups: gmane.emacs.devel User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:AnX/9mtwgYjur52VgXVT19ZNr74= Posted-To: gmane.emacs.devel X-Provags-ID: V01U2FsdGVkX1+1tiXLQNfbmzhnu8hlqSvzRjpAwAIwolG4p6C ogkMJVl2b9u0tXRz18Qn2tQLm0K5pD5AMlgxvc/+X8Sxp2N+Le X/pB5+qiLW+NXN4IsdyXR7HPnjQCYpP X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42965 Archived-At: The following message is a courtesy copy of an article that has been posted to gmane.emacs.devel as well. 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