From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.help Subject: Re: dabbrev hang Date: 28 May 2003 15:29:48 +0200 Organization: Lucent Technologies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7iwugcw9h9.fsf@neoscale.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054129158 30020 80.91.224.249 (28 May 2003 13:39:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 13:39:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 28 15:39:16 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19L199-0007nu-00 for ; Wed, 28 May 2003 15:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L1AI-0008AM-U4 for gnu-help-gnu-emacs@m.gmane.org; Wed, 28 May 2003 09:40:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!netnews.proxy.lucent.com!news Original-Newsgroups: gnu.emacs.help Original-Lines: 63 Original-NNTP-Posting-Host: sfsw51.de.lucent.com X-Zippy-Says: .. So, if we convert SUPPLY-SIDE SOYBEAN FUTURES into HIGH-YIELD T-BILL INDICATORS, the PRE-INFLATIONARY risks will DWINDLE to a rate of 2 SHOPPING SPREES per EGGPLANT!! User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:113786 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10281 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10281 >>>>> "Kin" == Kin Cho writes: Kin> Kin> I call dabbrev-expand while the minibuffer is active (e.g., Kin> interactively calling eval-expression), it dabbrev hangs in Kin> dabbrev--goto-start-of-abbrev. Kin> Kin> The reason is that (bobp) is false and (forward-char -1) Kin> can't backup into the prompt. Kin> Kin> I'm thinking advicing bobp to cope with this, but is there a Kin> better fix? Kin> Kin> I'm using emacs 21.3. I tried to follow up on this on gnu.emacs.bug, but my last replies there haven't shown up. Thus I'll repost it here. that is probably the bug I reported last year, RMS sent me a patch for this problem. Please try: --- snip --- *** /vol/freeware/SunOS-5.8/emacs/21.3/share/emacs/21.3/lisp/dabbrev.el Thu Jun 21 09:40:45 2001 --- /vol/freeware/SunOS-5.8/emacs/21.3/share/emacs/21.3/site-lisp/patch/dabbrev.el Mon Apr 7 15:42:57 2003 *************** *** 599,605 **** (progn (forward-char -1) (while (and (looking-at dabbrev--abbrev-char-regexp) ! (not (bobp))) (forward-char -1)) (or (looking-at dabbrev--abbrev-char-regexp) (forward-char 1)))) --- 599,605 ---- (progn (forward-char -1) (while (and (looking-at dabbrev--abbrev-char-regexp) ! (not (= (point) (field-beginning (point))))) (forward-char -1)) (or (looking-at dabbrev--abbrev-char-regexp) (forward-char 1)))) *************** *** 948,953 **** --- 948,954 ---- "\\(" dabbrev--abbrev-char-regexp "\\)")) (pattern2 (concat (regexp-quote abbrev) "\\(\\(" dabbrev--abbrev-char-regexp "\\)+\\)")) + (inhibit-point-motion-hooks t) (found-string nil)) ;; Limited search. (save-restriction --- snip --- This patch didn't make it into 21.3, I'll check if it's in CVS. Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | ------------------------------------------ --- Whenever anyone says, "theoretically", they really mean, "not really". -- Dave Parnas