From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [kzeitler@lucent.com: Re: emacs loops after dabbrv-expand in (inviolable) minibuffer] Date: Sat, 9 Mar 2002 03:49:25 -0700 (MST) Message-ID: <200203091049.g29AnPD03706@wijiji.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby.gnus.org X-Trace: quimby.gnus.org 1015671146 4644 80.91.224.244 (9 Mar 2002 10:52:26 GMT) X-Complaints-To: usenet@quimby.gnus.org NNTP-Posting-Date: 9 Mar 2002 10:52:26 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16jeSf-0001Co-00 for ; Sat, 09 Mar 2002 11:52:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16jeRm-0007Un-00; Sat, 09 Mar 2002 05:51:30 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16jePm-0007Lt-00; Sat, 09 Mar 2002 05:49:26 -0500 Original-Received: from wijiji.santafe.edu (wijiji [192.12.12.5]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g29Anau17921; Sat, 9 Mar 2002 03:49:36 -0700 (MST) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g29AnPD03706; Sat, 9 Mar 2002 03:49:25 -0700 (MST) X-Authentication-Warning: wijiji.santafe.edu: rms set sender to rms@wijiji using -f Original-To: emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1822 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1822 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 Date: 07 Mar 2002 17:40:42 +0100 In-Reply-To: <200203031440.g23EeKX00613@aztec.santafe.edu> >>>>> "Richard" == Richard Stallman writes: Richard> Richard> now with the patch you sent me for dabbrev, after step 2 I Richard> execute M-x load-library 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 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