unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
       [not found]   ` <x57kna8th5.fsf@tupik.goethe.zz>
@ 2002-04-15 22:00     ` Richard Stallman
  2002-04-15 22:20       ` David Kastrup
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2002-04-15 22:00 UTC (permalink / raw)
  Cc: emacs-devel

If these bugs are bothering people, let's put the fixes into 21.3.
Could you check them in to RC?
21.3 will be made from RC.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-15 22:00     ` Bug#142608: emacs21: please apply flyspell patch from preview-latex package Richard Stallman
@ 2002-04-15 22:20       ` David Kastrup
  2002-04-16  6:25         ` Eli Zaretskii
  2002-04-17 16:04         ` Richard Stallman
  0 siblings, 2 replies; 15+ messages in thread
From: David Kastrup @ 2002-04-15 22:20 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> If these bugs are bothering people, let's put the fixes into 21.3.
> Could you check them in to RC?
> 21.3 will be made from RC.

I would first have to get developer access to GNU Emacs, I am
registered as "dak" at Savannah and have signed all the necessary
papers.

However, since the HEAD branch of Emacs has had those particular bugs
fixed for perhaps half a year now (and still has), I would really be
surprised if the fixes (or their supersession by larger changes taking
them into account) would not already be present in RC.  IIRC, 21.3 was
not supposed to be mere bug fixes as compared to 21.2, was it?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-15 22:20       ` David Kastrup
@ 2002-04-16  6:25         ` Eli Zaretskii
  2002-04-16 14:00           ` David Kastrup
  2002-04-17 16:04         ` Richard Stallman
  1 sibling, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2002-04-16  6:25 UTC (permalink / raw)
  Cc: rms, emacs-devel


On 16 Apr 2002, David Kastrup wrote:

> I would first have to get developer access to GNU Emacs, I am
> registered as "dak" at Savannah and have signed all the necessary
> papers.

I can set you up for write access to the CVS tree, if you want.

> However, since the HEAD branch of Emacs has had those particular bugs
> fixed for perhaps half a year now (and still has), I would really be
> surprised if the fixes (or their supersession by larger changes taking
> them into account) would not already be present in RC.

RC got only safe fixes for grave bugs, so it's possible that it doesn't 
have those changes.  Can you check and say for sure?  (You don't need 
write access for this; anon CVS will do.)

> IIRC, 21.3 was
> not supposed to be mere bug fixes as compared to 21.2, was it?

Originally, yes; but we've changed our minds, since 21.2 has a small 
number of annoying bugs, some of them cause crashes and similar nuisance.

So now it is planned to make 21.3 out of the RC branch.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-16  6:25         ` Eli Zaretskii
@ 2002-04-16 14:00           ` David Kastrup
  2002-04-16 17:07             ` Juanma Barranquero
  2002-04-16 18:12             ` Eli Zaretskii
  0 siblings, 2 replies; 15+ messages in thread
From: David Kastrup @ 2002-04-16 14:00 UTC (permalink / raw)
  Cc: rms, emacs-devel

Eli Zaretskii <eliz@is.elta.co.il> writes:

> On 16 Apr 2002, David Kastrup wrote:
> 
> > I would first have to get developer access to GNU Emacs, I am
> > registered as "dak" at Savannah and have signed all the necessary
> > papers.
> 
> I can set you up for write access to the CVS tree, if you want.
> 
> > However, since the HEAD branch of Emacs has had those particular bugs
> > fixed for perhaps half a year now (and still has), I would really be
> > surprised if the fixes (or their supersession by larger changes taking
> > them into account) would not already be present in RC.
> 
> RC got only safe fixes for grave bugs, so it's possible that it doesn't 
> have those changes.  Can you check and say for sure?  (You don't need 
> write access for this; anon CVS will do.)
> 
> > IIRC, 21.3 was
> > not supposed to be mere bug fixes as compared to 21.2, was it?
> 
> Originally, yes; but we've changed our minds, since 21.2 has a small 
> number of annoying bugs, some of them cause crashes and similar nuisance.
> 
> So now it is planned to make 21.3 out of the RC branch.

Where is it?  When looking via the Web interface at the repository, I
only find the branches

patches_21_0
gerd_int
gerd_defvaralias
gerd_dbe
gerd_big
fx-branch
EMACS_21_1_RC
emacs-unicode

- Non-branch tags -

raeburn-tag-7-for-export
raeburn-tag-6-for-export
raeburn-tag-4-for-export
patches_21_0_base
MAIN
HEAD
fx-branch-base
EMACS_PRETEST_21_0_99
EMACS_PRETEST_21_0_98
EMACS_PRETEST_21_0_97
EMACS_PRETEST_21_0_96
EMACS_PRETEST_21_0_95
EMACS_PRETEST_21_0_93
EMACS_PRETEST_21_0_92
EMACS_PRETEST_21_0_91
EMACS_PRETEST_21_0_90
EMACS_PRETEST_21_0_106
EMACS_PRETEST_21_0_105
EMACS_PRETEST_21_0_104
EMACS_PRETEST_21_0_103
EMACS_PRETEST_21_0_102
EMACS_PRETEST_21_0_101
EMACS_PRETEST_21_0_100
EMACS_21_1_BASE
EMACS_21_1
EMACS_20_4
EMACS_20_2
emacs-unicode-base


-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-16 14:00           ` David Kastrup
@ 2002-04-16 17:07             ` Juanma Barranquero
  2002-04-16 18:12             ` Eli Zaretskii
  1 sibling, 0 replies; 15+ messages in thread
