From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56699 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: `gnus-auto-center-summary' does not work when point is in Date: Fri, 12 Mar 2004 13:48:51 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1079066968 26095 80.91.224.253 (12 Mar 2004 04:49:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 04:49:28 +0000 (UTC) Original-X-From: ding-owner+M5238@lists.math.uh.edu Fri Mar 12 05:49:23 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1ebq-00007v-00 for ; Fri, 12 Mar 2004 05:49:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1B1ebc-00064r-00; Thu, 11 Mar 2004 22:49:09 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B1ebY-00064m-00 for ding@lists.math.uh.edu; Thu, 11 Mar 2004 22:49:04 -0600 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id 0C16A3A0043 for ; Thu, 11 Mar 2004 22:49:03 -0600 (CST) Original-Received: from yamaoka by washington.hostforweb.net with local (Exim 4.24) id 1B1ebc-0007oY-TH for ding@gnus.org; Thu, 11 Mar 2004 23:49:09 -0500 Original-To: ding@gnus.org 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.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:16vvCuUHn7hKTTNy72SUNras+Mc= X-Hashcash: 0:040312:ding@gnus.org:00d2d205c4f32e69 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [32041 32041] / [47 12] X-AntiAbuse: Sender Address Domain - washington.hostforweb.net Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56699 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56699 --=-=-= I've fixed the gnus-article-read-summary-keys function so that gnus-auto-center-summary takes effect even if a user invokes summary commands in the article buffer. >>>>> In Katsumi Yamaoka wrote: > I used the following program in order to make it possible to use > most of summary command keys in the article buffer: The revised version (which can be put into the ~/.gnus.el file) is here: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (eval-after-load "gnus-art" '(let (keys) (let ((key 32)) (while (<= key 127) (push (char-to-string key) keys) (setq key (1+ key))) (dolist (elem (accessible-keymaps gnus-summary-mode-map)) (setq key (car elem)) (when (and (> (length key) 0) (not (eq 'menu-bar (aref key 0))) (symbolp (lookup-key gnus-summary-mode-map key))) (push key keys)))) (dolist (key keys) (unless (lookup-key gnus-article-mode-map key) (define-key gnus-article-mode-map key 'gnus-article-read-summary-keys))))) --=-=-= Content-Disposition: inline -- Katsumi Yamaoka --=-=-=--