From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9631 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.user Subject: Re: C-c C-f is not bound in Article buffer Date: Tue, 11 Sep 2007 14:58:11 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1189492916 6210 80.91.229.12 (11 Sep 2007 06:41:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 06:41:56 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Sep 11 16:41:40 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV6vh-0003nY-Ve for gegu-info-gnus-english@m.gmane.org; Tue, 11 Sep 2007 16:41:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUzRP-0000Ou-RQ for gegu-info-gnus-english@m.gmane.org; Tue, 11 Sep 2007 02:41:43 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 72 Original-X-Trace: individual.net 3RPd0yYk1X06jM6ptS5B5wExnkxO9MUoyWpR7R1BtUu19a5O4= Cancel-Lock: sha1:lRnLsnA2nFKxGnhDiVuZf8gflPQ= sha1:Z8e8z8sOMRzSD/HwyL7ReQgYDpQ= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79833 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9631 Archived-At: --=-=-= >>>>> Leo wrote: > The key binding C-c C-f to the command `gnus-summary-mail-forward' is > not available in the Article buffer. I wonder if this is a bug. I'm not sure it is a bug, but `gnus-summary-mail-forward' seems to have been designed for invoking in the summary buffer, not in the article buffer (even if currently it looks possible to run from the article buffer). Actually the `S o m' command which is typed in the article buffer runs `gnus-summary-mail-forward' in the summary buffer. However, the way that the `S o m' command uses cannot be applied to the `C-c C-f' command[1]. That might be the reason it hasn't been provided so far. An easy way to achieve it is: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (eval-after-load "gnus-art" '(define-key gnus-article-mode-map "\C-c\C-f" "Som")) --=-=-= Content-Disposition: inline But this will become unusable if the key sequence `S o m' in `gnus-summary-mode-map' is changed in the future (or by a user). Another way is: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (defun gnus-article-mail-forward (&optional arg post) "Invoke `gnus-summary-mail-forward' from the article buffer." (interactive "P") (gnus-article-check-buffer) (with-current-buffer gnus-article-current-summary (gnus-summary-mail-forward arg post))) (eval-after-load "gnus-art" '(define-key gnus-article-mode-map "\C-c\C-f" 'gnus-article-mail-forward)) --=-=-= Content-Disposition: inline But it looks to me superfluous. I don't think both are very good. If anything, isn't it better to get used to the commands beginning with S? ;-) [1] Gnus provides the `gnus-article-read-summary-keys' function for the summary commands in which each of command is assigned to two or more keys. For instance, the `S' key in the article buffer is bound to it. If a user types `S o m' in the article buffer, Gnus moves to the summary buffer that is associated with the article buffer at the time when the `S' key is pressed. And then it reads remaining keys, looks up the summary command which is bound to that key sequence, and invokes the command. The reason this way cannot be used for the `C-c C-f' keys is that the `C-c' key is a prefix command, which is used with some commands that are not the summary commands, so it cannot be bound to `g-a-r-s-k'. --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english --=-=-=--