From: Juanma Barranquero @ 2002-04-16 17:07 UTC (permalink / raw)



On 16 Apr 2002 16:00:11 +0200, David.Kastrup@t-online.de (David Kastrup) wrote:

> Eli Zaretskii <eliz@is.elta.co.il> writes:

> > So now it is planned to make 21.3 out of the RC branch.
> 
> Where is it?  When looking via the Web interface at the repository, I
> only find the branches

> EMACS_21_1_RC

That's the branch (other than the HEAD) where commits are being made.

                                                           /L/e/k/t/u

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-16 14:00           ` David Kastrup
  2002-04-16 17:07             ` Juanma Barranquero
@ 2002-04-16 18:12             ` Eli Zaretskii
  1 sibling, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2002-04-16 18:12 UTC (permalink / raw)
  Cc: rms, emacs-devel

> From: David.Kastrup@t-online.de (David Kastrup)
> Date: 16 Apr 2002 16:00:11 +0200
> 
> > So now it is planned to make 21.3 out of the RC branch.
> 
> Where is it?

EMACS_21_1_RC is the tag of the RC branch.  Sorry I didn't say that
earlier, I keep forgetting that this isn't common knowledge ;-)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-15 22:20       ` David Kastrup
  2002-04-16  6:25         ` Eli Zaretskii
@ 2002-04-17 16:04         ` Richard Stallman
  2002-04-17 21:36           ` David Kastrup
  1 sibling, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2002-04-17 16:04 UTC (permalink / raw)
  Cc: emacs-devel

    fixed for perhaps half a year now (and still has), I would really be
    surprised if the fixes (or their supersession by larger changes taking
    them into account) would not already be present in RC.

Mere passage of time does not put anything into RC.
(How could it?)  That happens only under human control.
That is why I suggested you put these into RC.

      IIRC, 21.3 was
    not supposed to be mere bug fixes as compared to 21.2, was it?

We have decided to base 21.3 on RC.  The release from HEAD
will be 21.4.

    I would first have to get developer access to GNU Emacs, I am
    registered as "dak" at Savannah and have signed all the necessary
    papers.

Eli, can you do that?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-17 16:04         ` Richard Stallman
@ 2002-04-17 21:36           ` David Kastrup
  2002-04-18 10:20             ` Stefan Monnier
  2002-04-18 19:22             ` Eli Zaretskii
  0 siblings, 2 replies; 15+ messages in thread
From: David Kastrup @ 2002-04-17 21:36 UTC (permalink / raw)
  Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 2804 bytes --]

Richard Stallman <rms@gnu.org> writes:

>     fixed for perhaps half a year now (and still has), I would really be
>     surprised if the fixes (or their supersession by larger changes taking
>     them into account) would not already be present in RC.
> 
> Mere passage of time does not put anything into RC.
> (How could it?)  That happens only under human control.
> That is why I suggested you put these into RC.
> 
>       IIRC, 21.3 was
>     not supposed to be mere bug fixes as compared to 21.2, was it?
> 
> We have decided to base 21.3 on RC.  The release from HEAD
> will be 21.4.
> 
>     I would first have to get developer access to GNU Emacs, I am
>     registered as "dak" at Savannah and have signed all the necessary
>     papers.
> 
> Eli, can you do that?

I have now verified that indeed flyspell.el and mouse-drag.el do not
contain any fixes to the annoying behavior.  The problem in both of
those cases was that the implemented behavior of the packages stole
mouse-click events on overlays with a keymap property.

The change for flyspell.el is minimally invasive: it just removes the
keybinding causing the problem (the function called would check
whether the click was on the flyspell overlay and call the appropriate
handler if it was, and the local keymap if it wasn't, ignoring any
overlay maps that might actually have priority).  While this
superficially looks like this would stop flyspell's use of the mouse
button itself, this is not the case: flyspell itself uses a keymap on
its overlay, and that functions cleably.  I can only guess that there
must have been some point of time where this did not work reliably,
and thus the local keymap was employed as well, leading to the
problem that when flyspell.el decided it did not really need to treat
the click, it passed it to the wrong handler.

I believe that quite more was changed in HEAD as a result of my report
at the time.  The patch from me is rather small and has tested well.

The change in mouse-drag.el is more thorough: again we have a package
that takes control over an event and then decides whether it will use
the event itself, or pass it on.  Again, this decision is done wrong
as it does not take clicks on overlays into account.  In this case,
the solution was a bit more complicated, but still is shorter than
the original version: I push the event back into the event queue
(after doing the changes to it that mouse-drag does, too) and let
Emacs' event handler figure out what to do instead of trying to
second-guess it.

Both patches have been used for some time by me and appear safe.  I
include them here again and would be glad if they made it into RC:
both have been reported several times as a bug for preview-latex.

I would also be glad to apply them myself if you gave me developer
access.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Make flyspell.el not unnecessarily steal events --]
[-- Type: text/x-patch, Size: 801 bytes --]

Apply this patch only if middle-mouse clicks on preview-icons paste
instead of toggling when in fly-spell mode.  After version 21.2 of
Emacs, this should be fixed already.

--- /usr/local/emacs-21/share/emacs/21.1/lisp/textmodes/flyspell.el.old	Mon Jul 16 14:22:59 2001
+++ /usr/local/emacs-21/share/emacs/21.1/lisp/textmodes/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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: Make mouse-drag pass events on correctly --]
[-- Type: text/x-patch, Size: 2807 bytes --]

Apply this patch only if middle-mouse clicks on preview-icons paste
instead of toggling when using mouse-drag mode.  After version 21.2 of
Emacs, this should be fixed already.

--- mouse-drag.el.old	Mon Jan  8 20:12:12 2001
+++ mouse-drag.el	Tue Nov 13 22:47:36 2001
@@ -208,7 +208,7 @@
 	 (start-col (car (posn-col-row start-posn)))
 	 (old-selected-window (selected-window))
 	 event end row mouse-delta scroll-delta
-	 have-scrolled point-event-p old-binding
+	 have-scrolled
 	 window-last-row
 	 col mouse-col-delta window-last-col
 	 (scroll-col-delta 0)
@@ -261,18 +261,13 @@
 	      (mouse-drag-safe-scroll scroll-delta scroll-col-delta)
 	      (mouse-drag-repeatedly-safe-scroll scroll-delta scroll-col-delta))))) ;xxx
     ;; If it was a click and not a drag, prepare to pass the event on.
-    ;; Note:  We must determine the pass-through event before restoring
-    ;; the window, but invoke it after.  Sigh.
+    ;; Is there a more correct way to reconstruct the event?
     (if (and (not have-scrolled)
 	     (mouse-drag-events-are-point-events-p start-posn end))
-	(setq point-event-p t
-	      old-binding (key-binding
-			   (vector (event-basic-type start-event)))))
+	(push (cons (event-basic-type start-event) (cdr start-event))
+	      unread-command-events))
     ;; Now restore the old window.
-    (select-window old-selected-window)
-    ;; For clicks, call the old function.
-    (if point-event-p
-	(call-interactively old-binding))))
+    (select-window old-selected-window)))
 
 (defun mouse-drag-drag (start-event)
   "\"Drag\" the page according to a mouse drag.
@@ -297,7 +292,7 @@
 	 (start-col (car (posn-col-row start-posn)))
 	 (old-selected-window (selected-window))
 	 event end row mouse-delta scroll-delta
-	 have-scrolled point-event-p old-binding
+	 have-scrolled
 	 window-last-row
 	 col mouse-col-delta window-last-col
 	 (scroll-col-delta 0)
@@ -335,18 +330,14 @@
 		(setq have-scrolled t)
 		(mouse-drag-safe-scroll scroll-delta scroll-col-delta)))))))
     ;; If it was a click and not a drag, prepare to pass the event on.
-    ;; Note:  We must determine the pass-through event before restoring
-    ;; the window, but invoke it after.  Sigh.
+    ;; Is there a more correct way to reconstruct the event?
     (if (and (not have-scrolled)
 	     (mouse-drag-events-are-point-events-p start-posn end))
-	(setq point-event-p t
-	      old-binding (key-binding
-			   (vector (event-basic-type start-event)))))
+	(push (cons (event-basic-type start-event) (cdr start-event))
+	      unread-command-events))
     ;; Now restore the old window.
-    (select-window old-selected-window)
-    ;; For clicks, call the old function.
-    (if point-event-p
-	(call-interactively old-binding))))
+    (select-window old-selected-window)))
+
 
 (provide 'mouse-drag)

[-- Attachment #4: Type: text/plain, Size: 85 bytes --]



-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-17 21:36           ` David Kastrup
@ 2002-04-18 10:20             ` Stefan Monnier
  2002-04-19  5:24               ` Richard Stallman
  2002-04-18 19:22             ` Eli Zaretskii
  1 sibling, 1 reply; 15+ messages in thread
From: Stefan Monnier @ 2002-04-18 10:20 UTC (permalink / raw)
  Cc: rms, emacs-devel

> The change for flyspell.el is minimally invasive: it just removes the
> keybinding causing the problem (the function called would check

I agree with David, this is a good patch that won't introduce
any problem.  The code is only a left over from the "pre local-map
text-properties era".  Keeping the M-tab binding on the minor-mode's
is important because it should also work when invoked from a few chars
after the overlay, but that does not apply to the mouse-2 binding.

> I would also be glad to apply them myself if you gave me developer access.

This would be a great idea.


	Stefan

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-17 21:36           ` David Kastrup
  2002-04-18 10:20             ` Stefan Monnier
@ 2002-04-18 19:22             ` Eli Zaretskii
  2002-04-19 18:42               ` Richard Stallman
  2002-04-20 19:58               ` David Kastrup
  1 sibling, 2 replies; 15+ messages in thread
