aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2015-02-04 14:44:24 -0500
committerStefan Monnier2015-02-04 14:44:24 -0500
commitdf179332d4e75b22cd5f990822667c8d280c8167 (patch)
treea907813cd963a92cc5a4d792e23881d6a0391442
parentebbdc6c30dc883ffb9ddb53c0263ef325d251903 (diff)
downloademacs-df179332d4e75b22cd5f990822667c8d280c8167.tar.gz
emacs-df179332d4e75b22cd5f990822667c8d280c8167.zip
* lisp/gnus/mm-util.el (mm-with-unibyte-current-buffer): Don't emit a warning.
We already get an obsolescence message. Use `declare'.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mm-util.el5
2 files changed, 6 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index b4cc3412cd5..841cff57ea2 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12015-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * mm-util.el (mm-with-unibyte-current-buffer): Don't emit a warning
4 message, since we already get an obsolescence message. Use `declare'.
5
12015-02-04 Eric Abrahamsen <eric@ericabrahamsen.net> 62015-02-04 Eric Abrahamsen <eric@ericabrahamsen.net>
2 7
3 * nnir.el: Revert "Enable non-ASCII IMAP searches". 8 * nnir.el: Revert "Enable non-ASCII IMAP searches".
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index b2e0ee66d9c..0b7590114c4 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -1241,9 +1241,9 @@ better ways to do a similar thing. The previous version of this macro
1241bound the default value of `enable-multibyte-characters' to nil while 1241bound the default value of `enable-multibyte-characters' to nil while
1242evaluating FORMS but it is no longer done. So, some programs assuming 1242evaluating FORMS but it is no longer done. So, some programs assuming
1243it if any may malfunction." 1243it if any may malfunction."
1244 (declare (obsolete nil "25.1") (indent 0) (debug t))
1244 (if (featurep 'xemacs) 1245 (if (featurep 'xemacs)
1245 `(progn ,@forms) 1246 `(progn ,@forms)
1246 (message "Warning: Using brain-dead macro `mm-with-unibyte-current-buffer'!")
1247 (let ((multibyte (make-symbol "multibyte"))) 1247 (let ((multibyte (make-symbol "multibyte")))
1248 `(let ((,multibyte enable-multibyte-characters)) 1248 `(let ((,multibyte enable-multibyte-characters))
1249 (when ,multibyte 1249 (when ,multibyte
@@ -1252,9 +1252,6 @@ it if any may malfunction."
1252 (progn ,@forms) 1252 (progn ,@forms)
1253 (when ,multibyte 1253 (when ,multibyte
1254 (set-buffer-multibyte t))))))) 1254 (set-buffer-multibyte t)))))))
1255(put 'mm-with-unibyte-current-buffer 'lisp-indent-function 0)
1256(put 'mm-with-unibyte-current-buffer 'edebug-form-spec '(body))
1257(make-obsolete 'mm-with-unibyte-current-buffer nil "25.1")
1258 1255
1259(defun mm-find-charset-region (b e) 1256(defun mm-find-charset-region (b e)
1260 "Return a list of Emacs charsets in the region B to E." 1257 "Return a list of Emacs charsets in the region B to E."