all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Subject: [kzeitler@lucent.com: Re: emacs loops after dabbrv-expand in (inviolable) minibuffer]
Date: Sat, 9 Mar 2002 03:49:25 -0700 (MST)	[thread overview]
Message-ID: <200203091049.g29AnPD03706@wijiji.santafe.edu> (raw)

The bug in dabbrev that causes this loop is fixed, I believe.
But the bug that C-g does not escape that loop on some systems is not fixed.
Can anyone investigate and find the cause?

------- Start of forwarded message -------
X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f
To: rms@gnu.org
Subject: Re: emacs loops after dabbrv-expand in (inviolable) minibuffer
X-Tom-Swifty: "It's patently obvious," Tom said licentiously.
From: Klaus Zeitler <kzeitler@lucent.com>
Date: 07 Mar 2002 17:40:42 +0100
In-Reply-To: <200203031440.g23EeKX00613@aztec.santafe.edu>

>>>>> "Richard" == Richard Stallman <rms@gnu.org> writes:
    Richard> 
    Richard>     now with the patch you sent me for dabbrev, after step 2 I
    Richard>     execute M-x load-library <patched-dabbrev> and now in step 6
    Richard>     I try to use dabbrev-expand for both strings (the original
    Richard>     and the replacement string). It works for the first string
    Richard>     but not for the 2nd string. Again emacs loops.
    Richard> 
    Richard> I can't reproduce this.  Maybe I could if you sent a *precise*
    Richard> test case.  "Load a file" and "use dabbrev-expand (M-/) to expand
    Richard> the minibuffer input" are not precise.
    Richard> 
ok, I try to be more precise. Originally I ran in to this problem cause I
wanted to change a set-face-background call to a set-face-foreground
in one of my el files (and I'm an avid user of dynamic abbrev). So here's
how I reproduce this bug.


1. start emacs with -q --no-site-file
2. (the original dabbrev package that comes with 21.1 is used)
3. M-x customize-variable minibuffer-prompt-properties
   turn on the Inviolable option and set for current session
4. load a file with e.g. the following contents
- ----- cut -----
(set-face-background 'trailing-whitespace "Gray25")
- ----- cut -----
5. M-x query-replace
   and now enter as regexp "s" followed by "M-/"
=> emacs loops on HP-UX 10.20, Solaris 5.8 and GNU/Linux but
   - on HP-UX 10.20 C-g does not work
   - on Solaris 5.8 C-g does work (most of the time), but when I open a 2nd
     frame (C-x 5 2) before I try the query replace, C-g doesn't interrupt
     anymore
   - on GNU/Linux C-g always works


now I perform the same steps but first I load your patched dabbrev file

1. start emacs with -q --no-site-file
2. load-library <patched-dabbrev.elc>
3. M-x customize-variable minibuffer-prompt-properties
   turn on the Inviolable option and set for current session
4. load a file with e.g. the following contents
- ----- cut -----
(set-face-background 'trailing-whitespace "Gray25")
- ----- cut -----
5a. M-x query-replace
   and now enter as regexp "s" followed by "M-/", this works
5b. press return and now try to enter as replacement string again
   "s" followed by "M-/"
=> emacs loops on HP-UX 10.20 and Solaris 5.8 but not on GNU/Linux


as I said in one of my previous posts XTread_socket never gets called
once emacs loops. Could it be that one of the lisp functions/macros, e.g.
save-match-data or unwind-protect disables/postpones interrupts?


Klaus


- -- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
|  Email:             kzeitler@lucent.com  |
 ------------------------------------------
- ---
The two most common things in the universe are hydrogen and stupidity.
------- End of forwarded message -------

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


             reply	other threads:[~2002-03-09 10:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-09 10:49 Richard Stallman [this message]
2002-03-09 12:38 ` [kzeitler@lucent.com: Re: emacs loops after dabbrv-expand in (inviolable) minibuffer] Eli Zaretskii
2002-03-10  5:04   ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=200203091049.g29AnPD03706@wijiji.santafe.edu \
    --to=rms@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.