From: ShengHuo ZHU <zsh@cs.rochester.edu>
Cc: "Gerd Möllmann" <gerd@gnu.org>
Subject: Re: Mouse-2 on e-mail in From: header?
Date: Fri, 14 Sep 2001 22:52:52 -0400 [thread overview]
Message-ID: <2nsndpqi63.fsf@piglet.jia.vnet> (raw)
In-Reply-To: <m3k7z1s5re.fsf@SnowWhite.SuSE.cz> (Pavel@Janik.cz's message of "Sat, 15 Sep 2001 01:37:57 +0200")
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
Pavel@Janik.cz (Pavel Janík) writes:
> Debugger entered--Lisp error: (wrong-type-argument window-live-p #<window 519>)
> select-window(#<window 519>)
> widget-button-click((down-mouse-2 (#<window 519> 39 (266 . 6) -132791712)))
> call-interactively(widget-button-click)
Pavel@Janik.cz (Pavel Janík) writes:
> From: Simon Josefsson <jas@extundo.com>
> Date: Fri, 14 Sep 2001 21:39:35 +0200
>
> Hi,
>
> > Maybe you could try applying the diff's between gnus-art.el in pretest
> > and the one in CVS incrementally to find what change caused this?
> > Assuming it is gnus-art.el which causes this..
>
> OK, running with Gnus 5.9.0 with gnus-msg.el and gnus.el is OK (at least
> for this particular problem). After applying the following patch:
The problem is because the button-click function changes the window
configuration, however, in widget-button-click, there is a
save-selected-window. The attached workaround fixes the problem.
Gerd, what is the reason to save the selected window around the code
handling clicks on buttons in widget-button-click? Is the workaround
appropriate?
ShengHuo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-msg.el.diff --]
[-- Type: text/x-patch, Size: 1233 bytes --]
Index: gnus-msg.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-msg.el,v
retrieving revision 6.46
diff -u -r6.46 gnus-msg.el
--- gnus-msg.el 2001/08/20 18:54:43 6.46
+++ gnus-msg.el 2001/09/15 02:41:26
@@ -322,19 +322,27 @@
;; COMPOSEFUNC should return t if succeed. Undocumented ???
t)
+(defvar save-selected-window-window)
+
;;;###autoload
(defun gnus-button-mailto (address)
"Mail to ADDRESS."
(set-buffer (gnus-copy-article-buffer))
(gnus-setup-message 'message
- (message-reply address)))
+ (message-reply address))
+ (and (boundp 'save-selected-window-window)
+ (not (window-live-p save-selected-window-window))
+ (setq save-selected-window-window (selected-window))))
;;;###autoload
(defun gnus-button-reply (&optional to-address wide)
"Like `message-reply'."
(interactive)
(gnus-setup-message 'message
- (message-reply to-address wide)))
+ (message-reply to-address wide))
+ (and (boundp 'save-selected-window-window)
+ (not (window-live-p save-selected-window-window))
+ (setq save-selected-window-window (selected-window))))
;;;###autoload
(define-mail-user-agent 'gnus-user-agent
next prev parent reply other threads:[~2001-09-15 2:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-31 10:09 Pavel Janík
2001-08-31 11:53 ` Roland Mas
2001-08-31 12:10 ` Pavel Janík
2001-09-03 10:12 ` Pavel Janík
2001-09-14 19:18 ` Pavel Janík
2001-09-14 19:39 ` Simon Josefsson
2001-09-14 23:37 ` Pavel Janík
2001-09-15 2:52 ` ShengHuo ZHU [this message]
2001-09-17 11:48 ` Gerd Moellmann
2001-09-17 13:09 ` ShengHuo ZHU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2nsndpqi63.fsf@piglet.jia.vnet \
--to=zsh@cs.rochester.edu \
--cc=gerd@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).