]> git.eshelyaron.com Git - emacs.git/commitdiff
Make the `c' command work in a single-article Gnus view
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 17 Apr 2018 17:34:40 +0000 (19:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 17 Apr 2018 17:34:40 +0000 (19:34 +0200)
* lisp/gnus/gnus-art.el (gnus-article-read-summary-keys): Make `c'
work from the article buffer (bug#31195) when no summary buffer is
shown.

lisp/gnus/gnus-art.el

index 0b349ea2d225ba8e6c8ea236eea39bbc64e9bc4f..869ff4e661f64d7035bb6aae840d3d7885bceaf4 100644 (file)
@@ -6673,7 +6673,7 @@ not have a face in `gnus-article-boring-faces'."
   (interactive "P")
   (gnus-article-check-buffer)
   (let ((nosaves
-        '("q" "Q"  "c" "r" "\C-c\C-f" "m"  "a" "f" "WDD" "WDW"
+        '("q" "Q" "r" "\C-c\C-f" "m"  "a" "f" "WDD" "WDW"
           "Zc" "ZC" "ZE" "ZQ" "ZZ" "Zn" "ZR" "ZG" "ZN" "ZP"
           "=" "^" "\M-^" "|"))
        (nosave-but-article
@@ -6739,7 +6739,8 @@ not have a face in `gnus-article-boring-faces'."
        ;; We disable the pick minor mode commands.
        (setq func (let (gnus-pick-mode)
                     (key-binding keys t)))
-       (when (get func 'disabled)
+       (when (and (symbolp func)
+                  (get func 'disabled))
          (error "Function %s disabled" func))
        (if (and func
                 (functionp func)