Gnus development mailing list
 help / color / mirror / Atom feed
* Problems with header buttonizing
@ 2005-02-25 14:08 Elias Oltmanns
  2005-03-03 13:48 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Elias Oltmanns @ 2005-02-25 14:08 UTC (permalink / raw)


Hi everybody,

increasingly liking the buttonize feature of gnus, I observe a strange
behaviour when pressing enter on email addresses. Everything works as
exptected if I press enter while point is on an email address within
the body of an article. If point is on an email address in the header
though (for instance an address in the Cc: header), a message buffer
is setup with an email addressed to the sender of the original email
rather than the address near point.
My (rather incompetent) investigations revealed that for the email
addresses in the body the function gnus-url-mailto is called to setup
the message, whereas in the header the function gnus-button-mailto is
used. However, I have to little experience with lisp programming to
figure out what exactly causes the behaviour described above.

Thank you very much for any tips,

Elias

PS: Gnus v10.5.7, GNU Emacs 21.3.1 (Debian/Sarge)




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

* Re: Problems with header buttonizing
  2005-02-25 14:08 Problems with header buttonizing Elias Oltmanns
@ 2005-03-03 13:48 ` Reiner Steib
  2005-03-16 15:51   ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2005-03-03 13:48 UTC (permalink / raw)


On Fri, Feb 25 2005, Elias Oltmanns wrote:

> increasingly liking the buttonize feature of gnus, I observe a strange
> behaviour when pressing enter on email addresses. Everything works as
> exptected if I press enter while point is on an email address within
> the body of an article. If point is on an email address in the header
> though (for instance an address in the Cc: header), a message buffer
> is setup with an email addressed to the sender of the original email
> rather than the address near point.

I agree that this is confusing.  Any objection against this change?

--8<---------------cut here---------------start------------->8---
--- lisp/gnus-art.el	24 Feb 2005 20:23:44 -0000	6.381.2.24
+++ lisp/gnus-art.el	3 Mar 2005 13:44:38 -0000
@@ -6336,7 +6336,7 @@
     ("^\\(From\\|Reply-To\\):" ": *\\(.+\\)$"
      1 (>= gnus-button-message-level 0) gnus-button-reply 1)
     ("^\\(Cc\\|To\\):" "[^ \t\n<>,()\"]+@[^ \t\n<>,()\"]+"
-     0 (>= gnus-button-message-level 0) gnus-button-mailto 0)
+     0 (>= gnus-button-message-level 0) gnus-msg-mail 0)
     ("^X-[Uu][Rr][Ll]:" gnus-button-url-regexp
      0 (>= gnus-button-browse-level 0) browse-url 0)
     ("^Subject:" gnus-button-url-regexp
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: Problems with header buttonizing
  2005-03-03 13:48 ` Reiner Steib
@ 2005-03-16 15:51   ` Reiner Steib
  0 siblings, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2005-03-16 15:51 UTC (permalink / raw)


On Thu, Mar 03 2005, Reiner Steib wrote:

> On Fri, Feb 25 2005, Elias Oltmanns wrote:
>
>> increasingly liking the buttonize feature of gnus, I observe a strange
>> behaviour when pressing enter on email addresses. Everything works as
>> exptected if I press enter while point is on an email address within
>> the body of an article. If point is on an email address in the header
>> though (for instance an address in the Cc: header), a message buffer
>> is setup with an email addressed to the sender of the original email
>> rather than the address near point.
>
> I agree that this is confusing.  Any objection against this change?
>
> --8<---------------cut here---------------start------------->8---
> --- lisp/gnus-art.el	24 Feb 2005 20:23:44 -0000	6.381.2.24
> +++ lisp/gnus-art.el	3 Mar 2005 13:44:38 -0000
> @@ -6336,7 +6336,7 @@
>      ("^\\(From\\|Reply-To\\):" ": *\\(.+\\)$"
>       1 (>= gnus-button-message-level 0) gnus-button-reply 1)
>      ("^\\(Cc\\|To\\):" "[^ \t\n<>,()\"]+@[^ \t\n<>,()\"]+"
> -     0 (>= gnus-button-message-level 0) gnus-button-mailto 0)
> +     0 (>= gnus-button-message-level 0) gnus-msg-mail 0)
>      ("^X-[Uu][Rr][Ll]:" gnus-button-url-regexp
>       0 (>= gnus-button-browse-level 0) browse-url 0)
>      ("^Subject:" gnus-button-url-regexp
> --8<---------------cut here---------------end--------------->8---

No objection, so I committed this.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

end of thread, other threads:[~2005-03-16 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25 14:08 Problems with header buttonizing Elias Oltmanns
2005-03-03 13:48 ` Reiner Steib
2005-03-16 15:51   ` Reiner Steib

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