From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9592 Path: news.gmane.org!not-for-mail From: dbast0s@yahoo.com.br (Daniel C. Bastos) Newsgroups: gmane.emacs.gnus.user Subject: Re: expanding the article window Date: Mon, 27 Aug 2007 12:13:55 -0400 Organization: Aioe.org NNTP Server Message-ID: <84r6lpymyk.fsf@blade3.toledo.com> References: <84odgwde4s.fsf@blade3.toledo.com> <84odgwwya1.fsf@blade3.toledo.com> <7yir74brlf.fsf@fillmore.spawar.navy.mil> <83sl66ut2m.fsf@torus.sehlabs.com> <84r6lpdp7y.fsf@blade3.toledo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188233571 8079 80.91.229.12 (27 Aug 2007 16:52:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 16:52:51 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Aug 27 18:52:32 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 1IPheJ-000576-Bh for gegu-info-gnus-english@m.gmane.org; Mon, 27 Aug 2007 18:41:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPheI-0007vP-MB for gegu-info-gnus-english@m.gmane.org; Mon, 27 Aug 2007 12:41:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 51 Original-NNTP-Posting-Host: 8O8Y7xiSuO+NrJqkQ15qMw.user.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:wNkog9ujUvIBqFpe457FkEVZgig= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (berkeley-unix) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79785 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:9592 Archived-At: dbast0s@yahoo.com.br (Daniel C. Bastos) writes: > "Steven E. Harris" writes: > >> dbast0s@yahoo.com.br (Daniel C. Bastos) writes: >> >> > But = expands the summary window; I'd like to expand the article >> > window. I wish I would press something like ``='' and kill the tree >> > window, or make the article window take the whole frame. >> >> Yes, I know; I was too terse. I meant that while C-x 0 works, it doesn't >> work as conveniently as = which, unfortunately, does the wrong thing, >> meaning that it would be nice to have a single non-shifted character key >> binding that does what you're describing. We're in agreement here. > > I just quickly looked into emacs macros: info: Basic Keyboard Macro. I > defined a macro with ``C-x ( h C-x 1 C-x )'' which switches to the > article window with h and then makes the buffer take the whole frame. I > can now run that with C-x e. If I could bind this macro to a non-shifted > key, then we're done. Ideas? Here's what I did: first I downloaded and installed the new gnu emacs: directly from the cvs repository --- not that this was required, but I was reading the info files of the gnu emacs 22.1.1 and the one I was using for news was 21.x and the instructions I was getting was not making sense on the 21.x. Also, I missed M-x info-apropos in 21.x which was what kept me from reading the info files on it. I don't know how to search through the info files very well. Now with the gnu emacs 22.1.1, I defined the macro as above, then I ran C-x C-k n to give it a name: I called it gnus-article-expand-article-window. Then I ran M-x insert-kbd-macro to get the macro's definition in lisp code. Then I wrote in my .emacs: (fset 'gnus-article-expand-article-window (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("h^X1" 0 "%d")) arg))) (global-set-key (kbd "C-c e") 'gnus-article-expand-article-window) It's not what we want, but at least now we don't have to define the macro et every session. How can we bind this macro to a non-shifted key that would work only when in the summary of articles in gnus? -- Warning: I had a non-printable ^X in the code above which I replaced by a printable ^X.