[gnus git] branch master updated: m0-5-178-gac15998 =1= gmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to get stuck!
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via ac159983898c487032b911796468ab806092841a (commit)
from 0722d3724c7e5d451e6fba997a298481f9917141 (commit)
- Log -----------------------------------------------------------------
commit ac159983898c487032b911796468ab806092841a
Author: Katsumi Yamaoka <[email protected]>
Date: Wed Dec 5 10:26:23 2012 +0000
gmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to get stuck!
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 18fb3c1..737e5f0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,13 @@
2012-12-05 Katsumi Yamaoka <[email protected]>
+ * gmm-utils.el (gmm-called-interactively-p): Revert.
+ This seems to causes Emacs to get stuck!
+ * gnus-art.el (article-unsplit-urls)
+ * gnus-bookmark.el (gnus-bookmark-bmenu-list)
+ * gnus-registry.el (gnus-registry-get-article-marks)
+ * message.el (message-goto-body)
+ (message-called-interactively-p): Revert.
+
* gmm-utils.el (gmm-called-interactively-p): New function.
* gnus-art.el (article-unsplit-urls)
* gnus-bookmark.el (gnus-bookmark-bmenu-list)
diff --git a/lisp/gmm-utils.el b/lisp/gmm-utils.el
index 2e19615..91e4965 100644
--- a/lisp/gmm-utils.el
+++ b/lisp/gmm-utils.el
@@ -417,18 +417,6 @@ coding-system."
(write-region start end filename append visit lockname))
(write-region start end filename append visit lockname mustbenew)))
-;; `interactive-p' is obsolete since Emacs 23.2.
-(defalias 'gmm-called-interactively-p
- (condition-case nil
- (progn
- (eval '(called-interactively-p 'any))
- ;; Emacs >=23.2
- 'called-interactively-p)
- ;; Emacs <23.2
- (wrong-number-of-arguments '(lambda (kind) (called-interactively-p)))
- ;; XEmacs
- (void-function '(lambda (kind) (interactive-p)))))
-
;; `flet' and `labels' are obsolete since Emacs 24.3.
(defmacro gmm-flet (bindings &rest body)
"Make temporary overriding function definitions.
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index 616f8cd..6e8bef8 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -46,7 +46,6 @@
(require 'mm-uu)
(require 'message)
(require 'mouse)
-(require 'gmm-utils)
(autoload 'gnus-msg-mail "gnus-msg" nil t)
(autoload 'gnus-button-mailto "gnus-msg")
@@ -2720,7 +2719,7 @@ If READ-CHARSET, ask for a coding system."
(while (re-search-forward
"\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t)
(replace-match "\\1\\3" t)))
- (when (gmm-called-interactively-p 'any)
+ (when (interactive-p)
(gnus-treat-article nil))))
(defun article-wash-html ()
diff --git a/lisp/gnus-bookmark.el b/lisp/gnus-bookmark.el
index 2ad1f23..9f6654d 100644
--- a/lisp/gnus-bookmark.el
+++ b/lisp/gnus-bookmark.el
@@ -53,7 +53,6 @@
;;; Code:
(require 'gnus-sum)
-(require 'gmm-utils)
;; FIXME: should avoid using C-c (no?)
;; (define-key gnus-summary-mode-map "\C-crm" 'gnus-bookmark-set)
@@ -368,7 +367,7 @@ The leftmost column displays a D if the bookmark is flagged for
deletion, or > if it is flagged for displaying."
(interactive)
(gnus-bookmark-maybe-load-default-file)
- (if (gmm-called-interactively-p 'any)
+ (if (interactive-p)
(switch-to-buffer (get-buffer-create "*Gnus Bookmark List*"))
(set-buffer (get-buffer-create "*Gnus Bookmark List*")))
(let ((inhibit-read-only t)
diff --git a/lisp/gnus-registry.el b/lisp/gnus-registry.el
index 755bf6e..71e0096 100644
--- a/lisp/gnus-registry.el
+++ b/lisp/gnus-registry.el
@@ -86,7 +86,6 @@
(require 'nnmail)
(require 'easymenu)
(require 'registry)
-(require 'gmm-utils)
(defvar gnus-adaptive-word-syntax-table)
@@ -983,7 +982,7 @@ only the last one's marks are returned."
(let* ((article (last articles))
(id (gnus-registry-fetch-message-id-fast article))
(marks (when id (gnus-registry-get-id-key id 'mark))))
- (when (gmm-called-interactively-p 'interactive)
+ (when (interactive-p)
(gnus-message 1 "Marks are %S" marks))
marks))
diff --git a/lisp/message.el b/lisp/message.el
index 9cd0a4d..32d0edf 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -3181,10 +3181,22 @@ M-RET `message-newline-and-reformat' (break the line and reformat)."
(push-mark)
(message-position-on-field "Summary" "Subject"))
+(eval-when-compile
+ (defmacro message-called-interactively-p (kind)
+ (condition-case nil
+ (progn
+ (eval '(called-interactively-p 'any))
+ ;; Emacs >=23.2
+ `(called-interactively-p ,kind))
+ ;; Emacs <23.2
+ (wrong-number-of-arguments '(called-interactively-p))
+ ;; XEmacs
+ (void-function '(interactive-p)))))
+
(defun message-goto-body ()
"Move point to the beginning of the message body."
(interactive)
- (when (and (gmm-called-interactively-p 'any)
+ (when (and (message-called-interactively-p 'any)
(looking-at "[ \t]*\n"))
(expand-abbrev))
(push-mark)
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 8 ++++++++
lisp/gmm-utils.el | 12 ------------
lisp/gnus-art.el | 3 +--
lisp/gnus-bookmark.el | 3 +--
lisp/gnus-registry.el | 3 +--
lisp/message.el | 14 +++++++++++++-
6 files changed, 24 insertions(+), 19 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project