]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-score-file-name: Do not append empty suffix.
authorSam Steingold <sds@gnu.org>
Tue, 12 Sep 2017 14:31:13 +0000 (10:31 -0400)
committerSam Steingold <sds@gnu.org>
Tue, 12 Sep 2017 14:31:26 +0000 (10:31 -0400)
lisp/gnus/gnus-score.el

index 2defa76f50db5532fb4450116ac3315393a0efe2..19cf799a2f87cbc4a8ea103430040e168845335b 100644 (file)
@@ -2961,8 +2961,8 @@ The list is determined from the variable `gnus-score-file-alist'."
        (expand-file-name suffix gnus-kill-files-directory))
       ((gnus-use-long-file-name 'not-score)
        ;; Append ".SCORE" to newsgroup name.
-       (expand-file-name (concat (gnus-newsgroup-savable-name newsgroup)
-                                "." suffix)
+       (expand-file-name (let ((name (gnus-newsgroup-savable-name newsgroup)))
+                           (if (string= "" suffix) name (concat name "." suffix)))
                         gnus-kill-files-directory))
       (t
        ;; Place "SCORE" under the hierarchical directory.