all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14804: Gnus spelling fix: unexist -> nonexistent
@ 2013-07-06  9:41 Paul Eggert
  2013-07-06 15:36 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Paul Eggert @ 2013-07-06  9:41 UTC (permalink / raw)
  To: 14804; +Cc: Lars Ingebrigtsen

Tags: patch

Recently Gnus added the 'unexist' flag with some
code that deals with 'unexistent' articles.  If I
understand the concept correctly, the usual
spelling in English is 'nonexistent'.  Here's a
proposed patch to use that spelling.

=== modified file 'lisp/gnus/ChangeLog'
--- lisp/gnus/ChangeLog	2013-07-03 04:15:38 +0000
+++ lisp/gnus/ChangeLog	2013-07-06 09:36:51 +0000
@@ -1,3 +1,19 @@
+2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+	Spelling fix: unexist -> nonexistent
+	* gnus-group.el (gnus-group-expire-articles-1):
+	* gnus-start.el (gnus-clean-old-newsrc):
+	* gnus-sum.el (gnus-articles-to-read, gnus-adjust-marked-articles)
+	(gnus-update-marks, gnus-summary-expire-articles)
+	(gnus-summary-insert-old-articles):
+	* gnus.el (gnus-article-mark-lists, gnus-article-special-mark-lists)
+	(gnus-article-unpropagated-mark-lists):
+	* nnimap.el (nnimap-retrieve-group-data-early, nnimap-update-info)
+	(nnimap-update-qresync-info):
+	Use 'nonexistent', not 'unexist', to for marks of nonexistent articles.
+	* gnus-sum.el (gnus-newsgroup-nonexistent):
+	Rename from gnus-newsgroup-unexist.  All uses changed.
+
 2013-07-03  Katsumi Yamaoka  <yamaoka@jpl.org>
 
 	* gnus-sum.el (gnus-summary-from-or-to-or-newsgroups):

