From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/5092 Path: main.gmane.org!not-for-mail From: John Griffith Newsgroups: gmane.emacs.gnus.general Subject: Re: Q: Stop "?" and "!" moving forward? Date: Tue, 13 Feb 1996 11:09:46 +0100 Message-ID: <199602131009.LAA01349@filippo.sfs.nphil.uni-tuebingen.de> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035145744 31780 80.91.224.250 (20 Oct 2002 20:29:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:29:04 +0000 (UTC) Cc: griffith@filippo.sfs.nphil.uni-tuebingen.de Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.7.3/8.6.9) with SMTP id DAA14607 for ; Tue, 13 Feb 1996 03:15:08 -0800 Original-Received: from filippo.sfs.nphil.uni-tuebingen.de (filippo.sfs.nphil.uni-tuebingen.de [134.2.129.45]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 13 Feb 1996 11:09:58 +0100 Original-Received: from localhost (griffith@localhost) by filippo.sfs.nphil.uni-tuebingen.de (8.6.12/8.6.12) with SMTP id LAA01349; Tue, 13 Feb 1996 11:09:46 +0100 X-Authentication-Warning: filippo.sfs.nphil.uni-tuebingen.de: Host localhost didn't use HELO protocol Original-To: ding@ifi.uio.no In-reply-to: Your message of "12 Feb 1996 17:07:59 +0100." Xref: main.gmane.org gmane.emacs.gnus.general:5092 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:5092 Kai Grossjohann writes: >>>>>> said: > > John> Is there a variable to set to stop ticking and marking > John> articles as dormant ("!" and "?") from moving to the next > John> article? > >You want to execute gnus-summary-tick-article rather than >gnus-summary-tick-article-forward. ! is by default bound to >*-forward. > >Try this to change the binding: > >(define-key gnus-summary-mode-map "!" 'gnus-summary-tick-article) This almost works except that gnus-summary-tick-article is not interactive so I get the error "Wrong type argument: commandp, gnus-summary-tick-article" So shouldn't gnus-summary-tick-article be interactive like *-forward and *-backward? Otherwise I have to write something like (define-key gnus-summary-mode-map "!" (lambda (n) (interactive "p") (gnus-summary-tick-article))) Also, for dormant articles, there is only one command, gnus-summary-mark-as-dormant. Maybe there should also be gnus-summary-mark-as-dormant-forward and gnus-summary-mark-as-dormant-backward, with *-forward as the default for "?". I was also thinking that if the non-movement versions of these commands were given numerical arguments, it would be nice if the next n articles were marked, but the current article stayed the same. Here's as near as I could come up with for dormant articles on short notice. (I hope it doesn't make anyone feel sick) (define-key gnus-summary-mode-map "?" (lambda (n) (interactive "p") (progn (gnus-summary-mark-as-dormant n) (previous-line n)))) I'm sure that using previous-line here is a bad idea but I'm not sure what's the correct function.