diff options
| author | Kenichi Handa | 2011-05-20 09:54:09 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2011-05-20 09:54:09 +0900 |
| commit | e23640bb698b291866717eef3e6b4c444b3fc26a (patch) | |
| tree | a02126245311ef8f18c43ba9400314fdb7e1d54b /lisp | |
| parent | 31bfc35cca6df0d14f4786a9890f3a01b91cfc4c (diff) | |
| parent | 35fd0881e61b873ae8c7e4dd9b723d5dd2b578c9 (diff) | |
| download | emacs-e23640bb698b291866717eef3e6b4c444b3fc26a.tar.gz emacs-e23640bb698b291866717eef3e6b4c444b3fc26a.zip | |
merge trunk
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 59 | ||||
| -rw-r--r-- | lisp/files.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-bodies.el | 3 | ||||
| -rw-r--r-- | lisp/loadup.el | 20 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/f90.el | 4 |
8 files changed, 53 insertions, 62 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 15bd4b190b2..d1ec662bac8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2011-05-20 Nix <nix@esperi.org.uk> | ||
| 2 | |||
| 3 | * files.el (basic-save-buffer-2): | ||
| 4 | Fix handling of break-hardlink-on-save with non-existent files. | ||
| 5 | |||
| 6 | 2011-05-19 Deniz Dogan <deniz@dogan.se> | ||
| 7 | |||
| 8 | * net/rcirc.el (rcirc-mode): Initialize rcirc-urls to nil. | ||
| 9 | (rcirc-markup-urls): Check if rcirc-url-regexp is nil. | ||
| 10 | |||
| 11 | 2011-05-19 Glenn Morris <rgm@gnu.org> | ||
| 12 | |||
| 13 | * progmodes/f90.el (f90-type-def-re): | ||
| 14 | Handle "type, bind(c)". (Bug#8691) | ||
| 15 | |||
| 16 | * emacs-lisp/autoload.el (batch-update-autoloads): | ||
| 17 | Set autoload-excludes by parsing loadup.el rather than Makefiles. | ||
| 18 | |||
| 1 | 2011-05-18 Michael Albinus <michael.albinus@gmx.de> | 19 | 2011-05-18 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 20 | ||
| 3 | * net/tramp.el (tramp-process-actions): Set "first-password-request" | 21 | * net/tramp.el (tramp-process-actions): Set "first-password-request" |
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index f8f8d9b00f2..6d5067151d3 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -769,52 +769,21 @@ Calls `update-directory-autoloads' on the command line arguments. | |||
| 769 | Definitions are written to `generated-autoload-file' (which | 769 | Definitions are written to `generated-autoload-file' (which |
| 770 | should be non-nil)." | 770 | should be non-nil)." |
| 771 | ;; For use during the Emacs build process only. | 771 | ;; For use during the Emacs build process only. |
| 772 | ;; Exclude those files that are preloaded on ALL platforms. | ||
| 773 | ;; These are the ones in loadup.el where "(load" is at the start | ||
| 774 | ;; of the line (crude, but it works). | ||
| 772 | (unless autoload-excludes | 775 | (unless autoload-excludes |
| 773 | (let* ((ldir (file-name-directory generated-autoload-file)) | 776 | (let ((default-directory (file-name-directory generated-autoload-file)) |
| 774 | (default-directory | 777 | file) |
| 775 | (file-name-as-directory | 778 | (when (file-readable-p "loadup.el") |
| 776 | (expand-file-name (if (eq system-type 'windows-nt) | 779 | (with-temp-buffer |
| 777 | "../lib-src" | 780 | (insert-file-contents "loadup.el") |
| 778 | "../src") ldir))) | 781 | (while (re-search-forward "^(load \"\\([^\"]+\\)\"" nil t) |
| 779 | (mfile "Makefile") | 782 | (setq file (match-string 1)) |
| 780 | (tmpfile "echolisp.tmp") | 783 | (or (string-match "\\.el\\'" file) |
| 781 | lim) | 784 | (setq file (format "%s.el" file))) |
| 782 | ;; Windows uses the 'echolisp' approach because: | 785 | (or (string-match "\\`site-" file) |
| 783 | ;; i) It does not have $lisp as a single simple definition, so | 786 | (push (expand-file-name file) autoload-excludes))))))) |
| 784 | ;; it would be harder to parse the Makefile. | ||
| 785 | ;; ii) It can, since it already has $lisp broken up into pieces | ||
| 786 | ;; that the command-line can handle. | ||
| 787 | ;; Non-Windows builds do not use the 'echolisp' approach because | ||
| 788 | ;; no-one knows (?) the maximum safe command-line length on all | ||
| 789 | ;; supported systems. $lisp is much longer there since it uses | ||
| 790 | ;; absolute paths, and it would seem a shame to split it just for this. | ||
| 791 | (when (file-readable-p mfile) | ||
| 792 | (if (eq system-type 'windows-nt) | ||
| 793 | (when (ignore-errors | ||
| 794 | (if (file-exists-p tmpfile) (delete-file tmpfile)) | ||
| 795 | ;; FIXME call-process is better, if it works. | ||
| 796 | (shell-command (format "%s echolisp > %s" | ||
| 797 | autoload-make-program tmpfile)) | ||
| 798 | (file-readable-p tmpfile)) | ||
| 799 | (with-temp-buffer | ||
| 800 | (insert-file-contents tmpfile) | ||
| 801 | ;; FIXME could be a single while loop. | ||
| 802 | (while (not (eobp)) | ||
| 803 | (setq lim (line-end-position)) | ||
| 804 | (while (re-search-forward "\\([^ ]+\\.el\\)c?\\>" lim t) | ||
| 805 | (push (expand-file-name (match-string 1)) | ||
| 806 | autoload-excludes)) | ||
| 807 | (forward-line 1)))) | ||
| 808 | (with-temp-buffer | ||
| 809 | (insert-file-contents mfile) | ||
| 810 | (when (re-search-forward "^shortlisp= " nil t) | ||
| 811 | (while (and (not lim) | ||
| 812 | (re-search-forward "\\.\\./lisp/\\([^ ]+\\.el\\)c?\\>" | ||
| 813 | nil t)) | ||
| 814 | (push (expand-file-name (match-string 1) ldir) | ||
| 815 | autoload-excludes) | ||
| 816 | (skip-chars-forward " \t") | ||
| 817 | (if (eolp) (setq lim t))))))))) | ||
| 818 | (let ((args command-line-args-left)) | 787 | (let ((args command-line-args-left)) |
| 819 | (setq command-line-args-left nil) | 788 | (setq command-line-args-left nil) |
| 820 | (apply 'update-directory-autoloads args))) | 789 | (apply 'update-directory-autoloads args))) |
diff --git a/lisp/files.el b/lisp/files.el index 336a0a436f9..200b9b1d303 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4517,6 +4517,7 @@ Before and after saving the buffer, this function runs | |||
| 4517 | (dir-writable (file-writable-p dir))) | 4517 | (dir-writable (file-writable-p dir))) |
| 4518 | (if (or (and file-precious-flag dir-writable) | 4518 | (if (or (and file-precious-flag dir-writable) |
| 4519 | (and break-hardlink-on-save | 4519 | (and break-hardlink-on-save |
| 4520 | (file-exists-p buffer-file-name) | ||
| 4520 | (> (file-nlinks buffer-file-name) 1) | 4521 | (> (file-nlinks buffer-file-name) 1) |
| 4521 | (or dir-writable | 4522 | (or dir-writable |
| 4522 | (error (concat (format | 4523 | (error (concat (format |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 66f30f03eff..2b51637e3d1 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-19 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * mm-bodies.el (mm-decode-content-transfer-encoding): Allow leading | ||
| 4 | whitespace in base64 data lines. | ||
| 5 | |||
| 1 | 2011-05-18 Teodor Zlatanov <tzz@lifelogs.com> | 6 | 2011-05-18 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 7 | ||
| 3 | * gnus-registry.el (gnus-registry-user-format-function-M): | 8 | * gnus-registry.el (gnus-registry-user-format-function-M): |
diff --git a/lisp/gnus/mm-bodies.el b/lisp/gnus/mm-bodies.el index 9952f410f0d..695451ddc45 100644 --- a/lisp/gnus/mm-bodies.el +++ b/lisp/gnus/mm-bodies.el | |||
| @@ -197,7 +197,8 @@ If TYPE is `text/plain' CRLF->LF translation may occur." | |||
| 197 | (while (re-search-forward "^[\t ]*\r?\n" nil t) | 197 | (while (re-search-forward "^[\t ]*\r?\n" nil t) |
| 198 | (delete-region (match-beginning 0) (match-end 0))) | 198 | (delete-region (match-beginning 0) (match-end 0))) |
| 199 | (goto-char (point-max)) | 199 | (goto-char (point-max)) |
| 200 | (when (re-search-backward "^[A-Za-z0-9+/]+=*[\t ]*$" nil t) | 200 | (when (re-search-backward "^[\t ]*[A-Za-z0-9+/]+=*[\t ]*$" |
| 201 | nil t) | ||
| 201 | (forward-line)) | 202 | (forward-line)) |
| 202 | (point)))) | 203 | (point)))) |
| 203 | ((memq encoding '(nil 7bit 8bit binary)) | 204 | ((memq encoding '(nil 7bit 8bit binary)) |
diff --git a/lisp/loadup.el b/lisp/loadup.el index d348456ae32..525b8d27b8d 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -29,21 +29,15 @@ | |||
| 29 | ;; If you add/remove Lisp files to be loaded here, consider the | 29 | ;; If you add/remove Lisp files to be loaded here, consider the |
| 30 | ;; following issues: | 30 | ;; following issues: |
| 31 | 31 | ||
| 32 | ;; i) Any file loaded on all platforms should appear in $lisp | 32 | ;; i) Any file loaded on any platform should appear in $lisp in src/lisp.mk. |
| 33 | ;; and $shortlisp in src/Makefile.in. Use the .el or .elc version as | 33 | ;; Use the .el or .elc version as appropriate. |
| 34 | ;; appropriate. | ||
| 35 | 34 | ||
| 36 | ;; ii) Any file that is only loaded on some platforms should appear | 35 | ;; This ensures both that the Lisp files are compiled (if necessary) |
| 37 | ;; in the version of $lisp in the generated Makefile on that platform. | 36 | ;; before the emacs executable is dumped, and that they are passed to |
| 38 | ;; At the present time, this is achieved by use of #ifdefs. | 37 | ;; make-docfile. (Any that are not processed for DOC will not have |
| 39 | ;; It should also appear in $SOME_MACHINE_LISP on all platforms. | 38 | ;; doc strings in the dumped Emacs.) Because of this: |
| 40 | 39 | ||
| 41 | ;; The above steps ensure both that the Lisp files are compiled (if | 40 | ;; ii) If the file is loaded uncompiled, it should (where possible) |
| 42 | ;; necessary) before the emacs executable is dumped, and that they are | ||
| 43 | ;; passed to make-docfile. (Any that are not processed for DOC will | ||
| 44 | ;; not have doc strings in the dumped Emacs.) Because of this: | ||
| 45 | |||
| 46 | ;; iii) If the file is loaded uncompiled, it should (where possible) | ||
| 47 | ;; obey the doc-string conventions expected by make-docfile. | 41 | ;; obey the doc-string conventions expected by make-docfile. |
| 48 | 42 | ||
| 49 | ;;; Code: | 43 | ;;; Code: |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 206ebc8997c..0d02688beed 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -971,7 +971,7 @@ This number is independent of the number of lines in the buffer.") | |||
| 971 | (set (make-local-variable 'rcirc-current-line) 0) | 971 | (set (make-local-variable 'rcirc-current-line) 0) |
| 972 | 972 | ||
| 973 | (set (make-local-variable 'rcirc-short-buffer-name) nil) | 973 | (set (make-local-variable 'rcirc-short-buffer-name) nil) |
| 974 | (set (make-local-variable 'rcirc-urls) t) | 974 | (set (make-local-variable 'rcirc-urls) nil) |
| 975 | 975 | ||
| 976 | ;; setup for omitting responses | 976 | ;; setup for omitting responses |
| 977 | (setq buffer-invisibility-spec '()) | 977 | (setq buffer-invisibility-spec '()) |
| @@ -2394,7 +2394,8 @@ keywords when no KEYWORD is given." | |||
| 2394 | (rcirc-record-activity (current-buffer) 'nick))))) | 2394 | (rcirc-record-activity (current-buffer) 'nick))))) |
| 2395 | 2395 | ||
| 2396 | (defun rcirc-markup-urls (sender response) | 2396 | (defun rcirc-markup-urls (sender response) |
| 2397 | (while (re-search-forward rcirc-url-regexp nil t) | 2397 | (while (and rcirc-url-regexp ;; nil means disable URL catching |
| 2398 | (re-search-forward rcirc-url-regexp nil t)) | ||
| 2398 | (let ((start (match-beginning 0)) | 2399 | (let ((start (match-beginning 0)) |
| 2399 | (end (match-end 0))) | 2400 | (end (match-end 0))) |
| 2400 | (rcirc-add-face start end 'rcirc-url) | 2401 | (rcirc-add-face start end 'rcirc-url) |
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index 53aa95498da..e9bb43c4d6d 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -809,8 +809,10 @@ Can be overridden by the value of `font-lock-maximum-decoration'.") | |||
| 809 | ;; type word | 809 | ;; type word |
| 810 | ;; type :: word | 810 | ;; type :: word |
| 811 | ;; type, stuff :: word | 811 | ;; type, stuff :: word |
| 812 | ;; type, bind(c) :: word | ||
| 812 | ;; NOT "type (" | 813 | ;; NOT "type (" |
| 813 | "\\<\\(type\\)\\>\\(?:[^()\n]*::\\)?[ \t]*\\(\\sw+\\)" | 814 | "\\<\\(type\\)\\>\\(?:\\(?:[^()\n]*\\|\ |
| 815 | .*,[ \t]*bind[ \t]*([ \t]*c[ \t]*)[ \t]*\\)::\\)?[ \t]*\\(\\sw+\\)" | ||
| 814 | "Regexp matching the definition of a derived type.") | 816 | "Regexp matching the definition of a derived type.") |
| 815 | 817 | ||
| 816 | (defconst f90-typeis-re | 818 | (defconst f90-typeis-re |