* bug#23288: 25.0.92; Clicking on links inserts primary X selection
@ 2016-04-14 12:31 Philipp Stephani
2016-04-14 15:33 ` Glenn Morris
2016-04-14 17:14 ` Nils Berg
0 siblings, 2 replies; 43+ messages in thread
From: Philipp Stephani @ 2016-04-14 12:31 UTC (permalink / raw)
To: 23288
Here 'emacs' is an Emacs binary using Gtk+ on GNU/Linux.
echo -n bar | xsel -i && \
emacs -Q -eval \
"(insert (propertize \"foo\" 'follow-link (lambda (pos) \"a\")))"
Then click on "foo" in the scratch buffer. If 'emacs' is Emacs 24.3,
"a" will be inserted. If 'emacs' is from the emacs-25 branch, "bar"
will be inserted. I think this is a regression; follow-link should
adhere to the link action no matter what is in the X selection.
In GNU Emacs 25.0.92.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2016-04-14 built on localhost
Repository revision: 567ab529f313bc8fe68d25b2ca95f5987cce81a1
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS
Configured using:
'configure --with-modules CFLAGS=-g'
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 88168 9879)
(symbols 48 19855 0)
(miscs 40 325 173)
(strings 32 14741 4231)
(string-bytes 1 437388)
(vectors 16 12106)
(vector-slots 8 439789 6169)
(floats 8 164 78)
(intervals 56 208 0)
(buffers 976 12)
(heap 1024 24962 1011))
--
Google Germany GmbH
Erika-Mann-Straße 33
80636 München
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen
Sie die E-Mail und alle Anhänge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-04-14 12:31 bug#23288: 25.0.92; Clicking on links inserts primary X selection Philipp Stephani
@ 2016-04-14 15:33 ` Glenn Morris
2016-04-14 17:14 ` Nils Berg
1 sibling, 0 replies; 43+ messages in thread
From: Glenn Morris @ 2016-04-14 15:33 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 23288
Sounds like http://debbugs.gnu.org/22434
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-04-14 12:31 bug#23288: 25.0.92; Clicking on links inserts primary X selection Philipp Stephani
2016-04-14 15:33 ` Glenn Morris
@ 2016-04-14 17:14 ` Nils Berg
2016-04-16 13:36 ` Philipp Stephani
1 sibling, 1 reply; 43+ messages in thread
From: Nils Berg @ 2016-04-14 17:14 UTC (permalink / raw)
To: 23288
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
I've tracked down the bug to mouse--down-1-maybe-follows-link too, but
don't think read-event is the culprit here.
Rather, mouse--down-1-maybe-follows-link discards the result of
mouse-on-link-p, which contains the event a click is supposed to be
translated into. Instead, it just replaces the mouse event with mouse-2 if
mouse-on-link-p returns non-nil.
[-- Attachment #2: Type: text/html, Size: 410 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-04-14 17:14 ` Nils Berg
@ 2016-04-16 13:36 ` Philipp Stephani
2016-04-18 8:50 ` Nils Berg
0 siblings, 1 reply; 43+ messages in thread
From: Philipp Stephani @ 2016-04-16 13:36 UTC (permalink / raw)
To: Nils Berg, 23288
[-- Attachment #1.1: Type: text/plain, Size: 617 bytes --]
Nils Berg <nilsb@google.com> schrieb am Do., 14. Apr. 2016 um 19:18 Uhr:
> I've tracked down the bug to mouse--down-1-maybe-follows-link too, but
> don't think read-event is the culprit here.
>
> Rather, mouse--down-1-maybe-follows-link discards the result of
> mouse-on-link-p, which contains the event a click is supposed to be
> translated into. Instead, it just replaces the mouse event with mouse-2 if
> mouse-on-link-p returns non-nil.
>
I've attached a patch that should fix this. According to the documentation
of mouse-on-link-p no such translation should happen if the return value is
a string or vector.
[-- Attachment #1.2: Type: text/html, Size: 929 bytes --]
[-- Attachment #2: 0001-Fix-link-handling.patch --]
[-- Type: application/octet-stream, Size: 1410 bytes --]
From 584f288702d9d5c901685e54bfe1b147683d4aab Mon Sep 17 00:00:00 2001
From: Philipp Stephani <phst@google.com>
Date: Sat, 16 Apr 2016 15:33:30 +0200
Subject: [PATCH] Fix link handling.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Sometimes mouse-1 got translated to mouse-2 when it shouldn’t have been,
see Bug#23288. Instead adhere to the documentation of ‘mouse-on-link-p’
and translate the click only if it’s neither nil nor a string nor a
vector.
* lisp/mouse.el (mouse--down-1-maybe-follows-link): Check for return
type of ‘mouse-on-link-p’.
---
lisp/mouse.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/mouse.el b/lisp/mouse.el
index fa355ff..626576c 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -98,7 +98,8 @@ mouse--down-1-maybe-follows-link
(eq (if (eq mouse-1-click-follows-link 'double)
'double-down-mouse-1 'down-mouse-1)
(car-safe last-input-event))
- (mouse-on-link-p (event-start last-input-event))
+ (let ((action (mouse-on-link-p (event-start last-input-event))))
+ (not (or (null action) (stringp action) (vectorp action))))
(or mouse-1-click-in-non-selected-windows
(eq (selected-window)
(posn-window (event-start last-input-event)))))
--
2.7.4
^ permalink raw reply related [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-04-16 13:36 ` Philipp Stephani
@ 2016-04-18 8:50 ` Nils Berg
2016-04-20 16:53 ` Philipp Stephani
0 siblings, 1 reply; 43+ messages in thread
From: Nils Berg @ 2016-04-18 8:50 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 23288
[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]
I applied the patch, and the paste-on-click behavior is gone.
However, if you try your original example again, you'll find that nothing
happens at all, when we're expecting an "a" to be inserted.
As the documentation of mouse-on-link-p says, a string or vector return
value indicates the event to translate the original mouse-1 click into. In
emacs24, that translation was done in mouse-drag-track:
(let (on-link (and mouse-1-click-follows-link
;; Use start-point before the intangibility
;; treatment, in case we click on a link inside
;; intangible text.
(mouse-on-link-p start-posn)))
(if (or (vectorp on-link) (stringp on-link))
(setq event (aref on-link 0))
(select-window original-window)
(setcar event 'mouse-2)
;; If this mouse click has never been done by the
;; user, it doesn't have the necessary property to be
;; interpreted correctly.
(put 'mouse-2 'event-kind 'mouse-click)))
(abridged from mouse.el:791/901 in Emacs 24.3.1)
I think mouse--down-1-maybe-follows-link should do something similar.
On Sat, Apr 16, 2016 at 3:36 PM, Philipp Stephani <p.stephani2@gmail.com>
wrote:
>
>
> Nils Berg <nilsb@google.com> schrieb am Do., 14. Apr. 2016 um 19:18 Uhr:
>
>> I've tracked down the bug to mouse--down-1-maybe-follows-link too, but
>> don't think read-event is the culprit here.
>>
>> Rather, mouse--down-1-maybe-follows-link discards the result of
>> mouse-on-link-p, which contains the event a click is supposed to be
>> translated into. Instead, it just replaces the mouse event with mouse-2 if
>> mouse-on-link-p returns non-nil.
>>
>
> I've attached a patch that should fix this. According to the documentation
> of mouse-on-link-p no such translation should happen if the return value is
> a string or vector.
>
[-- Attachment #2: Type: text/html, Size: 3283 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-04-18 8:50 ` Nils Berg
@ 2016-04-20 16:53 ` Philipp Stephani
2016-05-10 21:25 ` Philipp Stephani
0 siblings, 1 reply; 43+ messages in thread
From: Philipp Stephani @ 2016-04-20 16:53 UTC (permalink / raw)
To: Nils Berg; +Cc: 23288
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
Nils Berg <nilsb@google.com> schrieb am Mo., 18. Apr. 2016 um 10:50 Uhr:
> I applied the patch, and the paste-on-click behavior is gone.
>
> However, if you try your original example again, you'll find that nothing
> happens at all, when we're expecting an "a" to be inserted.
> As the documentation of mouse-on-link-p says, a string or vector return
> value indicates the event to translate the original mouse-1 click into. In
> emacs24, that translation was done in mouse-drag-track:
> (let (on-link (and mouse-1-click-follows-link
> ;; Use start-point before the intangibility
> ;; treatment, in case we click on a link inside
> ;; intangible text.
> (mouse-on-link-p start-posn)))
> (if (or (vectorp on-link) (stringp on-link))
> (setq event (aref on-link 0))
> (select-window original-window)
> (setcar event 'mouse-2)
> ;; If this mouse click has never been done by the
> ;; user, it doesn't have the necessary property to be
> ;; interpreted correctly.
> (put 'mouse-2 'event-kind 'mouse-click)))
>
> (abridged from mouse.el:791/901 in Emacs 24.3.1)
>
> I think mouse--down-1-maybe-follows-link should do something similar.
>
Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might also be
related.
[-- Attachment #2: Type: text/html, Size: 2308 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-04-20 16:53 ` Philipp Stephani
@ 2016-05-10 21:25 ` Philipp Stephani
2016-05-11 8:14 ` Eli Zaretskii
0 siblings, 1 reply; 43+ messages in thread
From: Philipp Stephani @ 2016-05-10 21:25 UTC (permalink / raw)
To: Nils Berg; +Cc: 23288
[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]
Philipp Stephani <p.stephani2@gmail.com> schrieb am Mi., 20. Apr. 2016 um
18:53 Uhr:
> Nils Berg <nilsb@google.com> schrieb am Mo., 18. Apr. 2016 um 10:50 Uhr:
>
>> I applied the patch, and the paste-on-click behavior is gone.
>>
>> However, if you try your original example again, you'll find that nothing
>> happens at all, when we're expecting an "a" to be inserted.
>> As the documentation of mouse-on-link-p says, a string or vector return
>> value indicates the event to translate the original mouse-1 click into. In
>> emacs24, that translation was done in mouse-drag-track:
>> (let (on-link (and mouse-1-click-follows-link
>> ;; Use start-point before the intangibility
>> ;; treatment, in case we click on a link inside
>> ;; intangible text.
>> (mouse-on-link-p start-posn)))
>> (if (or (vectorp on-link) (stringp on-link))
>> (setq event (aref on-link 0))
>> (select-window original-window)
>> (setcar event 'mouse-2)
>> ;; If this mouse click has never been done by the
>> ;; user, it doesn't have the necessary property to be
>> ;; interpreted correctly.
>> (put 'mouse-2 'event-kind 'mouse-click)))
>>
>> (abridged from mouse.el:791/901 in Emacs 24.3.1)
>>
>> I think mouse--down-1-maybe-follows-link should do something similar.
>>
>
> Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might also be
> related.
>
>
I've attached a new patch that should hopefully correct the behavior.
[-- Attachment #1.2: Type: text/html, Size: 2817 bytes --]
[-- Attachment #2: 0001-Fix-handling-of-mouse-on-link-p.patch --]
[-- Type: application/octet-stream, Size: 7334 bytes --]
From 6b4e9cc6e79ec3e723f1d13457ec8a890de06b8b Mon Sep 17 00:00:00 2001
From: Philipp Stephani <phst@google.com>
Date: Tue, 10 May 2016 23:23:26 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20handling=20of=20=E2=80=98mouse-on-link-p?=
=?UTF-8?q?=E2=80=99.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
If ‘mouse-on-link-p’ returns a string or vector, the first element
is to be used as new event. Translation to ‘mouse-2’ should only
happen if the return value is not a string or vector. See
docstring of ‘mouse-on-link-p’ and Bug#23288.
* lisp/mouse.el (mouse--down-1-maybe-follows-link): Process return
value of ‘mouse-on-link-p’ according to documentation.
* test/automated/mouse-tests.el (bug23288-use-return-value)
(bug23288-translate-to-mouse-2): Tests for Bug#23288.
---
lisp/mouse.el | 66 ++++++++++++++++++++++++-------------------
test/automated/mouse-tests.el | 48 +++++++++++++++++++++++++++++++
2 files changed, 85 insertions(+), 29 deletions(-)
create mode 100644 test/automated/mouse-tests.el
diff --git a/lisp/mouse.el b/lisp/mouse.el
index fa355ff..e010def 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -97,35 +97,43 @@ mouse--down-1-maybe-follows-link
(when (and mouse-1-click-follows-link
(eq (if (eq mouse-1-click-follows-link 'double)
'double-down-mouse-1 'down-mouse-1)
- (car-safe last-input-event))
- (mouse-on-link-p (event-start last-input-event))
- (or mouse-1-click-in-non-selected-windows
- (eq (selected-window)
- (posn-window (event-start last-input-event)))))
- (let ((timedout
- (sit-for (if (numberp mouse-1-click-follows-link)
- (/ (abs mouse-1-click-follows-link) 1000.0)
- 0))))
- (if (if (and (numberp mouse-1-click-follows-link)
- (>= mouse-1-click-follows-link 0))
- timedout (not timedout))
- nil
-
- (let ((event (read-key))) ;Use read-key so it works for xterm-mouse-mode!
- (if (eq (car-safe event) (if (eq mouse-1-click-follows-link 'double)
- 'double-mouse-1 'mouse-1))
- ;; Turn the mouse-1 into a mouse-2 to follow links.
- (let ((newup (if (eq mouse-1-click-follows-link 'double)
- 'double-mouse-2 'mouse-2)))
- ;; If mouse-2 has never been done by the user, it doesn't have
- ;; the necessary property to be interpreted correctly.
- (unless (get newup 'event-kind)
- (put newup 'event-kind (get (car event) 'event-kind)))
- (push (cons newup (cdr event)) unread-command-events)
- ;; Don't change the down event, only the up-event (bug#18212).
- nil)
- (push event unread-command-events)
- nil))))))
+ (car-safe last-input-event)))
+ (let ((action (mouse-on-link-p (event-start last-input-event))))
+ (when (and action
+ (or mouse-1-click-in-non-selected-windows
+ (eq (selected-window)
+ (posn-window (event-start last-input-event)))))
+ (let ((timedout
+ (sit-for (if (numberp mouse-1-click-follows-link)
+ (/ (abs mouse-1-click-follows-link) 1000.0)
+ 0))))
+ (if (if (and (numberp mouse-1-click-follows-link)
+ (>= mouse-1-click-follows-link 0))
+ timedout (not timedout))
+ nil
+ ;; Use read-key so it works for xterm-mouse-mode!
+ (let ((event (read-key)))
+ (if (eq (car-safe event)
+ (if (eq mouse-1-click-follows-link 'double)
+ 'double-mouse-1 'mouse-1))
+ ;; Turn the mouse-1 into a mouse-2 to follow links,
+ ;; but only if ‘mouse-on-link-p’ hasn’t returned a
+ ;; string or vector (see its docstring).
+ (if (or (stringp action) (vectorp action))
+ (push (aref action 0) unread-command-events)
+ (let ((newup (if (eq mouse-1-click-follows-link 'double)
+ 'double-mouse-2 'mouse-2)))
+ ;; If mouse-2 has never been done by the user, it
+ ;; doesn't have the necessary property to be
+ ;; interpreted correctly.
+ (unless (get newup 'event-kind)
+ (put newup 'event-kind (get (car event) 'event-kind)))
+ (push (cons newup (cdr event)) unread-command-events))
+ ;; Don't change the down event, only the up-event
+ ;; (bug#18212).
+ nil)
+ (push event unread-command-events)
+ nil))))))))
(define-key key-translation-map [down-mouse-1]
#'mouse--down-1-maybe-follows-link)
diff --git a/test/automated/mouse-tests.el b/test/automated/mouse-tests.el
new file mode 100644
index 0000000..a0cbbeb
--- /dev/null
+++ b/test/automated/mouse-tests.el
@@ -0,0 +1,48 @@
+;;; mouse-tests.el --- unit tests for mouse.el -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2016 Free Software Foundation, Inc.
+
+;; Author: Philipp Stephani <phst@google.com>
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Unit tests for lisp/mouse.el.
+
+;;; Code:
+
+(ert-deftest bug23288-use-return-value ()
+ "If ‘mouse-on-link-p’ returns a string, its first character is
+used."
+ (cl-letf ((last-input-event '(down-mouse-1 nil 1))
+ (unread-command-events '((mouse-1 nil 1)))
+ (mouse-1-click-follows-link t)
+ (mouse-1-click-in-non-selected-windows t)
+ ((symbol-function 'mouse-on-link-p) (lambda (_pos) "abc")))
+ (mouse--down-1-maybe-follows-link)
+ (should (equal unread-command-events '(?a)))))
+
+(ert-deftest bug23288-translate-to-mouse-2 ()
+ "If ‘mouse-on-link-p’ doesn’t return a string or vector,
+translate ‘mouse-1’ events into ‘mouse-2’ events."
+ (cl-letf ((last-input-event '(down-mouse-1 nil 1))
+ (unread-command-events '((mouse-1 nil 1)))
+ (mouse-1-click-follows-link t)
+ (mouse-1-click-in-non-selected-windows t)
+ ((symbol-function 'mouse-on-link-p) (lambda (_pos) t)))
+ (mouse--down-1-maybe-follows-link)
+ (should (equal unread-command-events '((mouse-2 nil 1))))))
+
+;;; mouse-tests.el ends here
--
2.8.2
^ permalink raw reply related [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-10 21:25 ` Philipp Stephani
@ 2016-05-11 8:14 ` Eli Zaretskii
2016-05-11 8:32 ` Nils Berg
` (2 more replies)
0 siblings, 3 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-11 8:14 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 23288, nilsb
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Tue, 10 May 2016 21:25:47 +0000
> Cc: 23288@debbugs.gnu.org
>
> Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might also be related.
>
> I've attached a new patch that should hopefully correct the behavior.
Thanks. If no one objects in a week, please push to the master
branch.
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 8:14 ` Eli Zaretskii
@ 2016-05-11 8:32 ` Nils Berg
2016-05-11 13:01 ` Philipp Stephani
2016-05-11 13:32 ` Philipp Stephani
2016-05-20 18:24 ` bug#23288: 25.0.92; Clicking on links inserts primary X selection Philipp Stephani
2 siblings, 1 reply; 43+ messages in thread
From: Nils Berg @ 2016-05-11 8:32 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Philipp Stephani, 23288
[-- Attachment #1: Type: text/plain, Size: 916 bytes --]
Still no dice, sorry. I just tried the patched version with the original
example:
echo -n bar | xsel -i && \
emacs -Q -eval \
"(insert (propertize \"foo\" 'follow-link (lambda (pos) \"a\")))"
Now when I click foo nothing happens in the buffer, but there's an error
message:
Function mouse--down-1-maybe-follows-link returns invalid key sequence
I can't think of a reason why though :(
M-x version: GNU Emacs 25.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
On Wed, May 11, 2016 at 10:14 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Philipp Stephani <p.stephani2@gmail.com>
> > Date: Tue, 10 May 2016 21:25:47 +0000
> > Cc: 23288@debbugs.gnu.org
> >
> > Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might also
> be related.
> >
> > I've attached a new patch that should hopefully correct the behavior.
>
> Thanks. If no one objects in a week, please push to the master
> branch.
>
[-- Attachment #2: Type: text/html, Size: 1647 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 8:32 ` Nils Berg
@ 2016-05-11 13:01 ` Philipp Stephani
2016-05-11 13:14 ` Nils Berg
0 siblings, 1 reply; 43+ messages in thread
From: Philipp Stephani @ 2016-05-11 13:01 UTC (permalink / raw)
To: Nils Berg, Eli Zaretskii; +Cc: 23288
[-- Attachment #1.1: Type: text/plain, Size: 1124 bytes --]
There was a small bug in the patch. I've attached a new version that
hopefully fixes that.
Nils Berg <nilsb@google.com> schrieb am Mi., 11. Mai 2016 um 10:32 Uhr:
> Still no dice, sorry. I just tried the patched version with the original
> example:
> echo -n bar | xsel -i && \
> emacs -Q -eval \
> "(insert (propertize \"foo\" 'follow-link (lambda (pos) \"a\")))"
>
> Now when I click foo nothing happens in the buffer, but there's an error
> message:
> Function mouse--down-1-maybe-follows-link returns invalid key sequence
>
> I can't think of a reason why though :(
>
> M-x version: GNU Emacs 25.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8)
>
> On Wed, May 11, 2016 at 10:14 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Philipp Stephani <p.stephani2@gmail.com>
>> > Date: Tue, 10 May 2016 21:25:47 +0000
>> > Cc: 23288@debbugs.gnu.org
>> >
>> > Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might
>> also be related.
>> >
>> > I've attached a new patch that should hopefully correct the behavior.
>>
>> Thanks. If no one objects in a week, please push to the master
>> branch.
>>
>
>
[-- Attachment #1.2: Type: text/html, Size: 2124 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-handling-of-mouse-on-link-p.patch --]
[-- Type: text/x-patch; charset=US-ASCII; name="0001-Fix-handling-of-mouse-on-link-p.patch", Size: 7430 bytes --]
From bda8852c32a2c5ff79bbee5fbe9d61d42274054b Mon Sep 17 00:00:00 2001
From: Philipp Stephani <phst@google.com>
Date: Tue, 10 May 2016 23:23:26 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20handling=20of=20=E2=80=98mouse-on-link-p?=
=?UTF-8?q?=E2=80=99.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
If ‘mouse-on-link-p’ returns a string or vector, the first element
is to be used as new event. Translation to ‘mouse-2’ should only
happen if the return value is not a string or vector. See
docstring of ‘mouse-on-link-p’ and Bug#23288.
* lisp/mouse.el (mouse--down-1-maybe-follows-link): Process return
value of ‘mouse-on-link-p’ according to documentation.
* test/automated/mouse-tests.el (bug23288-use-return-value)
(bug23288-translate-to-mouse-2): Tests for Bug#23288.
---
lisp/mouse.el | 67 ++++++++++++++++++++++++-------------------
test/automated/mouse-tests.el | 48 +++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+), 29 deletions(-)
create mode 100644 test/automated/mouse-tests.el
diff --git a/lisp/mouse.el b/lisp/mouse.el
index fa355ff..ba6b04a 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -97,35 +97,44 @@ mouse--down-1-maybe-follows-link
(when (and mouse-1-click-follows-link
(eq (if (eq mouse-1-click-follows-link 'double)
'double-down-mouse-1 'down-mouse-1)
- (car-safe last-input-event))
- (mouse-on-link-p (event-start last-input-event))
- (or mouse-1-click-in-non-selected-windows
- (eq (selected-window)
- (posn-window (event-start last-input-event)))))
- (let ((timedout
- (sit-for (if (numberp mouse-1-click-follows-link)
- (/ (abs mouse-1-click-follows-link) 1000.0)
- 0))))
- (if (if (and (numberp mouse-1-click-follows-link)
- (>= mouse-1-click-follows-link 0))
- timedout (not timedout))
- nil
-
- (let ((event (read-key))) ;Use read-key so it works for xterm-mouse-mode!
- (if (eq (car-safe event) (if (eq mouse-1-click-follows-link 'double)
- 'double-mouse-1 'mouse-1))
- ;; Turn the mouse-1 into a mouse-2 to follow links.
- (let ((newup (if (eq mouse-1-click-follows-link 'double)
- 'double-mouse-2 'mouse-2)))
- ;; If mouse-2 has never been done by the user, it doesn't have
- ;; the necessary property to be interpreted correctly.
- (unless (get newup 'event-kind)
- (put newup 'event-kind (get (car event) 'event-kind)))
- (push (cons newup (cdr event)) unread-command-events)
- ;; Don't change the down event, only the up-event (bug#18212).
- nil)
- (push event unread-command-events)
- nil))))))
+ (car-safe last-input-event)))
+ (let ((action (mouse-on-link-p (event-start last-input-event))))
+ (when (and action
+ (or mouse-1-click-in-non-selected-windows
+ (eq (selected-window)
+ (posn-window (event-start last-input-event)))))
+ (let ((timedout
+ (sit-for (if (numberp mouse-1-click-follows-link)
+ (/ (abs mouse-1-click-follows-link) 1000.0)
+ 0))))
+ (if (if (and (numberp mouse-1-click-follows-link)
+ (>= mouse-1-click-follows-link 0))
+ timedout (not timedout))
+ nil
+ ;; Use read-key so it works for xterm-mouse-mode!
+ (let ((event (read-key)))
+ (if (eq (car-safe event)
+ (if (eq mouse-1-click-follows-link 'double)
+ 'double-mouse-1 'mouse-1))
+ (progn
+ ;; Turn the mouse-1 into a mouse-2 to follow links,
+ ;; but only if ‘mouse-on-link-p’ hasn’t returned a
+ ;; string or vector (see its docstring).
+ (if (or (stringp action) (vectorp action))
+ (push (aref action 0) unread-command-events)
+ (let ((newup (if (eq mouse-1-click-follows-link 'double)
+ 'double-mouse-2 'mouse-2)))
+ ;; If mouse-2 has never been done by the user, it
+ ;; doesn't have the necessary property to be
+ ;; interpreted correctly.
+ (unless (get newup 'event-kind)
+ (put newup 'event-kind (get (car event) 'event-kind)))
+ (push (cons newup (cdr event)) unread-command-events)))
+ ;; Don't change the down event, only the up-event
+ ;; (bug#18212).
+ nil)
+ (push event unread-command-events)
+ nil))))))))
(define-key key-translation-map [down-mouse-1]
#'mouse--down-1-maybe-follows-link)
diff --git a/test/automated/mouse-tests.el b/test/automated/mouse-tests.el
new file mode 100644
index 0000000..21abf38
--- /dev/null
+++ b/test/automated/mouse-tests.el
@@ -0,0 +1,48 @@
+;;; mouse-tests.el --- unit tests for mouse.el -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2016 Free Software Foundation, Inc.
+
+;; Author: Philipp Stephani <phst@google.com>
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Unit tests for lisp/mouse.el.
+
+;;; Code:
+
+(ert-deftest bug23288-use-return-value ()
+ "If ‘mouse-on-link-p’ returns a string, its first character is
+used."
+ (cl-letf ((last-input-event '(down-mouse-1 nil 1))
+ (unread-command-events '((mouse-1 nil 1)))
+ (mouse-1-click-follows-link t)
+ (mouse-1-click-in-non-selected-windows t)
+ ((symbol-function 'mouse-on-link-p) (lambda (_pos) "abc")))
+ (should-not (mouse--down-1-maybe-follows-link))
+ (should (equal unread-command-events '(?a)))))
+
+(ert-deftest bug23288-translate-to-mouse-2 ()
+ "If ‘mouse-on-link-p’ doesn’t return a string or vector,
+translate ‘mouse-1’ events into ‘mouse-2’ events."
+ (cl-letf ((last-input-event '(down-mouse-1 nil 1))
+ (unread-command-events '((mouse-1 nil 1)))
+ (mouse-1-click-follows-link t)
+ (mouse-1-click-in-non-selected-windows t)
+ ((symbol-function 'mouse-on-link-p) (lambda (_pos) t)))
+ (should-not (mouse--down-1-maybe-follows-link))
+ (should (equal unread-command-events '((mouse-2 nil 1))))))
+
+;;; mouse-tests.el ends here
--
2.8.0.rc3.226.g39d4020
^ permalink raw reply related [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 13:01 ` Philipp Stephani
@ 2016-05-11 13:14 ` Nils Berg
0 siblings, 0 replies; 43+ messages in thread
From: Nils Berg @ 2016-05-11 13:14 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 23288
[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]
Perfect, now it works :) Thanks for fixing this!
On Wed, May 11, 2016 at 3:01 PM, Philipp Stephani <p.stephani2@gmail.com>
wrote:
> There was a small bug in the patch. I've attached a new version that
> hopefully fixes that.
>
>
> Nils Berg <nilsb@google.com> schrieb am Mi., 11. Mai 2016 um 10:32 Uhr:
>
>> Still no dice, sorry. I just tried the patched version with the original
>> example:
>> echo -n bar | xsel -i && \
>> emacs -Q -eval \
>> "(insert (propertize \"foo\" 'follow-link (lambda (pos) \"a\")))"
>>
>> Now when I click foo nothing happens in the buffer, but there's an error
>> message:
>> Function mouse--down-1-maybe-follows-link returns invalid key sequence
>>
>> I can't think of a reason why though :(
>>
>> M-x version: GNU Emacs 25.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version
>> 3.10.8)
>>
>> On Wed, May 11, 2016 at 10:14 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>>
>>> > From: Philipp Stephani <p.stephani2@gmail.com>
>>> > Date: Tue, 10 May 2016 21:25:47 +0000
>>> > Cc: 23288@debbugs.gnu.org
>>> >
>>> > Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might
>>> also be related.
>>> >
>>> > I've attached a new patch that should hopefully correct the behavior.
>>>
>>> Thanks. If no one objects in a week, please push to the master
>>> branch.
>>>
>>
>>
[-- Attachment #2: Type: text/html, Size: 2601 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 8:14 ` Eli Zaretskii
2016-05-11 8:32 ` Nils Berg
@ 2016-05-11 13:32 ` Philipp Stephani
2016-05-11 13:56 ` Eli Zaretskii
2016-05-20 18:24 ` bug#23288: 25.0.92; Clicking on links inserts primary X selection Philipp Stephani
2 siblings, 1 reply; 43+ messages in thread
From: Philipp Stephani @ 2016-05-11 13:32 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 23288, nilsb
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
Eli Zaretskii <eliz@gnu.org> schrieb am Mi., 11. Mai 2016 um 10:14 Uhr:
> > From: Philipp Stephani <p.stephani2@gmail.com>
> > Date: Tue, 10 May 2016 21:25:47 +0000
> > Cc: 23288@debbugs.gnu.org
> >
> > Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might also
> be related.
> >
> > I've attached a new patch that should hopefully correct the behavior.
>
> Thanks. If no one objects in a week, please push to the master
> branch.
>
Not to emacs-25? The bug is rather annoying, and the fix comparatively
simple.
[-- Attachment #2: Type: text/html, Size: 1070 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 13:32 ` Philipp Stephani
@ 2016-05-11 13:56 ` Eli Zaretskii
2016-05-11 18:18 ` John Wiegley
2016-05-11 18:40 ` Glenn Morris
0 siblings, 2 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-11 13:56 UTC (permalink / raw)
To: Philipp Stephani, John Wiegley; +Cc: 23288, nilsb
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Wed, 11 May 2016 13:32:09 +0000
> Cc: nilsb@google.com, 23288@debbugs.gnu.org
>
> Thanks. If no one objects in a week, please push to the master
> branch.
>
> Not to emacs-25? The bug is rather annoying, and the fix comparatively simple.
It didn't look simple to me, but maybe I'm missing something.
CC'ing John, so he could make the decision.
Thanks.
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 13:56 ` Eli Zaretskii
@ 2016-05-11 18:18 ` John Wiegley
2016-05-11 18:40 ` Glenn Morris
1 sibling, 0 replies; 43+ messages in thread
From: John Wiegley @ 2016-05-11 18:18 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Philipp Stephani, 23288, nilsb
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
>>>>> Eli Zaretskii <eliz@gnu.org> writes:
> It didn't look simple to me, but maybe I'm missing something.
It doesn't look simple enough for 25.1.
Remember, 25.2 can come out as quickly after as we want it to, so please tag
it for that release.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 629 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 13:56 ` Eli Zaretskii
2016-05-11 18:18 ` John Wiegley
@ 2016-05-11 18:40 ` Glenn Morris
2016-05-11 21:04 ` Eli Zaretskii
1 sibling, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2016-05-11 18:40 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Philipp Stephani, John Wiegley, 23288, nilsb
FWIW, this seems to me like a bad bug that should be fixed for 25.1.
Accidentally pasting the selection can be bad (eg if you don't notice it
happened and there was something sensitive there).
(See also merged #22434. Marked as release blocking for 3+ months.)
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 18:40 ` Glenn Morris
@ 2016-05-11 21:04 ` Eli Zaretskii
2016-05-12 5:42 ` John Wiegley
2016-05-12 16:49 ` Glenn Morris
0 siblings, 2 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-11 21:04 UTC (permalink / raw)
To: Glenn Morris; +Cc: p.stephani2, johnw, 23288, nilsb
> From: Glenn Morris <rgm@gnu.org>
> Cc: Philipp Stephani <p.stephani2@gmail.com>, John Wiegley <johnw@gnu.org>, 23288@debbugs.gnu.org, nilsb@google.com
> Date: Wed, 11 May 2016 14:40:54 -0400
>
>
> FWIW, this seems to me like a bad bug that should be fixed for 25.1.
> Accidentally pasting the selection can be bad (eg if you don't notice it
> happened and there was something sensitive there).
>
> (See also merged #22434. Marked as release blocking for 3+ months.)
Sorry, I don't see the list of blocking bugs being treated seriously.
If we did treat it seriously, we wouldn't have had "deep freeze" on
emacs-25, and wouldn't be planning the release in less than a month.
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 21:04 ` Eli Zaretskii
@ 2016-05-12 5:42 ` John Wiegley
2016-05-12 19:26 ` Eli Zaretskii
2016-05-12 16:49 ` Glenn Morris
1 sibling, 1 reply; 43+ messages in thread
From: John Wiegley @ 2016-05-12 5:42 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: p.stephani2, 23288, nilsb
>>>>> Eli Zaretskii <eliz@gnu.org> writes:
>> (See also merged #22434. Marked as release blocking for 3+ months.)
> Sorry, I don't see the list of blocking bugs being treated seriously. If we
> did treat it seriously, we wouldn't have had "deep freeze" on emacs-25, and
> wouldn't be planning the release in less than a month.
I'm not sure how those two things follow from not treating the blocking list
seriously, Eli. Can you please explain? As far as I understand it, others will
treat it as seriously as we do.
As it stands right now, I think many of the bugs on that list do not deserve
to be there, so it's a matter of priority setting.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 21:04 ` Eli Zaretskii
2016-05-12 5:42 ` John Wiegley
@ 2016-05-12 16:49 ` Glenn Morris
2016-05-12 17:21 ` Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection] John Wiegley
1 sibling, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2016-05-12 16:49 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: p.stephani2, johnw, 23288, nilsb
Eli Zaretskii wrote:
> Sorry, I don't see the list of blocking bugs being treated seriously.
> If we did treat it seriously, we wouldn't have had "deep freeze" on
> emacs-25, and wouldn't be planning the release in less than a month.
(off-topic)
Indeed. Though I have noticed some people looking at those issues
recently (thanks!).
I'd hope those in charge would be encouraging people to work on those
issues, but I haven't noticed it happening. Previous Emacs releases
weren't time-based, but were made when they were ready.
Also, good luck proof-reading every manual chapter in a month! :)
^ permalink raw reply [flat|nested] 43+ messages in thread
* Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-12 16:49 ` Glenn Morris
@ 2016-05-12 17:21 ` John Wiegley
2016-05-12 21:43 ` Paul Eggert
2016-05-13 9:02 ` Eli Zaretskii
0 siblings, 2 replies; 43+ messages in thread
From: John Wiegley @ 2016-05-12 17:21 UTC (permalink / raw)
To: Glenn Morris; +Cc: Eli Zaretskii, p.stephani2, nilsb, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1907 bytes --]
[I'm moving this discussion from Bug #23288 to Emacs-Devel, to widen
participation]
>>>>> Glenn Morris <rgm@gnu.org> writes:
> Eli Zaretskii wrote:
>> Sorry, I don't see the list of blocking bugs being treated seriously. If we
>> did treat it seriously, we wouldn't have had "deep freeze" on emacs-25, and
>> wouldn't be planning the release in less than a month.
> Indeed. Though I have noticed some people looking at those issues recently
> (thanks!).
> I'd hope those in charge would be encouraging people to work on those
> issues, but I haven't noticed it happening.
I've already asked for everyone to focus on that list until release. Did you
not see that? I've mentioned it in a few places.
> Previous Emacs releases weren't time-based, but were made when they were
> ready.
I only introduced a date to focus our decision making around 25.1, and since
this is what I'm used to doing to ship software.
HOWEVER, if having a date is stressful or unpleasant for those doing the work,
we can get rid of it. I'm not doing this to put undue pressure on anyone.
Personally, I don't mind if Emacs 25 takes another year to happen, since the
pretests are working well and 24.5 is fully capable.
I want to know what works best for those doing the actual release work. Do you
want a timeframe? Do you want a release-blocking list?
If you'd prefer to do this in an unstructured way -- if that's what will
improve our bug closure rate and our code quality -- then by all means. But I
want to hear that from the core developers first, as it also introduces a bit
of chaos (for example, I'd have no real metric by which to ask people to
revert a change they just made on a release branch, other than gut feeling).
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 629 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-12 5:42 ` John Wiegley
@ 2016-05-12 19:26 ` Eli Zaretskii
2016-05-12 21:24 ` John Wiegley
0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-12 19:26 UTC (permalink / raw)
To: John Wiegley; +Cc: p.stephani2, 23288, nilsb
> From: John Wiegley <jwiegley@gmail.com>
> Cc: Glenn Morris <rgm@gnu.org>, p.stephani2@gmail.com, 23288@debbugs.gnu.org, nilsb@google.com
> Date: Wed, 11 May 2016 22:42:21 -0700
>
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> (See also merged #22434. Marked as release blocking for 3+ months.)
>
> > Sorry, I don't see the list of blocking bugs being treated seriously. If we
> > did treat it seriously, we wouldn't have had "deep freeze" on emacs-25, and
> > wouldn't be planning the release in less than a month.
>
> I'm not sure how those two things follow from not treating the blocking list
> seriously, Eli. Can you please explain?
The long list of blocking bugs is simply incompatible with the current
release schedule. And I don't see any intensive work to resolve those
bugs.
> As it stands right now, I think many of the bugs on that list do not deserve
> to be there, so it's a matter of priority setting.
Bugs that don't deserve being there should be removed from the list.
After that is done, we could again decide whether we can still release
as planned.
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-12 19:26 ` Eli Zaretskii
@ 2016-05-12 21:24 ` John Wiegley
0 siblings, 0 replies; 43+ messages in thread
From: John Wiegley @ 2016-05-12 21:24 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: p.stephani2, 23288, nilsb
>>>>> Eli Zaretskii <eliz@gnu.org> writes:
> Bugs that don't deserve being there should be removed from the list. After
> that is done, we could again decide whether we can still release as planned.
Agreed. Then consider the release date flexible until we've determined what
our real workload is.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-12 17:21 ` Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection] John Wiegley
@ 2016-05-12 21:43 ` Paul Eggert
2016-05-16 19:08 ` Glenn Morris
2016-05-13 9:02 ` Eli Zaretskii
1 sibling, 1 reply; 43+ messages in thread
From: Paul Eggert @ 2016-05-12 21:43 UTC (permalink / raw)
To: Glenn Morris, Eli Zaretskii, p.stephani2, emacs-devel, nilsb
On 05/12/2016 10:21 AM, John Wiegley wrote:
> I only introduced a date to focus our decision making around 25.1, and
> since
> this is what I'm used to doing to ship software.
>
> HOWEVER, if having a date is stressful or unpleasant for those doing the work,
> we can get rid of it.
The date is arbitrary and should not be driving development. That being
said, the list of blocking bugs is too long: currently 28 entries, and
they are largely nontrivial. The list needs to be whittled down.
> I don't mind if Emacs 25 takes another year to happen
I would mind. Two years between releases is too long. This isn't gzip
we're talking about.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-12 17:21 ` Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection] John Wiegley
2016-05-12 21:43 ` Paul Eggert
@ 2016-05-13 9:02 ` Eli Zaretskii
2016-05-13 16:36 ` John Wiegley
1 sibling, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-13 9:02 UTC (permalink / raw)
To: John Wiegley; +Cc: emacs-devel
> From: John Wiegley <jwiegley@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, p.stephani2@gmail.com, emacs-devel <emacs-devel@gnu.org>, nilsb@google.com
> Date: Thu, 12 May 2016 10:21:55 -0700
>
> I've already asked for everyone to focus on that list until release. Did you
> not see that? I've mentioned it in a few places.
That evidently doesn't help enough.
> > Previous Emacs releases weren't time-based, but were made when they were
> > ready.
>
> I only introduced a date to focus our decision making around 25.1, and since
> this is what I'm used to doing to ship software.
>
> HOWEVER, if having a date is stressful or unpleasant for those doing the work,
> we can get rid of it. I'm not doing this to put undue pressure on anyone.
> Personally, I don't mind if Emacs 25 takes another year to happen, since the
> pretests are working well and 24.5 is fully capable.
It's not stressful. It's just strange, to say the least, to see a
long list of bugs designated as blocking, with the imminent release
date approaching fast, and almost no one investing any work of any
kind on the blocking bugs, be it re-classifying them so that the list
becomes shorter, or solving them. Instead, almost everyone work on
master, as if the release is not important at all.
> I want to know what works best for those doing the actual release work. Do you
> want a timeframe? Do you want a release-blocking list?
FWIW, I'd like to see more people working on the bugs deemed blocking
the release. For instance, some of the bugs identify the commit that
caused it, so the people who made those commits should hopefully step
forward and work on the issues.
Bottom line, there seems to be a certain dissonance between the
announced release date and how we invest our resources. It's
confusing, at least from my POV.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-13 9:02 ` Eli Zaretskii
@ 2016-05-13 16:36 ` John Wiegley
0 siblings, 0 replies; 43+ messages in thread
From: John Wiegley @ 2016-05-13 16:36 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]
>>>>> Eli Zaretskii <eliz@gnu.org> writes:
>> I want to know what works best for those doing the actual release work. Do
>> you want a timeframe? Do you want a release-blocking list?
> FWIW, I'd like to see more people working on the bugs deemed blocking the
> release. For instance, some of the bugs identify the commit that caused it,
> so the people who made those commits should hopefully step forward and work
> on the issues.
> Bottom line, there seems to be a certain dissonance between the announced
> release date and how we invest our resources. It's confusing, at least from
> my POV.
I couldn't agree more, Eli.
We're all volunteers, so I understand people are free to work on whatever
pleases them. But if those reading this are interested in the quality of our
next Emacs release, please dedicate your next several weeks to reducing the
blocking list to zero, even if that means just removing them from the list
after reviewing them.
Once we hit zero, and can stay at zero for at least several days, we will ship
and shift to 25.2/26.1 quickly after (there are already a few fixes queued up
for 25.2, as I understand; and development for 26.1 is currently underway).
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 629 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-12 21:43 ` Paul Eggert
@ 2016-05-16 19:08 ` Glenn Morris
2016-05-18 6:09 ` John Wiegley
0 siblings, 1 reply; 43+ messages in thread
From: Glenn Morris @ 2016-05-16 19:08 UTC (permalink / raw)
To: Paul Eggert; +Cc: Eli Zaretskii, p.stephani2, nilsb, emacs-devel
"Blocking" is just the debbugs terminology. When I add something to
this list, it is something I think needs "attention" before the
release. (I tend to throw any obvious regression wrt to 24 on there.)
"Attention" can mean someone taking 30 seconds to make an informed
comment "this isn't an issue for 25.1 because X". (In which case they
may want to shift it to #21966.)
I'd hope it would go without saying, but feel free to remove things
If I disagree, I'll comment in the relevant report.
(BTW, I've never claimed my additions are exhaustive.)
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-16 19:08 ` Glenn Morris
@ 2016-05-18 6:09 ` John Wiegley
2016-05-21 19:06 ` Eli Zaretskii
0 siblings, 1 reply; 43+ messages in thread
From: John Wiegley @ 2016-05-18 6:09 UTC (permalink / raw)
To: Glenn Morris; +Cc: Eli Zaretskii, Paul Eggert, p.stephani2, nilsb, emacs-devel
>>>>> Glenn Morris <rgm@gnu.org> writes:
> "Blocking" is just the debbugs terminology. When I add something to this
> list, it is something I think needs "attention" before the release. (I tend
> to throw any obvious regression wrt to 24 on there.) "Attention" can mean
> someone taking 30 seconds to make an informed comment "this isn't an issue
> for 25.1 because X". (In which case they may want to shift it to #21966.)
> I'd hope it would go without saying, but feel free to remove things If I
> disagree, I'll comment in the relevant report.
Then by all means, let's please unblock all the bugs we can, so that we have a
real list of pressing issues to look at. Eli, if they don't look serious to
you, just unblock them, and we'll let others comment if they disagree after.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 43+ messages in thread
* bug#23288: 25.0.92; Clicking on links inserts primary X selection
2016-05-11 8:14 ` Eli Zaretskii
2016-05-11 8:32 ` Nils Berg
2016-05-11 13:32 ` Philipp Stephani
@ 2016-05-20 18:24 ` Philipp Stephani
2 siblings, 0 replies; 43+ messages in thread
From: Philipp Stephani @ 2016-05-20 18:24 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 23288, nilsb
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
Eli Zaretskii <eliz@gnu.org> schrieb am Mi., 11. Mai 2016 um 10:14 Uhr:
> > From: Philipp Stephani <p.stephani2@gmail.com>
> > Date: Tue, 10 May 2016 21:25:47 +0000
> > Cc: 23288@debbugs.gnu.org
> >
> > Agreed. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17887 might also
> be related.
> >
> > I've attached a new patch that should hopefully correct the behavior.
>
> Thanks. If no one objects in a week, please push to the master
> branch.
>
Pushed to master (after moving the test file).
[-- Attachment #2: Type: text/html, Size: 1040 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-18 6:09 ` John Wiegley
@ 2016-05-21 19:06 ` Eli Zaretskii
2016-05-21 20:48 ` Mike Kupfer
` (5 more replies)
0 siblings, 6 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-21 19:06 UTC (permalink / raw)
To: John Wiegley; +Cc: emacs-devel
> From: John Wiegley <jwiegley@gmail.com>
> Cc: Paul Eggert <eggert@cs.ucla.edu>, Eli Zaretskii <eliz@gnu.org>, p.stephani2@gmail.com, nilsb@google.com, emacs-devel <emacs-devel@gnu.org>
> Date: Tue, 17 May 2016 23:09:08 -0700
>
> >>>>> Glenn Morris <rgm@gnu.org> writes:
>
> > "Blocking" is just the debbugs terminology. When I add something to this
> > list, it is something I think needs "attention" before the release. (I tend
> > to throw any obvious regression wrt to 24 on there.) "Attention" can mean
> > someone taking 30 seconds to make an informed comment "this isn't an issue
> > for 25.1 because X". (In which case they may want to shift it to #21966.)
>
> > I'd hope it would go without saying, but feel free to remove things If I
> > disagree, I'll comment in the relevant report.
>
> Then by all means, let's please unblock all the bugs we can, so that we have a
> real list of pressing issues to look at. Eli, if they don't look serious to
> you, just unblock them, and we'll let others comment if they disagree after.
Thanks to efforts by Paul and others, the current list is just this:
17693 24.3.91.1; desktop-save-mode disables option -nw
17976 24.3; url-retrieve-synchronously doesn't fallback to IPv4
19548 VC changes under-documented, needlessly incompatible
19717 24.4.50; printing.el still uses ps-eval-switch
20247 24.4; Emacs hangs at startup in desktop mode
21182 25.0.50; gnus: every other unread message is marked as read on
21650 24.5; mh-e keeps trying to open urls
21871 Emacs Lisp Mode (at least): spurious parens in column 0 don't get
21874 25.0.50; point-entered no longer works
22107 this-command-keys no longer returns prefix argument
22147 Obsolete search-forward-lax-whitespace
22295 viper-mode undo bug introduced between Nov 10 and Nov 14
22338 25.0.50; deactivate-mark regression
22434 25.0.50; recentf pastes X clipboard upon opening
22795 25.0.91; Can't write read only file on w32
23050 package.el overwrites symlinks when saving "(package-initialize)"
23360 bug fonts display overlap all versions
23519 25.0.93; pasting with the middle mouse button while searching
Here's my suggestions for how to treat these:
17693 -- patch was proposed, suggest to push and close the bug
17976 -- missing feature, shouldn't be blocking
19548 -- not clear what should be done there; shouldn't block
19717 -- patch was proposed, suggest to push and close
20247 -- for Emacs 25.1, suggest to default
desktop-restore-in-current-display to t, and then release the block
21182 -- not serious enough to block the release
21650 -- AFAIU is now a n MH-E issue, so shouldn't block the release
21871 -- not serious enough to block the release
21874 -- looks like a minor issue to me, certainly not worthy of blocking
22107 -- less than a minor issue, given the behavior is perceived correct
22147 -- not serious enough to block the release
22295 -- solution exists on a branch; suggest to merge it and close
22338 -- minor issue that happens in rare situations; shouldn't block
22434 -- sounds serious; could someone please work on this one?
22795 -- I'm waiting for the OP to present more info
23050 -- Glenn suggested a solution, I suggest to accept it
23360 -- I will add a variable to allow to work around the problem
23519 -- a solution was proposed, so we can solve this
If no one objects, 6 bugs can be solved and closed, 9 should be
removed from the blocking list, 2 I will solve, and 1 (22434) awaits
someone to work and fix.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 19:06 ` Eli Zaretskii
@ 2016-05-21 20:48 ` Mike Kupfer
2016-05-23 4:58 ` Bill Wohler
2016-05-30 23:21 ` Bill Wohler
2016-05-22 2:02 ` Paul Eggert
` (4 subsequent siblings)
5 siblings, 2 replies; 43+ messages in thread
From: Mike Kupfer @ 2016-05-21 20:48 UTC (permalink / raw)
To: Eli Zaretskii, wohler; +Cc: John Wiegley, emacs-devel
Eli Zaretskii wrote:
> 21650 -- AFAIU is now a n MH-E issue, so shouldn't block the release
Agreed, no longer a blocker. All the the necessary code changes are
already in the emacs-25 branch.
The only remaining work that I'm aware of for this bug is updating the
MH-E documentation to mention the new controls that Katsumi kindly
implemented. (Bill, are you going to have time to apply the patch I
submitted?)
mike
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 19:06 ` Eli Zaretskii
2016-05-21 20:48 ` Mike Kupfer
@ 2016-05-22 2:02 ` Paul Eggert
2016-05-22 4:52 ` John Wiegley
` (3 subsequent siblings)
5 siblings, 0 replies; 43+ messages in thread
From: Paul Eggert @ 2016-05-22 2:02 UTC (permalink / raw)
To: Eli Zaretskii, John Wiegley; +Cc: emacs-devel
Eli Zaretskii wrote:
> 20247 -- for Emacs 25.1, suggest to default
> desktop-restore-in-current-display to t, and then release the block
Yes, that's my thought too; see <http://bugs.gnu.org/20247#16>. This is a change
to Emacs behavior and I said I'd mention this on emacs-devel before installing
it, but now I see you beat me to mentioning it.
The main objections in that bug report to changing the default were along the
lines of "someone should come up with a better fix", which of course would be
nice if someone had the time to do that. In the meantime changing the default
would have prevented the reported problem and seems like an improvement overall.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 19:06 ` Eli Zaretskii
2016-05-21 20:48 ` Mike Kupfer
2016-05-22 2:02 ` Paul Eggert
@ 2016-05-22 4:52 ` John Wiegley
2016-05-22 16:38 ` Eli Zaretskii
2016-05-22 16:31 ` Eli Zaretskii
` (2 subsequent siblings)
5 siblings, 1 reply; 43+ messages in thread
From: John Wiegley @ 2016-05-22 4:52 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 394 bytes --]
>>>>> Eli Zaretskii <eliz@gnu.org> writes:
> If no one objects, 6 bugs can be solved and closed, 9 should be removed from
> the blocking list, 2 I will solve, and 1 (22434) awaits someone to work and
> fix.
No objections from me.
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 629 bytes --]
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 19:06 ` Eli Zaretskii
` (2 preceding siblings ...)
2016-05-22 4:52 ` John Wiegley
@ 2016-05-22 16:31 ` Eli Zaretskii
2016-05-22 21:09 ` Dmitry Gutov
2016-05-22 21:24 ` Dmitry Gutov
5 siblings, 0 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-22 16:31 UTC (permalink / raw)
To: jwiegley; +Cc: emacs-devel
> Date: Sat, 21 May 2016 22:06:13 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
>
> 23360 -- I will add a variable to allow to work around the problem
Done.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-22 4:52 ` John Wiegley
@ 2016-05-22 16:38 ` Eli Zaretskii
0 siblings, 0 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-22 16:38 UTC (permalink / raw)
To: John Wiegley; +Cc: emacs-devel
> From: John Wiegley <jwiegley@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Sat, 21 May 2016 21:52:55 -0700
>
> >>>>> Eli Zaretskii <eliz@gnu.org> writes:
>
> > If no one objects, 6 bugs can be solved and closed, 9 should be removed from
> > the blocking list, 2 I will solve, and 1 (22434) awaits someone to work and
> > fix.
>
> No objections from me.
Thanks, I've removed from the blocking list all of the minor issues.
The rest are those for which solutions are available and await
pushing/merging, and a couple that are still being worked on.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 19:06 ` Eli Zaretskii
` (3 preceding siblings ...)
2016-05-22 16:31 ` Eli Zaretskii
@ 2016-05-22 21:09 ` Dmitry Gutov
2016-05-22 21:24 ` Dmitry Gutov
5 siblings, 0 replies; 43+ messages in thread
From: Dmitry Gutov @ 2016-05-22 21:09 UTC (permalink / raw)
To: Eli Zaretskii, John Wiegley; +Cc: emacs-devel
On 05/21/2016 10:06 PM, Eli Zaretskii wrote:
> 19548 -- not clear what should be done there; shouldn't block
About this one: I've outlined the current situation with vc-stay-local,
and I'm not sure whether it needs changing.
I think you and John should take a look.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 19:06 ` Eli Zaretskii
` (4 preceding siblings ...)
2016-05-22 21:09 ` Dmitry Gutov
@ 2016-05-22 21:24 ` Dmitry Gutov
2016-05-23 2:32 ` Eli Zaretskii
5 siblings, 1 reply; 43+ messages in thread
From: Dmitry Gutov @ 2016-05-22 21:24 UTC (permalink / raw)
To: Eli Zaretskii, John Wiegley; +Cc: emacs-devel
Does anyone object to adding bug#23508 to the blockers list?
From the description, it seems like a regression from Emacs 24.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-22 21:24 ` Dmitry Gutov
@ 2016-05-23 2:32 ` Eli Zaretskii
2016-05-23 13:18 ` Dmitry Gutov
0 siblings, 1 reply; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-23 2:32 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: jwiegley, emacs-devel
> Cc: emacs-devel@gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Mon, 23 May 2016 00:24:23 +0300
>
> Does anyone object to adding bug#23508 to the blockers list?
>
> From the description, it seems like a regression from Emacs 24.
It's a regression, but AFAIU it only exists on master, so doesn't
affect Emacs 25.1.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 20:48 ` Mike Kupfer
@ 2016-05-23 4:58 ` Bill Wohler
2016-05-30 23:21 ` Bill Wohler
1 sibling, 0 replies; 43+ messages in thread
From: Bill Wohler @ 2016-05-23 4:58 UTC (permalink / raw)
To: Mike Kupfer; +Cc: John Wiegley, Eli Zaretskii, emacs-devel
Soon. Sorry, I was releasing software, flying on SOFIA, and moving. I
know. No excuse. Unlike jury duty, which I was excused from recently.
We have a three-day weekend next week, so I am hopeful.
Mike Kupfer <m.kupfer@acm.org> wrote:
> Eli Zaretskii wrote:
>
> > 21650 -- AFAIU is now a n MH-E issue, so shouldn't block the release
>
> Agreed, no longer a blocker. All the the necessary code changes are
> already in the emacs-25 branch.
>
> The only remaining work that I'm aware of for this bug is updating the
> MH-E documentation to mention the new controls that Katsumi kindly
> implemented. (Bill, are you going to have time to apply the patch I
> submitted?)
>
> mike
--
Bill Wohler <wohler@newt.com> aka <Bill.Wohler@nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-23 2:32 ` Eli Zaretskii
@ 2016-05-23 13:18 ` Dmitry Gutov
2016-05-23 16:15 ` Paul Eggert
0 siblings, 1 reply; 43+ messages in thread
From: Dmitry Gutov @ 2016-05-23 13:18 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: jwiegley, emacs-devel
On 05/23/2016 05:32 AM, Eli Zaretskii wrote:
>> Does anyone object to adding bug#23508 to the blockers list?
>>
>> From the description, it seems like a regression from Emacs 24.
>
> It's a regression, but AFAIU it only exists on master, so doesn't
> affect Emacs 25.1.
Oh, ok, sorry.
Could you look at bug#23595, then? It shows a behavior that became worse
in 25.1 since 24.5 (even though it's not so great in 24.5 either).
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-23 13:18 ` Dmitry Gutov
@ 2016-05-23 16:15 ` Paul Eggert
2016-05-23 16:36 ` Dmitry Gutov
2016-05-23 16:52 ` Eli Zaretskii
0 siblings, 2 replies; 43+ messages in thread
From: Paul Eggert @ 2016-05-23 16:15 UTC (permalink / raw)
To: Dmitry Gutov, Eli Zaretskii; +Cc: jwiegley, emacs-devel
On 05/23/2016 06:18 AM, Dmitry Gutov wrote:
> Could you look at bug#23595, then? It shows a behavior that became
> worse in 25.1 since 24.5 (even though it's not so great in 24.5 either).
I get the same awful behavior with both 24.5 and 25, at least when
registering the file under RCS using Fedora 23. In both cases, Emacs
displays mojibake because rcsdiff outputs a "Binary files ... differ"
message in ASCII and Emacs I guess assumes that the message is in
UTF-16. It's obviously a bug but I don't see a regression.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-23 16:15 ` Paul Eggert
@ 2016-05-23 16:36 ` Dmitry Gutov
2016-05-23 17:39 ` Paul Eggert
2016-05-23 16:52 ` Eli Zaretskii
1 sibling, 1 reply; 43+ messages in thread
From: Dmitry Gutov @ 2016-05-23 16:36 UTC (permalink / raw)
To: Paul Eggert, Eli Zaretskii; +Cc: jwiegley, emacs-devel
On 05/23/2016 07:15 PM, Paul Eggert wrote:
> I get the same awful behavior with both 24.5 and 25, at least when
> registering the file under RCS using Fedora 23.
I don't see it with Git in 24.5. Just "Binary files a/test-chin-jap.tex
and b/test-chin-jap.tex differ".
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-23 16:15 ` Paul Eggert
2016-05-23 16:36 ` Dmitry Gutov
@ 2016-05-23 16:52 ` Eli Zaretskii
1 sibling, 0 replies; 43+ messages in thread
From: Eli Zaretskii @ 2016-05-23 16:52 UTC (permalink / raw)
To: Paul Eggert; +Cc: jwiegley, emacs-devel, dgutov
> Cc: jwiegley@gmail.com, emacs-devel@gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Mon, 23 May 2016 09:15:30 -0700
>
> On 05/23/2016 06:18 AM, Dmitry Gutov wrote:
> > Could you look at bug#23595, then? It shows a behavior that became
> > worse in 25.1 since 24.5 (even though it's not so great in 24.5 either).
>
> I get the same awful behavior with both 24.5 and 25, at least when
> registering the file under RCS using Fedora 23. In both cases, Emacs
> displays mojibake because rcsdiff outputs a "Binary files ... differ"
> message in ASCII and Emacs I guess assumes that the message is in
> UTF-16. It's obviously a bug but I don't see a regression.
Right, I agree. Does "git diff --text" fix this?
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-23 16:36 ` Dmitry Gutov
@ 2016-05-23 17:39 ` Paul Eggert
0 siblings, 0 replies; 43+ messages in thread
From: Paul Eggert @ 2016-05-23 17:39 UTC (permalink / raw)
To: Dmitry Gutov, Eli Zaretskii; +Cc: jwiegley, emacs-devel
On 05/23/2016 09:36 AM, Dmitry Gutov wrote:
> I don't see it with Git in 24.5. Just "Binary files
> a/test-chin-jap.tex and b/test-chin-jap.tex differ".
Ah, I didn't test Git, only RCS. You're right, there is a regression for
Git (which is way more important than RCS these days). I will follow up
on Bug#23595. Whether this is a blocker depends on the importance of
Git-controlled UTF-16 files.
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection]
2016-05-21 20:48 ` Mike Kupfer
2016-05-23 4:58 ` Bill Wohler
@ 2016-05-30 23:21 ` Bill Wohler
1 sibling, 0 replies; 43+ messages in thread
From: Bill Wohler @ 2016-05-30 23:21 UTC (permalink / raw)
To: Mike Kupfer; +Cc: John Wiegley, Eli Zaretskii, emacs-devel
Mike Kupfer <m.kupfer@acm.org> wrote:
> Eli Zaretskii wrote:
>
> > 21650 -- AFAIU is now a n MH-E issue, so shouldn't block the release
>
> Agreed, no longer a blocker. All the the necessary code changes are
> already in the emacs-25 branch.
>
> The only remaining work that I'm aware of for this bug is updating the
> MH-E documentation to mention the new controls that Katsumi kindly
> implemented. (Bill, are you going to have time to apply the patch I
> submitted?)
I just pushed the change to the emacs-25 branch.
> mike
--
Bill Wohler <wohler@newt.com> aka <Bill.Wohler@nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD
^ permalink raw reply [flat|nested] 43+ messages in thread
end of thread, other threads:[~2016-05-30 23:21 UTC | newest]
Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 12:31 bug#23288: 25.0.92; Clicking on links inserts primary X selection Philipp Stephani
2016-04-14 15:33 ` Glenn Morris
2016-04-14 17:14 ` Nils Berg
2016-04-16 13:36 ` Philipp Stephani
2016-04-18 8:50 ` Nils Berg
2016-04-20 16:53 ` Philipp Stephani
2016-05-10 21:25 ` Philipp Stephani
2016-05-11 8:14 ` Eli Zaretskii
2016-05-11 8:32 ` Nils Berg
2016-05-11 13:01 ` Philipp Stephani
2016-05-11 13:14 ` Nils Berg
2016-05-11 13:32 ` Philipp Stephani
2016-05-11 13:56 ` Eli Zaretskii
2016-05-11 18:18 ` John Wiegley
2016-05-11 18:40 ` Glenn Morris
2016-05-11 21:04 ` Eli Zaretskii
2016-05-12 5:42 ` John Wiegley
2016-05-12 19:26 ` Eli Zaretskii
2016-05-12 21:24 ` John Wiegley
2016-05-12 16:49 ` Glenn Morris
2016-05-12 17:21 ` Making better use of the "release blocking list" [was: bug#23288: 25.0.92; Clicking on links inserts primary X selection] John Wiegley
2016-05-12 21:43 ` Paul Eggert
2016-05-16 19:08 ` Glenn Morris
2016-05-18 6:09 ` John Wiegley
2016-05-21 19:06 ` Eli Zaretskii
2016-05-21 20:48 ` Mike Kupfer
2016-05-23 4:58 ` Bill Wohler
2016-05-30 23:21 ` Bill Wohler
2016-05-22 2:02 ` Paul Eggert
2016-05-22 4:52 ` John Wiegley
2016-05-22 16:38 ` Eli Zaretskii
2016-05-22 16:31 ` Eli Zaretskii
2016-05-22 21:09 ` Dmitry Gutov
2016-05-22 21:24 ` Dmitry Gutov
2016-05-23 2:32 ` Eli Zaretskii
2016-05-23 13:18 ` Dmitry Gutov
2016-05-23 16:15 ` Paul Eggert
2016-05-23 16:36 ` Dmitry Gutov
2016-05-23 17:39 ` Paul Eggert
2016-05-23 16:52 ` Eli Zaretskii
2016-05-13 9:02 ` Eli Zaretskii
2016-05-13 16:36 ` John Wiegley
2016-05-20 18:24 ` bug#23288: 25.0.92; Clicking on links inserts primary X selection Philipp Stephani
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.