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

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

Re: address@hidden: Re: [Preview-latex-devel] CVS-1.42; scale function]


From: David Kastrup
Subject: Re: address@hidden: Re: [Preview-latex-devel] CVS-1.42; scale function]
Date: 07 Nov 2001 16:24:46 +0100

>>>>> "ET" == ET  <address@hidden> writes:

    ET> Dear Manuel,
    ET> I am trying to use flyspell together with a package called
    ET> preview-latex (http://preview-latex.sourceforge.net/), using
    ET> Gnu-Emacs-21.1.  In preview-latex, mouse-2 is bound to some function,
    ET> but when using it in conjunction with flyspell, this function not
    ET> work, and mouse-2 just pastes the selection instead.  This seems only
    ET> to happen when using flyspell.  The preview-latex developer (David
    ET> Kastrup) suggested that this might be a flyspell bug and his comments
    ET> are enclosed below.  I hope this is useful:

    >> If it bothers you, report this as a bug to the flyspell.el
    >> maintainers.  It is strictly their fault.

    >> You might want to add the following information:
    >> flyspell.el will, as far as I can see, break *any* package that uses
    >> the 'keymap property of an overlay in order to make something
    >> clickable.

    >> Please note that Emacs-21 supports a 'keymap property on overlays so
    >> that it is not necessary to use 'local-map which plays havoc with
    >> existing bindings.

The following patch seemingly fixes the problem for me.  You'll
probably want to make this only conditionally when
flyspell-use-local-map is t (which means that its actual meaning is
totally inverse to what its name would suggest), but at least in
vanilla Emacs-21 this will always be the case.

It seems like there is some disorder with regard to sorting out what
to use in what case and how to flag this.

--- flyspell.el~        Mon Jul 16 14:22:59 2001
+++ flyspell.el Wed Nov  7 16:18:54 2001
@@ -378,9 +378,7 @@
          (setq minor-mode-map-alist
                (cons (cons 'flyspell-mode flyspell-mode-map)
                      minor-mode-map-alist)))
-  (define-key flyspell-mode-map "\M-\t" 'flyspell-auto-correct-word)
-  (define-key flyspell-mode-map [(mouse-2)]
-    (function flyspell-correct-word/local-keymap)))
+  (define-key flyspell-mode-map "\M-\t" 'flyspell-auto-correct-word))
 
 
 ;; the name of the overlay property that defines the keymap


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: address@hidden



reply via email to

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