From: Eli Zaretskii @ 2002-04-18 19:22 UTC (permalink / raw)
  Cc: rms, emacs-devel

> From: David.Kastrup@t-online.de (David Kastrup)
> Date: 17 Apr 2002 23:36:03 +0200
> 
> I would also be glad to apply them myself if you gave me developer
> access.

David, I've set you up for write access to the CVS tree.  In case you
didn't know, the instructions for accessing the CVS are available by
going to http://savannah.gnu.org/projects/emacs and following the link
to "CVS".

Please wait for Richard to approve these patches for the branch,
though.  Thanks.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-18 10:20             ` Stefan Monnier
@ 2002-04-19  5:24               ` Richard Stallman
  2002-04-19 15:47                 ` Stefan Monnier
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2002-04-19  5:24 UTC (permalink / raw)
  Cc: David.Kastrup, emacs-devel

    > The change for flyspell.el is minimally invasive: it just removes the
    > keybinding causing the problem (the function called would check

    I agree with David, this is a good patch that won't introduce
    any problem.

Could you install that change?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-19  5:24               ` Richard Stallman
@ 2002-04-19 15:47                 ` Stefan Monnier
  0 siblings, 0 replies; 15+ messages in thread
From: Stefan Monnier @ 2002-04-19 15:47 UTC (permalink / raw)
  Cc: monnier+gnu/emacs, David.Kastrup, emacs-devel

>     > The change for flyspell.el is minimally invasive: it just removes the
>     > keybinding causing the problem (the function called would check
> 
>     I agree with David, this is a good patch that won't introduce
>     any problem.
> 
> Could you install that change?

Done,


	Stefan

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-18 19:22             ` Eli Zaretskii
@ 2002-04-19 18:42               ` Richard Stallman
  2002-04-19 19:51                 ` Eli Zaretskii
  2002-04-20 19:58               ` David Kastrup
  1 sibling, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2002-04-19 18:42 UTC (permalink / raw)
  Cc: David.Kastrup, emacs-devel

    Please wait for Richard to approve these patches for the branch,
    though.  Thanks.

I didn't think there was anything else for me to do about this.
What exactly am I being asked to do?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-19 18:42               ` Richard Stallman
@ 2002-04-19 19:51                 ` Eli Zaretskii
  0 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2002-04-19 19:51 UTC (permalink / raw)
  Cc: David.Kastrup, emacs-devel

> Date: Fri, 19 Apr 2002 12:42:36 -0600 (MDT)
> From: Richard Stallman <rms@gnu.org>
> 
>     Please wait for Richard to approve these patches for the branch,
>     though.  Thanks.
> 
> I didn't think there was anything else for me to do about this.
> What exactly am I being asked to do?

Approve those patcehs for the release branch.  Which you already did
in another message, thanks.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Bug#142608: emacs21: please apply flyspell patch from preview-latex package
  2002-04-18 19:22             ` Eli Zaretskii
  2002-04-19 18:42               ` Richard Stallman
@ 2002-04-20 19:58               ` David Kastrup
  1 sibling, 0 replies; 15+ messages in thread
