emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: icomplete-mode deactivates region


From: Stefan Monnier
Subject: Re: icomplete-mode deactivates region
Date: Mon, 21 Mar 2005 17:44:55 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> This problem currently prevents AUCTeX users from marking LaTeX
> environments as long as icomplete-mode is active.

It only prevents them if they use M-x ..., not if they use a key-binding to
mark the environment, right?

Does the patch below help?


        Stefan


--- minibuf.c   01 mar 2005 12:07:35 -0500      1.279
+++ minibuf.c   21 mar 2005 17:43:36 -0500      
@@ -2142,7 +2142,7 @@
       return Qnil;
     }
  exit:
-  return Fthrow (Qexit, Qnil);
+  Fexit_minibuffer ();
   /* NOTREACHED */
 }
 
@@ -2549,13 +2549,20 @@
   else
     bitch_at_user ();
 
-  return Fthrow (Qexit, Qnil);
+  Fexit_minibuffer ();
 }
 
 DEFUN ("exit-minibuffer", Fexit_minibuffer, Sexit_minibuffer, 0, 0, "",
        doc: /* Terminate this minibuffer argument.  */)
      ()
 {
+  /* If the command that uses this has made modifications in the minibuffer,
+     we don't want them to cause deactivation of the mark in the original
+     buffer.
+     A better solution would be to make deactivate-mark buffer-local
+     (or to turn it into a list of buffers, ...), but in the mean time,
+     this should do the trick in most cases.  */
+  Vdeactivate_mark = Qnil;
   return Fthrow (Qexit, Qnil);
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]