unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Klaus Zeitler <kzeitler+usenet@gsm-mailhost.de.lucent.com>
Subject: Re: dabbrev hang
Date: 28 May 2003 15:29:48 +0200	[thread overview]
Message-ID: <q5ghe7fb3n7.fsf@lucent.com> (raw)
In-Reply-To: 7iwugcw9h9.fsf@neoscale.com

>>>>> "Kin" == Kin Cho <kin@neoscale.com> 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

  reply	other threads:[~2003-05-28 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-27 18:05 dabbrev hang Kin Cho
2003-05-28 13:29 ` Klaus Zeitler [this message]
2003-05-28 17:02   ` Kin Cho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=q5ghe7fb3n7.fsf@lucent.com \
    --to=kzeitler+usenet@gsm-mailhost.de.lucent.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).