Gnus development mailing list
 help / color / mirror / Atom feed
* [patch] Small enhancements for gnus-sum.el
@ 2001-12-03  0:28 Frank Schmitt
  2001-12-03  7:48 ` Kai Großjohann
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Frank Schmitt @ 2001-12-03  0:28 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

Hi all.

I did three (In my eyes) enhancements in gnus-sum.el:

1) The menu including the gnus-summary-limit-to-* functions was called
"Mark Limit". This is most certainly not the name it is supposed to have
and if it is, I think it is not very telling. I therefor changed it to
"Limit to".

2) There is no predefined shortcut for gnus-article-show-raw-article. I
think the shortcut belongs in gnus-summary-article-map but as r and R
are already in use, I assigned the function to w, so A w in the summary
buffer no calls gnus-article-show-raw-article.

3) When you call gnus-summary-limit-to-age via /t or the menu, you can
only limit the summary to articles older than x days. The user is asked
for x and if he gives a negative value nothing happens. I changed this,
so when the user says -x the summary is limited to articles younger than
x days. (e.g. /t -2 did nothing before and now limits the summary to
articles from today and yesterday)

If you like those changes, could someone commit the following patch? 
(I've signed the papers)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch against gnus-sum.el --]
[-- Type: text/x-patch, Size: 1142 bytes --]

--- gnus-sum.el	Mon Dec  3 00:06:30 2001
+++ gnus-sum.el.new	Mon Dec  3 00:04:32 2001
@@ -1695,7 +1695,8 @@
     "s" gnus-summary-isearch-article
     "P" gnus-summary-print-article
     "M" gnus-mailing-list-insinuate
-    "t" gnus-article-babel)
+    "t" gnus-article-babel
+    "w" gnus-summary-show-raw-article)
 
   (gnus-define-keys (gnus-summary-wash-map "W" gnus-summary-mode-map)
     "b" gnus-article-add-buttons
@@ -2082,7 +2083,7 @@
 	 ["Set expirable mark" gnus-summary-mark-as-expirable t]
 	 ["Set bookmark" gnus-summary-set-bookmark t]
 	 ["Remove bookmark" gnus-summary-remove-bookmark t])
-	("Mark Limit"
+	("Limit to"
 	 ["Marks..." gnus-summary-limit-to-marks t]
 	 ["Subject..." gnus-summary-limit-to-subject t]
 	 ["Author..." gnus-summary-limit-to-author t]
@@ -6885,7 +6886,12 @@
        (when (> (length days) 0)
 	 (setq days (read days)))
        (if (numberp days)
-	   (setq days-got t)
+	   (progn 
+	     (setq days-got t)
+	     (if (< days 0)
+		 (progn 
+		   (setq younger (not younger))
+		   (setq days (* days -1)))))
 	 (message "Please enter a number.")
 	 (sleep-for 1)))
      (list days younger)))


[-- Attachment #3: Type: text/plain, Size: 175 bytes --]

-- 
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.
19. Dezember 2001


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-01-02 19:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-03  0:28 [patch] Small enhancements for gnus-sum.el Frank Schmitt
2001-12-03  7:48 ` Kai Großjohann
2001-12-03 10:16   ` Frank Schmitt
2001-12-07 16:23 ` Frank Schmitt
2001-12-29  2:20 ` Lars Magne Ingebrigtsen
2002-01-02 14:15   ` Per Abrahamsen
2002-01-02 14:20     ` Lars Magne Ingebrigtsen
2002-01-02 17:48       ` Karl Kleinpaste
2002-01-02 19:39         ` ShengHuo ZHU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).