From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64964 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Sticky article buffers Date: Wed, 25 Jul 2007 21:32:54 +0200 Message-ID: <87k5socm8p.fsf@baldur.tsdh.de> References: <876448eby7.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185392024 7027 80.91.229.12 (25 Jul 2007 19:33:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2007 19:33:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13474@lists.math.uh.edu Wed Jul 25 21:33:43 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IDmc8-0004fz-CJ for ding-account@gmane.org; Wed, 25 Jul 2007 21:33:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IDmbj-0001Y6-LD; Wed, 25 Jul 2007 14:33:15 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IDmbh-0001Xe-Ub for ding@lists.math.uh.edu; Wed, 25 Jul 2007 14:33:13 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IDmbe-00048S-TV for ding@lists.math.uh.edu; Wed, 25 Jul 2007 14:33:13 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IDmbe-00084U-00 for ; Wed, 25 Jul 2007 21:33:10 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IDmbX-0005zF-Gl for ding@gnus.org; Wed, 25 Jul 2007 21:33:03 +0200 Original-Received: from dslb-084-063-004-050.pools.arcor-ip.net ([84.63.4.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jul 2007 21:33:03 +0200 Original-Received: from tassilo by dslb-084-063-004-050.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Jul 2007 21:33:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 73 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-004-050.pools.arcor-ip.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWVlFmseNrkqmgzeif v9JYdoX7Ctb5AAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABqUlE QVQ4y8WTy3KkMAxFVQT2Iz/2QOAD3CZ7jNV7YNr//ysjmWcqlUWyGVU11dzjK9myAPwm4P8A963D /TCV06dDeURzkQug8fFm8OYAIT5afRI/DAfQNbzcvhnn/Ud1gD/wTl7rvFHvNc7Fo2GgFJTRe8dA ay/gCV121NAZJto50TlhB0VgQFD4QCwNTMWAZgRCUCOUaMTCMGYHjvBihwC2xYmIoh+It2BZgozR Qo6K6he3oc1g5oTYjRsp4c1ha6BgwG8BSUCZH4SkoApgZigbnEaRBG+rignUDNUQROLiBCwh8dpJ istayMcfQDgrXEN9wB47kM3BwsXNDfjjv7SEi3wBuVfY7UQ6xQeRoNzdhiZeThugh5x/A9gEosHn 3ub+xtCc40OH6ocg8jVXelssj8+TKO+G73a/kRtgk0ySzMk9VYwhSEKDcvcXCFPgIW1aZVYey3AB 3fZpSctqU/FMf68a5rkWfaqWNbV1vya6QN83tWVPpeq6mpcTPNaEKfVpndXcV+kCtufsaeYsrKa0 niDZVi02Wf6lpb05cthffufLTxyfi/wD4S56Bxo/ZasAAAAmelRYdENvbW1lbnQAAHjacy5KTSxJ TVEozyzJUAjJSFVw9/QNAABS5wcjkMtlcAAAABp6VFh0anBlZzpjb2xvcnNwYWNlAAB42jMCAAAz ADOJOCM1AAAAJnpUWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAAeNozqjDSMawwBGEAEYMC6T2XL08A AAAASUVORK5CYII= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:VKJMkaX8UGFWck71Yg0/ZPwV9hU= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64964 Archived-At: Reiner Steib writes: Hi Reiner, >> But what other free binding could be used? > > If we stay with the term "sticky article buffer", I'd suggest `A S'. Will the translation from `A s' stop if I bind it to `A S'? ,---- | A s (translated from A S) runs the command gnus-summary-isearch-article | which is an interactive compiled Lisp function in `gnus-sum.el'. | It is bound to s, A s,
. | (gnus-summary-isearch-article &optional REGEXP-P) | | Do incremental search forward on the current article. | If REGEXP-P (the prefix) is non-nil, do regexp isearch. `---- > Oh, please use unified diff (-u) (or context diff (-c)). Ok. >> 4360a4373,4378 >>> >>> ;; Local Variables: >>> ;; coding: iso-8859-1 >>> ;; indent-tabs-mode: t >>> ;; tab-width: 8 >>> ;; End: > > Please don't submit proposals that include unrelated changes. Hm, how do I tell `cvs diff' which hunks it should add and which not? Or may I simply kill those lines before I submit the patch? >>> (define-key gnus-sticky-article-mode-map k nil)) >>> (define-key gnus-sticky-article-mode-map "q" 'gnus-sticky-article-kill-buffer) > > I'd expect `k' for kill buffer and `q' for quit (bury buffer). Ok, I'll change that. >>> (define-key gnus-sticky-article-mode-map "\C-hc" 'describe-key-briefly) >>> (define-key gnus-sticky-article-mode-map "\C-hk" 'describe-key)) > > Why do we need to treat these two command specially? I'm not really sure, but I had a hard time figuring out what to do so that `C-h m' shows all possible bindings but none that don't work with sticky articles. >>> (defun gnus-sticky-article-kill-buffer (&optional buffer) >>> "Kills the given sticky article buffer. If none is given, it'll >>> assume the current buffer and kill it if it has >>> `gnus-sticky-article-mode'." > [...] >>> (defun gnus-summary-make-sticky-article (arg) >>> "Make the current article sticky. If a prefix arg is given you >>> will be asked for a name for this sticky buffer." > > The doc strings needs a little improvement. Cf. `M-x checkdoc-defun > RET'. But I may do this after installing the patch. I'll do that. Bye, Tassilo -- People sometimes ask me if it is a sin in the Church of Emacs to use vi. Using a free version of vi is not a sin; it is a penance. So happy hacking. (Richard M. Stallman)