diff options
| author | Katsumi Yamaoka | 2012-12-05 10:27:16 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-12-05 10:27:16 +0000 |
| commit | 299a66e9820fc91aad2306961471736e69612614 (patch) | |
| tree | ddaf874496d672d6e998692d758dd7eb16602974 | |
| parent | 51b890acbf62bb3b9c10c025413786d69f6c87d4 (diff) | |
| download | emacs-299a66e9820fc91aad2306961471736e69612614.tar.gz emacs-299a66e9820fc91aad2306961471736e69612614.zip | |
gmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to get stuck!
| -rw-r--r-- | lisp/gnus/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/gnus/gmm-utils.el | 12 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-bookmark.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-registry.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 14 |
6 files changed, 24 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0516ed6cf4a..89c551cfccf 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2012-12-05 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2012-12-05 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 2 | ||
| 3 | * gmm-utils.el (gmm-called-interactively-p): Revert. | ||
| 4 | This seems to causes Emacs to get stuck! | ||
| 5 | * gnus-art.el (article-unsplit-urls) | ||
| 6 | * gnus-bookmark.el (gnus-bookmark-bmenu-list) | ||
| 7 | * gnus-registry.el (gnus-registry-get-article-marks) | ||
| 8 | * message.el (message-goto-body) | ||
| 9 | (message-called-interactively-p): Revert. | ||
| 10 | |||
| 3 | * gmm-utils.el (gmm-called-interactively-p): New function. | 11 | * gmm-utils.el (gmm-called-interactively-p): New function. |
| 4 | * gnus-art.el (article-unsplit-urls) | 12 | * gnus-art.el (article-unsplit-urls) |
| 5 | * gnus-bookmark.el (gnus-bookmark-bmenu-list) | 13 | * gnus-bookmark.el (gnus-bookmark-bmenu-list) |
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el index 2e196158131..91e4965e91c 100644 --- a/lisp/gnus/gmm-utils.el +++ b/lisp/gnus/gmm-utils.el | |||
| @@ -417,18 +417,6 @@ coding-system." | |||
| 417 | (write-region start end filename append visit lockname)) | 417 | (write-region start end filename append visit lockname)) |
| 418 | (write-region start end filename append visit lockname mustbenew))) | 418 | (write-region start end filename append visit lockname mustbenew))) |
| 419 | 419 | ||
| 420 | ;; `interactive-p' is obsolete since Emacs 23.2. | ||
| 421 | (defalias 'gmm-called-interactively-p | ||
| 422 | (condition-case nil | ||
| 423 | (progn | ||
| 424 | (eval '(called-interactively-p 'any)) | ||
| 425 | ;; Emacs >=23.2 | ||
| 426 | 'called-interactively-p) | ||
| 427 | ;; Emacs <23.2 | ||
| 428 | (wrong-number-of-arguments '(lambda (kind) (called-interactively-p))) | ||
| 429 | ;; XEmacs | ||
| 430 | (void-function '(lambda (kind) (interactive-p))))) | ||
| 431 | |||
| 432 | ;; `flet' and `labels' are obsolete since Emacs 24.3. | 420 | ;; `flet' and `labels' are obsolete since Emacs 24.3. |
| 433 | (defmacro gmm-flet (bindings &rest body) | 421 | (defmacro gmm-flet (bindings &rest body) |
| 434 | "Make temporary overriding function definitions. | 422 | "Make temporary overriding function definitions. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index ee5a1ad18c6..edcd7da2ddd 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -45,7 +45,6 @@ | |||
| 45 | (require 'mm-uu) | 45 | (require 'mm-uu) |
| 46 | (require 'message) | 46 | (require 'message) |
| 47 | (require 'mouse) | 47 | (require 'mouse) |
| 48 | (require 'gmm-utils) | ||
| 49 | 48 | ||
| 50 | (autoload 'gnus-msg-mail "gnus-msg" nil t) | 49 | (autoload 'gnus-msg-mail "gnus-msg" nil t) |
| 51 | (autoload 'gnus-button-mailto "gnus-msg") | 50 | (autoload 'gnus-button-mailto "gnus-msg") |
| @@ -2719,7 +2718,7 @@ If READ-CHARSET, ask for a coding system." | |||
| 2719 | (while (re-search-forward | 2718 | (while (re-search-forward |
| 2720 | "\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t) | 2719 | "\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t) |
| 2721 | (replace-match "\\1\\3" t))) | 2720 | (replace-match "\\1\\3" t))) |
| 2722 | (when (gmm-called-interactively-p 'any) | 2721 | (when (interactive-p) |
| 2723 | (gnus-treat-article nil)))) | 2722 | (gnus-treat-article nil)))) |
| 2724 | 2723 | ||
| 2725 | (defun article-wash-html () | 2724 | (defun article-wash-html () |
diff --git a/lisp/gnus/gnus-bookmark.el b/lisp/gnus/gnus-bookmark.el index 2ad1f23c1c0..9f6654dd12d 100644 --- a/lisp/gnus/gnus-bookmark.el +++ b/lisp/gnus/gnus-bookmark.el | |||
| @@ -53,7 +53,6 @@ | |||
| 53 | ;;; Code: | 53 | ;;; Code: |
| 54 | 54 | ||
| 55 | (require 'gnus-sum) | 55 | (require 'gnus-sum) |
| 56 | (require 'gmm-utils) | ||
| 57 | 56 | ||
| 58 | ;; FIXME: should avoid using C-c (no?) | 57 | ;; FIXME: should avoid using C-c (no?) |
| 59 | ;; (define-key gnus-summary-mode-map "\C-crm" 'gnus-bookmark-set) | 58 | ;; (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 | |||
| 368 | deletion, or > if it is flagged for displaying." | 367 | deletion, or > if it is flagged for displaying." |
| 369 | (interactive) | 368 | (interactive) |
| 370 | (gnus-bookmark-maybe-load-default-file) | 369 | (gnus-bookmark-maybe-load-default-file) |
| 371 | (if (gmm-called-interactively-p 'any) | 370 | (if (interactive-p) |
| 372 | (switch-to-buffer (get-buffer-create "*Gnus Bookmark List*")) | 371 | (switch-to-buffer (get-buffer-create "*Gnus Bookmark List*")) |
| 373 | (set-buffer (get-buffer-create "*Gnus Bookmark List*"))) | 372 | (set-buffer (get-buffer-create "*Gnus Bookmark List*"))) |
| 374 | (let ((inhibit-read-only t) | 373 | (let ((inhibit-read-only t) |
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el index 755bf6ecc3f..71e00967548 100644 --- a/lisp/gnus/gnus-registry.el +++ b/lisp/gnus/gnus-registry.el | |||
| @@ -86,7 +86,6 @@ | |||
| 86 | (require 'nnmail) | 86 | (require 'nnmail) |
| 87 | (require 'easymenu) | 87 | (require 'easymenu) |
| 88 | (require 'registry) | 88 | (require 'registry) |
| 89 | (require 'gmm-utils) | ||
| 90 | 89 | ||
| 91 | (defvar gnus-adaptive-word-syntax-table) | 90 | (defvar gnus-adaptive-word-syntax-table) |
| 92 | 91 | ||
| @@ -983,7 +982,7 @@ only the last one's marks are returned." | |||
| 983 | (let* ((article (last articles)) | 982 | (let* ((article (last articles)) |
| 984 | (id (gnus-registry-fetch-message-id-fast article)) | 983 | (id (gnus-registry-fetch-message-id-fast article)) |
| 985 | (marks (when id (gnus-registry-get-id-key id 'mark)))) | 984 | (marks (when id (gnus-registry-get-id-key id 'mark)))) |
| 986 | (when (gmm-called-interactively-p 'interactive) | 985 | (when (interactive-p) |
| 987 | (gnus-message 1 "Marks are %S" marks)) | 986 | (gnus-message 1 "Marks are %S" marks)) |
| 988 | marks)) | 987 | marks)) |
| 989 | 988 | ||
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 145bab97409..2171dcf3edc 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -3137,10 +3137,22 @@ M-RET `message-newline-and-reformat' (break the line and reformat)." | |||
| 3137 | (push-mark) | 3137 | (push-mark) |
| 3138 | (message-position-on-field "Summary" "Subject")) | 3138 | (message-position-on-field "Summary" "Subject")) |
| 3139 | 3139 | ||
| 3140 | (eval-when-compile | ||
| 3141 | (defmacro message-called-interactively-p (kind) | ||
| 3142 | (condition-case nil | ||
| 3143 | (progn | ||
| 3144 | (eval '(called-interactively-p 'any)) | ||
| 3145 | ;; Emacs >=23.2 | ||
| 3146 | `(called-interactively-p ,kind)) | ||
| 3147 | ;; Emacs <23.2 | ||
| 3148 | (wrong-number-of-arguments '(called-interactively-p)) | ||
| 3149 | ;; XEmacs | ||
| 3150 | (void-function '(interactive-p))))) | ||
| 3151 | |||
| 3140 | (defun message-goto-body () | 3152 | (defun message-goto-body () |
| 3141 | "Move point to the beginning of the message body." | 3153 | "Move point to the beginning of the message body." |
| 3142 | (interactive) | 3154 | (interactive) |
| 3143 | (when (and (gmm-called-interactively-p 'any) | 3155 | (when (and (message-called-interactively-p 'any) |
| 3144 | (looking-at "[ \t]*\n")) | 3156 | (looking-at "[ \t]*\n")) |
| 3145 | (expand-abbrev)) | 3157 | (expand-abbrev)) |
| 3146 | (push-mark) | 3158 | (push-mark) |