aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen2012-02-13 14:14:18 +0000
committerKatsumi Yamaoka2012-02-13 14:14:18 +0000
commit3d2af1938b425929bddac50fbf3540efcee954d4 (patch)
tree00bfb2d0807b0f62f570e453a982459dd5298bd1 /lisp
parent32f6c52b3ef79cba34781d50d777ce8a41cf93e6 (diff)
downloademacs-3d2af1938b425929bddac50fbf3540efcee954d4.tar.gz
emacs-3d2af1938b425929bddac50fbf3540efcee954d4.zip
Merge changes made in No Gnus
gnus.texi (Customizing the IMAP Connection): Mention nnimap-record-commands. nnimap.el (nnimap-record-commands): New variable. (nnimap-log-command): Use it. (nnimap-make-process-buffer): Add a space to the process buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/nnimap.el18
2 files changed, 15 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index ebbef064b7b..69598ad9f45 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,9 @@
12012-02-13 Lars Ingebrigtsen <larsi@gnus.org> 12012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
2 2
3 * nnimap.el (nnimap-record-commands): New variable.
4 (nnimap-log-command): Use it.
5 (nnimap-make-process-buffer): Add a space to the process buffer.
6
3 * shr.el (shr-rescale-image): Allow viewing large images. 7 * shr.el (shr-rescale-image): Allow viewing large images.
4 8
52012-02-12 Lars Ingebrigtsen <larsi@gnus.org> 92012-02-12 Lars Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 73f9b917e7b..2cdb170315f 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -289,7 +289,7 @@ textual parts.")
289 289
290(defun nnimap-make-process-buffer (buffer) 290(defun nnimap-make-process-buffer (buffer)
291 (with-current-buffer 291 (with-current-buffer
292 (generate-new-buffer (format "*nnimap %s %s %s*" 292 (generate-new-buffer (format " *nnimap %s %s %s*"
293 nnimap-address nnimap-server-port 293 nnimap-address nnimap-server-port
294 (gnus-buffer-exists-p buffer))) 294 (gnus-buffer-exists-p buffer)))
295 (mm-disable-multibyte) 295 (mm-disable-multibyte)
@@ -1696,13 +1696,17 @@ textual parts.")
1696 (nnimap-wait-for-response nnimap-sequence)) 1696 (nnimap-wait-for-response nnimap-sequence))
1697 nnimap-sequence) 1697 nnimap-sequence)
1698 1698
1699(defvar nnimap-record-commands nil
1700 "If non-nil, log commands to the \"*imap log*\" buffer.")
1701
1699(defun nnimap-log-command (command) 1702(defun nnimap-log-command (command)
1700 (with-current-buffer (get-buffer-create "*imap log*") 1703 (when nnimap-record-commands
1701 (goto-char (point-max)) 1704 (with-current-buffer (get-buffer-create "*imap log*")
1702 (insert (format-time-string "%H:%M:%S") " " 1705 (goto-char (point-max))
1703 (if nnimap-inhibit-logging 1706 (insert (format-time-string "%H:%M:%S") " "
1704 "(inhibited)\n" 1707 (if nnimap-inhibit-logging
1705 command))) 1708 "(inhibited)\n"
1709 command))))
1706 command) 1710 command)
1707 1711
1708(defun nnimap-command (&rest args) 1712(defun nnimap-command (&rest args)