From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#12396: 24.2.50; [PATCH] extend usability of gnus-read-ephemeral-emacs-bug-group Date: Fri, 14 Sep 2012 17:37:05 +0200 Message-ID: <87txv01uqm.fsf@rosalinde.fritz.box> References: <87d31vtccn.fsf@rosalinde.fritz.box> <87txv7yqwa.fsf@gnus.org> <878vcjt1se.fsf@rosalinde.fritz.box> <871ui8a0v1.fsf@mail.jurta.org> <87vcfk88af.fsf@rosalinde.fritz.box> <87627jatr2.fsf@mail.jurta.org> <87sjalr730.fsf@rosalinde.fritz.box> <87392lee3g.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347637097 12425 80.91.229.3 (14 Sep 2012 15:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 15:38:17 +0000 (UTC) Cc: Lars Ingebrigtsen , 12396@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 17:38:19 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCXyE-00017q-Fh for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 17:38:18 +0200 Original-Received: from localhost ([::1]:50190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCXyA-00081Y-LA for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 11:38:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCXy6-0007tm-RJ for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:38:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCXy0-0003g7-UF for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:38:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCXy0-0003g3-R1 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 11:38:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCXyv-0003tD-QG; Fri, 14 Sep 2012 11:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 14 Sep 2012 15:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12396 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: patch Original-Received: via spool by 12396-submit@debbugs.gnu.org id=B12396.134763709014892 (code B ref 12396); Fri, 14 Sep 2012 15:39:01 +0000 Original-Received: (at 12396) by debbugs.gnu.org; 14 Sep 2012 15:38:10 +0000 Original-Received: from localhost ([127.0.0.1]:33968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCXy5-0003s9-A5 for submit@debbugs.gnu.org; Fri, 14 Sep 2012 11:38:09 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:47915) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TCXy2-0003s0-Id for 12396@debbugs.gnu.org; Fri, 14 Sep 2012 11:38:07 -0400 Original-Received: (qmail invoked by alias); 14 Sep 2012 15:37:07 -0000 Original-Received: from i59F54610.versanet.de (EHLO rosalinde.fritz.box) [89.245.70.16] by mail.gmx.net (mp069) with SMTP; 14 Sep 2012 17:37:07 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18fIHdans8fxLm/WOgcRHKQVzUya/5fqO0Ja9hgea fgZio3zN/5DVAh In-Reply-To: <87392lee3g.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 14 Sep 2012 02:35:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64289 Archived-At: On Fri, 14 Sep 2012 02:35:55 +0300 Juri Linkov wrote: >> When I use it it does grab the bug number, at least in the types of >> cases I had in mind (however, I didn't think of URLs like this one...). >> Can you provide a recipe showing the failure? > > A recipe is just to put point anywhere in the message body and > evaluate M-: (gnus-get-emacs-bug-number) RET It doesn't grab a bug > number in the subject line, but returns nil. Please clarify where you > intended point to be to be able to grab a bug number from the subject > line. This is a use case I didn't have in mind. I use the default window configuration of Gnus, where when you visit a mail or news group, the frame is split into two windows: one with the Summary buffer and one with the Article buffer, and the Summary buffer is selected. Each line of the Summary buffer contains by default at least the subject line of an article in the group, and typing SPC or RET opens, in the Article buffer, the article listed at point in the Summary buffer. In this scenario, it suffices for the search space for gnus-get-emacs-bug-number to be just the current line, that's why it doesn't work in your case. > Actually there already exist similar functionality > in `Info-follow-reference'. If you type in an Info node > `f TAB' it allows you to select one of the links to other nodes. > Since bug references are similar to links, you could do the same > and to collect bug references from the current buffer for completion. > Of course, the bug reference under point should be prefered over > all other bug references in the buffer and should be provided as > the first default value. This certainly is a better approach for your scenario, though for mine it's probably too heavy, since there are may well be numerous bug numbers in the Summary buffer, but when I call gnus-read-ephemeral-emacs-bug-group, I most likely want to visit the thread of the bug mentioned in the subject line at point, not that of another subject line. I suppose, though, if I did want to go to a bug thread from a different subject, it would be useful to cycle through the completions. Even better would be if the bug numbers in the buffer are highlighted as you cycle, so you can see their context. Steve Berman