Gnus development mailing list
 help / color / mirror / Atom feed
* Better definition for `gnus-article-refer-article'
@ 2003-02-19 21:41 Karl Pflästerer
  2003-02-20 10:06 ` Kai Großjohann
  0 siblings, 1 reply; 12+ messages in thread
From: Karl Pflästerer @ 2003-02-19 21:41 UTC (permalink / raw)


Hi,
I noticed that the buttons react at the moment smarter if you press them
at a message-id in the article buffer than `gnus-article-refer-article'.
I looked at the definition for that function and wrote it a bit
different. What do you mean? IMO I must have forgotten something because
it seems to easy. I don't think it's necessary to check if we have a
message-id around point because a user would only use that function for
a message-id.

(defun gnus-article-refer-article ()
  "Read article specified by message-id around point."
  (interactive)
  (let ((point (point)) message-id)
    (re-search-backward "<?news:\\|<" nil t)
    (cond ((re-search-forward gnus-button-mid-or-mail-regexp nil t)
	    (setq message-id (concat "<" (match-string 0) ">"))
	    (goto-char point)
	    (set-buffer gnus-summary-buffer)
	    (gnus-summary-refer-article message-id))
	  (t
	    (goto-char point)
	    (error "No references around point")))))

bye
   KP

-- 
    'Twas brillig, and the slithy toves
        Did gyre and gimble in the wabe;
    All mimsy were the borogoves,
         And the mome raths outgrabe.   "Lewis Carroll" "Jabberwocky"



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Proposed patch
@ 1999-02-16 22:20 James H. Cloos Jr.
  1999-02-19 13:37 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: James H. Cloos Jr. @ 1999-02-16 22:20 UTC (permalink / raw)


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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

'Twould be useful to have this bound, I think:

- -JimC
- -- 
James H. Cloos, Jr.  <http://www.jhcloos.com/cloos/public_key> 1024D/ED7DAEA6 
<cloos@jhcloos.com>     E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE2ye8vmXqfF+19rqYRAj9yAKCUaBCbYz5xeolAgnxTfQJKP7CgnwCgovP/
NM9mLd+2oqCO+8e/Evg6u9k=
=23z3
-----END PGP SIGNATURE-----


[-- Attachment #2: pgnus-0.76-lim-ex-mk.patch --]
[-- Type: application/x-patch, Size: 419 bytes --]

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

end of thread, other threads:[~2003-03-01 22:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-19 21:41 Better definition for `gnus-article-refer-article' Karl Pflästerer
2003-02-20 10:06 ` Kai Großjohann
2003-02-20 13:08   ` Karl Pflästerer
2003-02-21 17:59     ` Proposed patch (was: Better definition for `gnus-article-refer-article') Karl Pflästerer
2003-02-21 21:12       ` Proposed patch Kai Großjohann
2003-02-21 21:58         ` Karl Pflästerer
2003-03-01 22:48           ` Jesper Harder
2003-02-21 22:02         ` Karl Pflästerer
2003-02-22 10:38           ` Kai Großjohann
2003-02-22 13:31       ` Kai Großjohann
  -- strict thread matches above, loose matches on Subject: below --
1999-02-16 22:20 James H. Cloos Jr.
1999-02-19 13:37 ` Lars Magne Ingebrigtsen

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