=== modified file 'lisp/gnus/gnus-group.el'
--- lisp/gnus/gnus-group.el	2013-07-02 10:38:58 +0000
+++ lisp/gnus/gnus-group.el	2013-07-06 09:36:51 +0000
@@ -3657,7 +3657,7 @@
 	   (articles-to-expire
 	    (gnus-list-range-difference
 	     (gnus-uncompress-sequence (cdr expirable))
-	     (cdr (assq 'unexist (gnus-info-marks info)))))
+	     (cdr (assq 'nonexistent (gnus-info-marks info)))))
 	   (expiry-wait (gnus-group-find-parameter group 'expiry-wait))
 	   (nnmail-expiry-target
 	    (or (gnus-group-find-parameter group 'expiry-target)

=== modified file 'lisp/gnus/gnus-start.el'
--- lisp/gnus/gnus-start.el	2013-07-02 10:38:58 +0000
+++ lisp/gnus/gnus-start.el	2013-07-06 09:36:51 +0000
@@ -2307,7 +2307,7 @@
 (defun gnus-clean-old-newsrc (&optional force)
   (when gnus-newsrc-file-version
     ;; Remove totally bogus `unexists' entries.  The name is
-    ;; `unexist'.
+    ;; `nonexistent'.
     (dolist (info (cdr gnus-newsrc-alist))
       (let ((exist (assoc 'unexists (gnus-info-marks info))))
 	(when exist
@@ -2318,7 +2318,7 @@
 		 (gnus-continuum-version "Ma Gnus v0.03")))
       ;; Remove old `exist' marks from old nnimap groups.
       (dolist (info (cdr gnus-newsrc-alist))
-	(let ((exist (assoc 'unexist (gnus-info-marks info))))
+	(let ((exist (assoc 'nonexistent (gnus-info-marks info))))
 	  (when exist
 	    (gnus-info-set-marks
 	     info (delete exist (gnus-info-marks info)))))))))

=== modified file 'lisp/gnus/gnus-sum.el'
--- lisp/gnus/gnus-sum.el	2013-07-03 04:15:38 +0000
+++ lisp/gnus/gnus-sum.el	2013-07-06 09:36:51 +0000
@@ -1524,8 +1524,8 @@
 (defvar gnus-newsgroup-seen nil
   "Range of seen articles in the current newsgroup.")
 
-(defvar gnus-newsgroup-unexist nil
-  "Range of unexistent articles in the current newsgroup.")
+(defvar gnus-newsgroup-nonexistent nil
+  "Range of nonexistent articles in the current newsgroup.")
 
 (defvar gnus-newsgroup-articles nil
   "List of articles in the current newsgroup.")
@@ -1574,7 +1574,7 @@
     gnus-newsgroup-killed
     gnus-newsgroup-unseen
     gnus-newsgroup-seen
-    gnus-newsgroup-unexist
+    gnus-newsgroup-nonexistent
     gnus-newsgroup-cached
     gnus-newsgroup-downloadable
     gnus-newsgroup-undownloaded
@@ -5822,7 +5822,7 @@
 	    (gnus-sorted-nunion
 	     (gnus-sorted-union gnus-newsgroup-dormant gnus-newsgroup-marked)
 	     gnus-newsgroup-unreads))
-	  (cdr (assq 'unexist (gnus-info-marks (gnus-get-info group))))))
+	  (cdr (assq 'nonexistent (gnus-info-marks (gnus-get-info group))))))
 	 (scored-list (gnus-killed-articles gnus-newsgroup-killed articles))
 	 (scored (length scored-list))
 	 (number (length articles))
@@ -5993,7 +5993,7 @@
 			       (> min (car articles)))))
 	    (pop articles))
 	  (set var articles))
-	 ((eq mark 'unexist)
+	 ((eq mark 'nonexistent)
 	  (set var (cdr marks)))))))))
 
 (defun gnus-update-missing-marks (missing)
@@ -6071,7 +6071,7 @@
 	      (push (list del 'del (list (cdr type))) delta-marks))))
 
 	(when (or list
-		  (eq (cdr type) 'unexist))
+		  (eq (cdr type) 'nonexistent))
 	  (push (cons (cdr type) list) newmarked)))
 
       (when delta-marks
@@ -10327,7 +10327,7 @@
 		   (gnus-list-of-read-articles gnus-newsgroup-name))
 	       (setq gnus-newsgroup-expirable
 		     (sort gnus-newsgroup-expirable '<)))
-	     gnus-newsgroup-unexist))
+	     gnus-newsgroup-nonexistent))
 	   (expiry-wait (if now 'immediate
 			  (gnus-group-find-parameter
 			   gnus-newsgroup-name 'expiry-wait)))
@@ -12862,7 +12862,7 @@
 	      ;; Use a compressed range to avoid creating a huge list.
 	      (gnus-range-difference
 	       (gnus-range-difference (list gnus-newsgroup-active) old)
-	       gnus-newsgroup-unexist))
+	       gnus-newsgroup-nonexistent))
 	(setq len (gnus-range-length older))
 	(cond
 	 ((null older) nil)

=== modified file 'lisp/gnus/gnus.el'
--- lisp/gnus/gnus.el	2013-07-02 10:38:58 +0000
+++ lisp/gnus/gnus.el	2013-07-06 09:36:51 +0000
@@ -2636,11 +2636,11 @@
     (scored . score) (saved . save)
     (cached . cache) (downloadable . download)
     (unsendable . unsend) (forwarded . forward)
-    (seen . seen) (unexist . unexist)))
+    (seen . seen) (nonexistent . nonexistent)))
 
 (defconst gnus-article-special-mark-lists
   '((seen range)
-    (unexist range)
+    (nonexistent range)
     (killed range)
     (bookmark tuple)
     (uid tuple)
@@ -2655,7 +2655,7 @@
 ;; `score' is not a proper mark
 ;; `bookmark': don't propagated it, or fix the bug in update-mark.
 (defconst gnus-article-unpropagated-mark-lists
-  '(seen cache download unsend score bookmark unexist)
+  '(seen cache download unsend score bookmark nonexistent)
   "Marks that shouldn't be propagated to back ends.
 Typical marks are those that make no sense in a standalone back end,
 such as a mark that says whether an article is stored in the cache

=== modified file 'lisp/gnus/nnimap.el'
--- lisp/gnus/nnimap.el	2013-07-02 10:38:58 +0000
+++ lisp/gnus/nnimap.el	2013-07-06 09:36:51 +0000
@@ -1288,7 +1288,7 @@
       (setf (nnimap-initial-resync nnimap-object) 0)
       (let ((qresyncp (nnimap-capability "QRESYNC"))
 	    params groups sequences active uidvalidity modseq group
-	    unexist)
+	    nonexistent)
 	;; Go through the infos and gather the data needed to know
 	;; what and how to request the data.
 	(dolist (info infos)
@@ -1296,7 +1296,7 @@
 		group (nnimap-decode-gnus-group
 		       (gnus-group-real-name (gnus-info-group info)))
 		active (cdr (assq 'active params))
-		unexist (assq 'unexist (gnus-info-marks info))
+		nonexistent (assq 'nonexistent (gnus-info-marks info))
 		uidvalidity (cdr (assq 'uidvalidity params))
 		modseq (cdr (assq 'modseq params)))
 	  (setf (nnimap-examined nnimap-object) group)
@@ -1304,7 +1304,7 @@
 		   uidvalidity
 		   active
 		   modseq
-		   unexist)
+		   nonexistent)
 	      (push
 	       (list (nnimap-send-command "EXAMINE %S (%s (%s %s))"
 					  (utf7-encode group t)
@@ -1323,7 +1323,7 @@
 		     ;; is read-only or not.
 		     "SELECT"))
 		  start)
-	      (if (and active uidvalidity unexist)
+	      (if (and active uidvalidity nonexistent)
 		  ;; Fetch the last 100 flags.
 		  (setq start (max 1 (- (cdr active) 100)))
 		(incf (nnimap-initial-resync nnimap-object))
@@ -1506,24 +1506,24 @@
 		    (when new-marks
 		      (push (cons (car type) new-marks) marks)))))
 	      ;; Keep track of non-existing articles.
-	      (let* ((old-unexists (assq 'unexist marks))
+	      (let* ((old-nonexistent (assq 'nonexistent marks))
 		     (active (gnus-active group))
-		     (unexists
+		     (nonexistent
 		      (if completep
 			  (gnus-range-difference
 			   active
 			   (gnus-compress-sequence existing))
 			(gnus-add-to-range
-			 (cdr old-unexists)
+			 (cdr old-nonexistent)
 			 (gnus-list-range-difference
 			  existing (gnus-active group))))))
 		(when (> (car active) 1)
-		  (setq unexists (gnus-range-add
-				  (cons 1 (1- (car active)))
-				  unexists)))
-		(if old-unexists
-		    (setcdr old-unexists unexists)
-		  (push (cons 'unexist unexists) marks)))
+		  (setq nonexistent (gnus-range-add
+				     (cons 1 (1- (car active)))
+				     nonexistent)))
+		(if old-nonexistent
+		    (setcdr old-nonexistent nonexistent)
+		  (push (cons 'nonexistent nonexistent) marks)))
 	      (gnus-info-set-marks info marks t))))
 	;; Tell Gnus whether there are any \Recent messages in any of
 	;; the groups.
@@ -1568,13 +1568,13 @@
 	(when ticks
 	  (push (cons (car type) ticks) marks)))
       (gnus-info-set-marks info marks t))
-    ;; Add vanished to the list of unexisting articles.
+    ;; Add vanished to the list of nonexistent articles.
     (when vanished
-      (let* ((old-unexists (assq 'unexist marks))
-	     (unexists (gnus-range-add (cdr old-unexists) vanished)))
-	(if old-unexists
-	    (setcdr old-unexists unexists)
-	  (push (cons 'unexist unexists) marks)))
+      (let* ((old-nonexistent (assq 'nonexistent marks))
+	     (nonexistent (gnus-range-add (cdr old-nonexistent) vanished)))
+	(if old-nonexistent
+	    (setcdr old-nonexistent nonexistent)
+	  (push (cons 'nonexistent nonexistent) marks)))
       (gnus-info-set-marks info marks t))))
 
 (defun nnimap-imap-ranges-to-gnus-ranges (irange)






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

end of thread, other threads:[~2013-07-09 16:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-06  9:41 bug#14804: Gnus spelling fix: unexist -> nonexistent Paul Eggert
2013-07-06 15:36 ` Lars Ingebrigtsen
2013-07-06 22:17   ` Paul Eggert
2013-07-08 14:54     ` Lars Magne Ingebrigtsen
2013-07-09  2:27       ` Paul Eggert
2013-07-09 13:42         ` Ted Zlatanov
2013-07-09 13:54           ` Juanma Barranquero
2013-07-09 14:13             ` Jambunathan K
2013-07-09 14:44               ` Juanma Barranquero
2013-07-09 16:21               ` Ted Zlatanov
2013-07-09 14:45           ` Paul Eggert
2013-07-09 16:22             ` Ted Zlatanov
2013-07-09 13:00     ` Wolfgang Jenkner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.