diff options
| author | Miles Bader | 2005-08-05 08:37:44 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-08-05 08:37:44 +0000 |
| commit | 97f78c9b71b22ef2a09db90f38512346652583fa (patch) | |
| tree | e8198f42944938a4887431abd2b3662105372b3d | |
| parent | 4f27bfc37fccea6520daecbde68a86d9f76b5a8d (diff) | |
| download | emacs-97f78c9b71b22ef2a09db90f38512346652583fa.tar.gz emacs-97f78c9b71b22ef2a09db90f38512346652583fa.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-512
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 101-102)
- Update from CVS
2005-08-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-art.el (article-unsplit-urls): Don't anchor urls to the
start of the lines.
(gnus-picon-databases): Add /usr/share/picons.
2005-08-04 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-art.el (gnus-button-valid-localpart-regexp): New variable
taken from `gnus-button-mid-or-mail-regexp'.
(gnus-button-mid-or-mail-regexp, gnus-button-alist): Use it.
(gnus-button-alist): Improve regexp for domain part of the MIDs
for news:localpart@domain buttons.
(gnus-button-ctan-directory-regexp): Update.
* lisp/gnus/message.el (message-kill-buffer): Raise the current frame.
(message-bury): Use `window-dedicated-p'.
2005-08-02 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/sieve-manage.el (sieve-manage-interactive-login): Use
make-local-variable rather than make-variable-buffer-local.
(sieve-manage-open): Ditto.
(sieve-manage-authenticate): Ditto.
| -rw-r--r-- | lisp/gnus/ChangeLog | 23 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 32 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 14 | ||||
| -rw-r--r-- | lisp/gnus/sieve-manage.el | 12 |
4 files changed, 59 insertions, 22 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a96013006c2..0efec1e14c1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,28 @@ | |||
| 1 | 2005-08-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-art.el (article-unsplit-urls): Don't anchor urls to the | ||
| 4 | start of the lines. | ||
| 5 | (gnus-picon-databases): Add /usr/share/picons. | ||
| 6 | |||
| 7 | 2005-08-04 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 8 | |||
| 9 | * gnus-art.el (gnus-button-valid-localpart-regexp): New variable | ||
| 10 | taken from `gnus-button-mid-or-mail-regexp'. | ||
| 11 | (gnus-button-mid-or-mail-regexp, gnus-button-alist): Use it. | ||
| 12 | (gnus-button-alist): Improve regexp for domain part of the MIDs | ||
| 13 | for news:localpart@domain buttons. | ||
| 14 | (gnus-button-ctan-directory-regexp): Update. | ||
| 15 | |||
| 16 | * message.el (message-kill-buffer): Raise the current frame. | ||
| 17 | (message-bury): Use `window-dedicated-p'. | ||
| 18 | |||
| 1 | 2005-08-02 Katsumi Yamaoka <yamaoka@jpl.org> | 19 | 2005-08-02 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 20 | ||
| 21 | * sieve-manage.el (sieve-manage-interactive-login): Use | ||
| 22 | make-local-variable rather than make-variable-buffer-local. | ||
| 23 | (sieve-manage-open): Ditto. | ||
| 24 | (sieve-manage-authenticate): Ditto. | ||
| 25 | |||
| 3 | * mml.el (mml-generate-mime-1): Make the content type default to | 26 | * mml.el (mml-generate-mime-1): Make the content type default to |
| 4 | text/plain if the filename is not specified. | 27 | text/plain if the filename is not specified. |
| 5 | 28 | ||
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 9051554fdc7..0d8116b00b9 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -842,7 +842,8 @@ be controlled by `gnus-treat-body-boundary'." | |||
| 842 | :type '(choice (item :tag "None" :value nil) | 842 | :type '(choice (item :tag "None" :value nil) |
| 843 | string)) | 843 | string)) |
| 844 | 844 | ||
| 845 | (defcustom gnus-picon-databases '("/usr/lib/picon" "/usr/local/faces") | 845 | (defcustom gnus-picon-databases '("/usr/lib/picon" "/usr/local/faces" |
| 846 | "/usr/share/picons") | ||
| 846 | "Defines the location of the faces database. | 847 | "Defines the location of the faces database. |
| 847 | For information on obtaining this database of pretty pictures, please | 848 | For information on obtaining this database of pretty pictures, please |
| 848 | see http://www.cs.indiana.edu/picons/ftp/index.html" | 849 | see http://www.cs.indiana.edu/picons/ftp/index.html" |
| @@ -2428,7 +2429,7 @@ If READ-CHARSET, ask for a coding system." | |||
| 2428 | (let ((inhibit-read-only t)) | 2429 | (let ((inhibit-read-only t)) |
| 2429 | (goto-char (point-min)) | 2430 | (goto-char (point-min)) |
| 2430 | (while (re-search-forward | 2431 | (while (re-search-forward |
| 2431 | "^\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t) | 2432 | "\\(\\(https?\\|ftp\\)://\\S-+\\) *\n\\(\\S-+\\)" nil t) |
| 2432 | (replace-match "\\1\\3" t))) | 2433 | (replace-match "\\1\\3" t))) |
| 2433 | (when (interactive-p) | 2434 | (when (interactive-p) |
| 2434 | (gnus-treat-article nil)))) | 2435 | (gnus-treat-article nil)))) |
| @@ -5886,6 +5887,14 @@ groups." | |||
| 5886 | :group 'gnus-article-buttons | 5887 | :group 'gnus-article-buttons |
| 5887 | :type 'regexp) | 5888 | :type 'regexp) |
| 5888 | 5889 | ||
| 5890 | ;; Regexp suggested by Felix Wiemann in <87oeuomcz9.fsf@news2.ososo.de> | ||
| 5891 | (defcustom gnus-button-valid-localpart-regexp | ||
| 5892 | "[a-z0-9$%(*-=?[_][^<>\")!;:,{}\n\t ]*" | ||
| 5893 | "Regular expression that matches a localpart of mail addresses or MIDs." | ||
| 5894 | :version "22.1" | ||
| 5895 | :group 'gnus-article-buttons | ||
| 5896 | :type 'regexp) | ||
| 5897 | |||
| 5889 | (defcustom gnus-button-man-handler 'manual-entry | 5898 | (defcustom gnus-button-man-handler 'manual-entry |
| 5890 | "Function to use for displaying man pages. | 5899 | "Function to use for displaying man pages. |
| 5891 | The function must take at least one argument with a string naming the | 5900 | The function must take at least one argument with a string naming the |
| @@ -5925,12 +5934,11 @@ The function must take one argument, the string naming the URL." | |||
| 5925 | (regexp :tag "Other"))) | 5934 | (regexp :tag "Other"))) |
| 5926 | 5935 | ||
| 5927 | (defcustom gnus-button-ctan-directory-regexp | 5936 | (defcustom gnus-button-ctan-directory-regexp |
| 5928 | (concat | 5937 | (regexp-opt |
| 5929 | "\\("; Cannot use `\(?: ... \)' (compatibility with Emacs 20). | 5938 | (list "archive-tools" "biblio" "bibliography" "digests" "documentation" |
| 5930 | "biblio\\|digests\\|dviware\\|fonts\\|graphics\\|help\\|" | 5939 | "dviware" "fonts" "graphics" "help" "indexing" "info" "language" |
| 5931 | "indexing\\|info\\|language\\|macros\\|support\\|systems\\|" | 5940 | "languages" "macros" "nonfree" "obsolete" "support" "systems" |
| 5932 | "tds\\|tools\\|usergrps\\|web\\|nonfree\\|obsolete" | 5941 | "tds" "tools" "usergrps" "web") t) |
| 5933 | "\\)") | ||
| 5934 | "Regular expression for ctan directories. | 5942 | "Regular expression for ctan directories. |
| 5935 | It should match all directories in the top level of `gnus-ctan-url'." | 5943 | It should match all directories in the top level of `gnus-ctan-url'." |
| 5936 | :version "22.1" | 5944 | :version "22.1" |
| @@ -5938,8 +5946,7 @@ It should match all directories in the top level of `gnus-ctan-url'." | |||
| 5938 | :type 'regexp) | 5946 | :type 'regexp) |
| 5939 | 5947 | ||
| 5940 | (defcustom gnus-button-mid-or-mail-regexp | 5948 | (defcustom gnus-button-mid-or-mail-regexp |
| 5941 | (concat "\\b\\(<?[a-z0-9$%(*-=?[_][^<>\")!;:,{}\n\t ]*@" | 5949 | (concat "\\b\\(<?" gnus-button-valid-localpart-regexp "@" |
| 5942 | ;; Felix Wiemann in <87oeuomcz9.fsf@news2.ososo.de> | ||
| 5943 | gnus-button-valid-fqdn-regexp | 5950 | gnus-button-valid-fqdn-regexp |
| 5944 | ">?\\)\\b") | 5951 | ">?\\)\\b") |
| 5945 | "Regular expression that matches a message ID or a mail address." | 5952 | "Regular expression that matches a message ID or a mail address." |
| @@ -6254,8 +6261,9 @@ positives are possible." | |||
| 6254 | (defcustom gnus-button-alist | 6261 | (defcustom gnus-button-alist |
| 6255 | '(("<\\(url:[>\n\t ]*?\\)?\\(nntp\\|news\\):[>\n\t ]*\\([^>\n\t ]*@[^>\n\t ]*\\)>" | 6262 | '(("<\\(url:[>\n\t ]*?\\)?\\(nntp\\|news\\):[>\n\t ]*\\([^>\n\t ]*@[^>\n\t ]*\\)>" |
| 6256 | 0 (>= gnus-button-message-level 0) gnus-button-handle-news 3) | 6263 | 0 (>= gnus-button-message-level 0) gnus-button-handle-news 3) |
| 6257 | ("\\b\\(nntp\\|news\\):\\([^>\n\t ]*@[^>)!;:,\n\t ]*\\)" 0 t | 6264 | ((concat "\\b\\(nntp\\|news\\):\\(" |
| 6258 | gnus-button-handle-news 2) | 6265 | gnus-button-valid-localpart-regexp "@[a-z0-9.-]+[a-z]\\)") |
| 6266 | 0 t gnus-button-handle-news 2) | ||
| 6259 | ("\\(\\b<\\(url:[>\n\t ]*\\)?\\(nntp\\|news\\):[>\n\t ]*\\(//\\)?\\([^>\n\t ]*\\)>\\)" | 6267 | ("\\(\\b<\\(url:[>\n\t ]*\\)?\\(nntp\\|news\\):[>\n\t ]*\\(//\\)?\\([^>\n\t ]*\\)>\\)" |
| 6260 | 1 (>= gnus-button-message-level 0) gnus-button-fetch-group 5) | 6268 | 1 (>= gnus-button-message-level 0) gnus-button-fetch-group 5) |
| 6261 | ("\\b\\(nntp\\|news\\):\\(//\\)?\\([^'\">\n\t ]+\\)" | 6269 | ("\\b\\(nntp\\|news\\):\\(//\\)?\\([^'\">\n\t ]+\\)" |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index c5679e0a22f..d9e6d878e2f 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -3418,8 +3418,15 @@ Instead, just auto-save the buffer and then bury it." | |||
| 3418 | (file-exists-p auto-save-file-name)) | 3418 | (file-exists-p auto-save-file-name)) |
| 3419 | (and file-name | 3419 | (and file-name |
| 3420 | (file-exists-p file-name))) | 3420 | (file-exists-p file-name))) |
| 3421 | (yes-or-no-p (format "Remove the backup file%s? " | 3421 | (progn |
| 3422 | (if modified " too" "")))) | 3422 | ;; If the message buffer has lived in a dedicated window, |
| 3423 | ;; `kill-buffer' has killed the frame. Thus the | ||
| 3424 | ;; `yes-or-no-p' may show up in a lowered frame. Make sure | ||
| 3425 | ;; that the user can see the question by raising the | ||
| 3426 | ;; current frame: | ||
| 3427 | (raise-frame) | ||
| 3428 | (yes-or-no-p (format "Remove the backup file%s? " | ||
| 3429 | (if modified " too" ""))))) | ||
| 3423 | (ignore-errors | 3430 | (ignore-errors |
| 3424 | (delete-file auto-save-file-name)) | 3431 | (delete-file auto-save-file-name)) |
| 3425 | (let ((message-draft-article draft-article)) | 3432 | (let ((message-draft-article draft-article)) |
| @@ -3430,8 +3437,7 @@ Instead, just auto-save the buffer and then bury it." | |||
| 3430 | "Bury this mail BUFFER." | 3437 | "Bury this mail BUFFER." |
| 3431 | (let ((newbuf (other-buffer buffer))) | 3438 | (let ((newbuf (other-buffer buffer))) |
| 3432 | (bury-buffer buffer) | 3439 | (bury-buffer buffer) |
| 3433 | (if (and (fboundp 'frame-parameters) | 3440 | (if (and (window-dedicated-p (selected-window)) |
| 3434 | (cdr (assq 'dedicated (frame-parameters))) | ||
| 3435 | (not (null (delq (selected-frame) (visible-frame-list))))) | 3441 | (not (null (delq (selected-frame) (visible-frame-list))))) |
| 3436 | (delete-frame (selected-frame)) | 3442 | (delete-frame (selected-frame)) |
| 3437 | (switch-to-buffer newbuf)))) | 3443 | (switch-to-buffer newbuf)))) |
diff --git a/lisp/gnus/sieve-manage.el b/lisp/gnus/sieve-manage.el index 2afa49c79a7..5c0712420a0 100644 --- a/lisp/gnus/sieve-manage.el +++ b/lisp/gnus/sieve-manage.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; sieve-manage.el --- Implementation of the managesive protocol in elisp | 1 | ;;; sieve-manage.el --- Implementation of the managesive protocol in elisp |
| 2 | ;; Copyright (C) 2001, 2003 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Simon Josefsson <simon@josefsson.org> | 4 | ;; Author: Simon Josefsson <simon@josefsson.org> |
| 5 | 5 | ||
| @@ -184,8 +184,8 @@ LOGINFUNC is passed a username and a password, it should return t if | |||
| 184 | it where sucessful authenticating itself to the server, nil otherwise. | 184 | it where sucessful authenticating itself to the server, nil otherwise. |
| 185 | Returns t if login was successful, nil otherwise." | 185 | Returns t if login was successful, nil otherwise." |
| 186 | (with-current-buffer buffer | 186 | (with-current-buffer buffer |
| 187 | (make-variable-buffer-local 'sieve-manage-username) | 187 | (make-local-variable 'sieve-manage-username) |
| 188 | (make-variable-buffer-local 'sieve-manage-password) | 188 | (make-local-variable 'sieve-manage-password) |
| 189 | (let (user passwd ret reason) | 189 | (let (user passwd ret reason) |
| 190 | ;; (condition-case () | 190 | ;; (condition-case () |
| 191 | (while (or (not user) (not passwd)) | 191 | (while (or (not user) (not passwd)) |
| @@ -370,7 +370,7 @@ Optional variable BUFFER is buffer (buffer, or string naming buffer) | |||
| 370 | to work in." | 370 | to work in." |
| 371 | (setq buffer (or buffer (format " *sieve* %s:%d" server (or port 2000)))) | 371 | (setq buffer (or buffer (format " *sieve* %s:%d" server (or port 2000)))) |
| 372 | (with-current-buffer (get-buffer-create buffer) | 372 | (with-current-buffer (get-buffer-create buffer) |
| 373 | (mapcar 'make-variable-buffer-local sieve-manage-local-variables) | 373 | (mapcar 'make-local-variable sieve-manage-local-variables) |
| 374 | (sieve-manage-disable-multibyte) | 374 | (sieve-manage-disable-multibyte) |
| 375 | (buffer-disable-undo) | 375 | (buffer-disable-undo) |
| 376 | (setq sieve-manage-server (or server sieve-manage-server)) | 376 | (setq sieve-manage-server (or server sieve-manage-server)) |
| @@ -458,8 +458,8 @@ password is remembered in the buffer." | |||
| 458 | (with-current-buffer (or buffer (current-buffer)) | 458 | (with-current-buffer (or buffer (current-buffer)) |
| 459 | (if (not (eq sieve-manage-state 'nonauth)) | 459 | (if (not (eq sieve-manage-state 'nonauth)) |
| 460 | (eq sieve-manage-state 'auth) | 460 | (eq sieve-manage-state 'auth) |
| 461 | (make-variable-buffer-local 'sieve-manage-username) | 461 | (make-local-variable 'sieve-manage-username) |
| 462 | (make-variable-buffer-local 'sieve-manage-password) | 462 | (make-local-variable 'sieve-manage-password) |
| 463 | (if user (setq sieve-manage-username user)) | 463 | (if user (setq sieve-manage-username user)) |
| 464 | (if passwd (setq sieve-manage-password passwd)) | 464 | (if passwd (setq sieve-manage-password passwd)) |
| 465 | (if (funcall (nth 2 (assq sieve-manage-auth | 465 | (if (funcall (nth 2 (assq sieve-manage-auth |