From: David Kastrup @ 2002-04-20 19:58 UTC (permalink / raw)
  Cc: rms, emacs-devel

"Eli Zaretskii" <eliz@is.elta.co.il> writes:

> > From: David.Kastrup@t-online.de (David Kastrup)
> > Date: 17 Apr 2002 23:36:03 +0200
> > 
> > I would also be glad to apply them myself if you gave me developer
> > access.
> 
> David, I've set you up for write access to the CVS tree.  In case you
> didn't know, the instructions for accessing the CVS are available by
> going to http://savannah.gnu.org/projects/emacs and following the link
> to "CVS".

I have verified now that I can use CVS on Savannah, thanks.  I have
also verified that swifter people than I already have applied all the
necessary patches to the RC branch that I sent you.

Thanks again.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-04-20 19:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E16wEb6-0005Op-00@volition>
     [not found] ` <871ydiq5ju.fsf@raven.i.defaultvalue.org>
     [not found]   ` <x57kna8th5.fsf@tupik.goethe.zz>
2002-04-15 22:00     ` Bug#142608: emacs21: please apply flyspell patch from preview-latex package Richard Stallman
2002-04-15 22:20       ` David Kastrup
2002-04-16  6:25         ` Eli Zaretskii
2002-04-16 14:00           ` David Kastrup
2002-04-16 17:07             ` Juanma Barranquero
2002-04-16 18:12             ` Eli Zaretskii
2002-04-17 16:04         ` Richard Stallman
2002-04-17 21:36           ` David Kastrup
2002-04-18 10:20             ` Stefan Monnier
2002-04-19  5:24               ` Richard Stallman
2002-04-19 15:47                 ` Stefan Monnier
2002-04-18 19:22             ` Eli Zaretskii
2002-04-19 18:42               ` Richard Stallman
2002-04-19 19:51                 ` Eli Zaretskii
2002-04-20 19:58               ` David Kastrup

Code repositories for project(s) associated with this public inbox

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

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).