diff options
| author | Paul Eggert | 2011-05-05 23:30:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-05-05 23:30:56 -0700 |
| commit | 8ff0ac3c78498c905a22786aa124f59d213b99a0 (patch) | |
| tree | a0448dee34e826197c000ec615dd172cfb59bcc1 | |
| parent | 9991d78e8cd74e986a9b7625c12a43fbf7a283b3 (diff) | |
| parent | 548d0a63d6212c0baef9a3d2bf0093cceb4e1136 (diff) | |
| download | emacs-8ff0ac3c78498c905a22786aa124f59d213b99a0.tar.gz emacs-8ff0ac3c78498c905a22786aa124f59d213b99a0.zip | |
Merge from mainline.
| -rw-r--r-- | Makefile.in | 2 | ||||
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/cal-xtra.texi | 14 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 44 | ||||
| -rw-r--r-- | lisp/allout-widgets.el | 1 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 40 | ||||
| -rw-r--r-- | lisp/emacs-lisp/check-declare.el | 10 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 4 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 26 | ||||
| -rw-r--r-- | lisp/net/network-stream.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 9 | ||||
| -rw-r--r-- | lisp/vc/diff-mode.el | 5 | ||||
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/gnutls.c | 2 | ||||
| -rw-r--r-- | src/image.c | 2 | ||||
| -rw-r--r-- | src/lread.c | 6 |
21 files changed, 160 insertions, 44 deletions
diff --git a/Makefile.in b/Makefile.in index 8cc9806bed3..a8cdd6a901d 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -931,7 +931,7 @@ dvi: | |||
| 931 | 931 | ||
| 932 | .PHONY: bootstrap | 932 | .PHONY: bootstrap |
| 933 | 933 | ||
| 934 | ## configure; make boostrap replaces the real config.log from configure | 934 | ## configure; make bootstrap replaces the real config.log from configure |
| 935 | ## with the truncated one from config.status. The former is more useful. | 935 | ## with the truncated one from config.status. The former is more useful. |
| 936 | bootstrap: bootstrap-clean FRC | 936 | bootstrap: bootstrap-clean FRC |
| 937 | if [ -x ./config.status ]; then \ | 937 | if [ -x ./config.status ]; then \ |
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index efe031d465b..dbb274360fd 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-05-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * cal-xtra.texi (Fancy Diary Display): Mention diary comments. | ||
| 4 | |||
| 1 | 2011-05-02 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2011-05-02 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * misc.texi (Emacs Server): Document `server-eval-at'. | 7 | * misc.texi (Emacs Server): Document `server-eval-at'. |
diff --git a/doc/emacs/cal-xtra.texi b/doc/emacs/cal-xtra.texi index b936636403a..4a51e9004fc 100644 --- a/doc/emacs/cal-xtra.texi +++ b/doc/emacs/cal-xtra.texi | |||
| @@ -616,6 +616,20 @@ first within each day. Note how the sort command is placed at the end | |||
| 616 | of the hook list, in case earlier members of the list change the order | 616 | of the hook list, in case earlier members of the list change the order |
| 617 | of the diary entries, or add items. | 617 | of the diary entries, or add items. |
| 618 | 618 | ||
| 619 | @vindex diary-comment-start | ||
| 620 | You can write @samp{comments} in diary entries, by setting the | ||
| 621 | variables @code{diary-comment-start} and @code{diary-comment-end} to | ||
| 622 | strings that delimit comments. The fancy display does not print | ||
| 623 | comments. You might want to put meta-data for the use of other packages | ||
| 624 | (e.g. the appointment package, | ||
| 625 | @iftex | ||
| 626 | @pxref{Appointments,,,emacs, the Emacs Manual}) | ||
| 627 | @end iftex | ||
| 628 | @ifnottex | ||
| 629 | @pxref{Appointments}) | ||
| 630 | @end ifnottex | ||
| 631 | inside comments. | ||
| 632 | |||
| 619 | @vindex diary-include-string | 633 | @vindex diary-include-string |
| 620 | Your main diary file can include other files. This permits a group of | 634 | Your main diary file can include other files. This permits a group of |
| 621 | people to share a diary file for events that apply to all of them. | 635 | people to share a diary file for events that apply to all of them. |
| @@ -447,6 +447,10 @@ You can get a comparable behavior with: | |||
| 447 | 447 | ||
| 448 | ** Calendar, Diary, and Appt | 448 | ** Calendar, Diary, and Appt |
| 449 | 449 | ||
| 450 | +++ | ||
| 451 | *** Diary entries can contain non-printing `comments'. | ||
| 452 | See the variable `diary-comment-start'. | ||
| 453 | |||
| 450 | *** New function `diary-hebrew-birthday'. | 454 | *** New function `diary-hebrew-birthday'. |
| 451 | 455 | ||
| 452 | --- | 456 | --- |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f1376884e9d..ef5e5422222 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,45 @@ | |||
| 1 | 2011-05-05 Daniel Colascione <dan.colascione@gmail.com> | 1 | 2011-05-06 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use | 3 | * calendar/diary-lib.el (diary-comment-start, diary-comment-end): |
| 4 | correct match group (bug#8438). | 4 | New options. |
| 5 | (diary-add-to-list): Strip comments from the displayed string. | ||
| 6 | (diary-mode): Set comment-start and comment-end. | ||
| 7 | |||
| 8 | * vc/diff-mode.el (smerge-refine-subst): Declare. | ||
| 9 | (diff-refine-hunk): Don't require smerge-mode when compiling. | ||
| 10 | |||
| 11 | 2011-05-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 12 | |||
| 13 | * simple.el (list-processes): Return nil as the docstring says. | ||
| 14 | |||
| 15 | 2011-05-05 Michael Albinus <michael.albinus@gmx.de> | ||
| 16 | |||
| 17 | * net/ange-ftp.el (ange-ftp-binary-file-name-regexp): Set default | ||
| 18 | to "". | ||
| 19 | (ange-ftp-write-region, ange-ftp-insert-file-contents) | ||
| 20 | (ange-ftp-copy-file-internal): Use only `ange-ftp-binary-file' for | ||
| 21 | determining of binary transfer. (Bug#7383) | ||
| 22 | |||
| 23 | 2011-05-05 Michael Albinus <michael.albinus@gmx.de> | ||
| 24 | |||
| 25 | * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix | ||
| 26 | port computation bug. (Bug#8618) | ||
| 27 | |||
| 28 | 2011-05-05 Glenn Morris <rgm@gnu.org> | ||
| 29 | |||
| 30 | * allout-widgets.el (allout-widgets-mode-inhibit): Declare before use. | ||
| 31 | |||
| 32 | * simple.el (shell-dynamic-complete-functions) | ||
| 33 | (comint-dynamic-complete-functions): Declare. | ||
| 34 | |||
| 35 | * net/network-stream.el (gnutls-negotiate): | ||
| 36 | * simple.el (tabulated-list-print): Fix declarations. | ||
| 37 | |||
| 38 | * progmodes/gud.el (syntax-symbol, syntax-point): | ||
| 39 | Remove unnecessary and incorrect declarations. | ||
| 40 | |||
| 41 | * emacs-lisp/check-declare.el (check-declare-scan): | ||
| 42 | Handle byte-compile-initial-macro-environment in bytecomp.el | ||
| 5 | 43 | ||
| 6 | 2011-05-05 Stefan Monnier <monnier@iro.umontreal.ca> | 44 | 2011-05-05 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 45 | ||
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el index ae4265bda1f..a83e5a2a85c 100644 --- a/lisp/allout-widgets.el +++ b/lisp/allout-widgets.el | |||
| @@ -246,6 +246,7 @@ Table is maintained iff `allout-widgets-maintain-tally' is non-nil. | |||
| 246 | The table contents will be out of sync if any widgets are created | 246 | The table contents will be out of sync if any widgets are created |
| 247 | or deleted while this variable is nil.") | 247 | or deleted while this variable is nil.") |
| 248 | (make-variable-buffer-local 'allout-widgets-tally) | 248 | (make-variable-buffer-local 'allout-widgets-tally) |
| 249 | (defvar allout-widgets-mode-inhibit) ; defined below | ||
| 249 | ;;;_ > allout-widgets-tally-string | 250 | ;;;_ > allout-widgets-tally-string |
| 250 | (defun allout-widgets-tally-string () | 251 | (defun allout-widgets-tally-string () |
| 251 | "Return a string giving the number of tracked widgets, or empty string if not tracking. | 252 | "Return a string giving the number of tracked widgets, or empty string if not tracking. |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 43c0682277c..951b271b935 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -142,6 +142,25 @@ See the documentation for the function `diary-list-sexp-entries'." | |||
| 142 | :type 'string | 142 | :type 'string |
| 143 | :group 'diary) | 143 | :group 'diary) |
| 144 | 144 | ||
| 145 | (defcustom diary-comment-start nil | ||
| 146 | "String marking the start of a comment in the diary, or nil. | ||
| 147 | Nil means there are no comments. The diary does not display | ||
| 148 | parts of entries that are inside comments. You can use comments | ||
| 149 | for whatever you like, e.g. for meta-data that packages such as | ||
| 150 | `appt.el' can use. | ||
| 151 | See also `diary-comment-end'." | ||
| 152 | :version "24.1" | ||
| 153 | :type '(choice (const :tag "No comment" nil) string) | ||
| 154 | :group 'diary) | ||
| 155 | |||
| 156 | (defcustom diary-comment-end "" | ||
| 157 | "String marking the end of a comment in the diary. | ||
| 158 | The empty string means comments finish at the end of a line. | ||
| 159 | See also `diary-comment-start'." | ||
| 160 | :version "24.1" | ||
| 161 | :type 'string | ||
| 162 | :group 'diary) | ||
| 163 | |||
| 145 | (defcustom diary-hook nil | 164 | (defcustom diary-hook nil |
| 146 | "List of functions called after the display of the diary. | 165 | "List of functions called after the display of the diary. |
| 147 | Used for example by the appointment package - see `appt-activate'." | 166 | Used for example by the appointment package - see `appt-activate'." |
| @@ -610,10 +629,15 @@ If LITERAL is nil, it is taken to be the same as STRING. | |||
| 610 | 629 | ||
| 611 | The entry is added to the list as (DATE STRING SPECIFIER LOCATOR | 630 | The entry is added to the list as (DATE STRING SPECIFIER LOCATOR |
| 612 | GLOBCOLOR), where LOCATOR has the form (MARKER FILENAME LITERAL), | 631 | GLOBCOLOR), where LOCATOR has the form (MARKER FILENAME LITERAL), |
| 613 | FILENAME being the file containing the diary entry." | 632 | FILENAME being the file containing the diary entry. |
| 633 | |||
| 634 | Modifies STRING using `diary-modify-entry-list-string-function', if non-nil. | ||
| 635 | Also removes the region between `diary-comment-start' and | ||
| 636 | `diary-comment-end', if the former is non-nil." | ||
| 614 | (when (and date string) | 637 | (when (and date string) |
| 615 | ;; b-f-n is nil if we are visiting an include file in a temp-buffer. | 638 | ;; b-f-n is nil if we are visiting an include file in a temp-buffer. |
| 616 | (let ((dfile (or (buffer-file-name) diary-file))) | 639 | (let ((dfile (or (buffer-file-name) diary-file)) |
| 640 | cstart) | ||
| 617 | (if diary-file-name-prefix | 641 | (if diary-file-name-prefix |
| 618 | (let ((prefix (funcall diary-file-name-prefix-function dfile))) | 642 | (let ((prefix (funcall diary-file-name-prefix-function dfile))) |
| 619 | (or (string-equal prefix "") | 643 | (or (string-equal prefix "") |
| @@ -621,6 +645,16 @@ FILENAME being the file containing the diary entry." | |||
| 621 | (and diary-modify-entry-list-string-function | 645 | (and diary-modify-entry-list-string-function |
| 622 | (setq string (funcall diary-modify-entry-list-string-function | 646 | (setq string (funcall diary-modify-entry-list-string-function |
| 623 | string))) | 647 | string))) |
| 648 | (when (and diary-comment-start | ||
| 649 | (string-match (setq cstart (regexp-quote diary-comment-start)) | ||
| 650 | string)) | ||
| 651 | ;; Preserve the value with the comments. | ||
| 652 | (or literal (setq literal string)) | ||
| 653 | (setq string (replace-regexp-in-string | ||
| 654 | (format "%s.*%s" cstart | ||
| 655 | (if (zerop (length diary-comment-end)) "$" | ||
| 656 | (regexp-quote diary-comment-end))) | ||
| 657 | "" string))) | ||
| 624 | (setq diary-entries-list | 658 | (setq diary-entries-list |
| 625 | (append diary-entries-list | 659 | (append diary-entries-list |
| 626 | (list (list date string specifier | 660 | (list (list date string specifier |
| @@ -2353,6 +2387,8 @@ return a font-lock pattern matching array of MONTHS and marking SYMBOL." | |||
| 2353 | "Major mode for editing the diary file." | 2387 | "Major mode for editing the diary file." |
| 2354 | (set (make-local-variable 'font-lock-defaults) | 2388 | (set (make-local-variable 'font-lock-defaults) |
| 2355 | '(diary-font-lock-keywords t)) | 2389 | '(diary-font-lock-keywords t)) |
| 2390 | (set (make-local-variable 'comment-start) diary-comment-start) | ||
| 2391 | (set (make-local-variable 'comment-end) diary-comment-end) | ||
| 2356 | (add-to-invisibility-spec '(diary . nil)) | 2392 | (add-to-invisibility-spec '(diary . nil)) |
| 2357 | (add-hook 'after-save-hook 'diary-redraw-calendar nil t) | 2393 | (add-hook 'after-save-hook 'diary-redraw-calendar nil t) |
| 2358 | ;; In case the file was modified externally, refresh the calendar | 2394 | ;; In case the file was modified externally, refresh the calendar |
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el index f6ff67a90c3..e15920ef009 100644 --- a/lisp/emacs-lisp/check-declare.el +++ b/lisp/emacs-lisp/check-declare.el | |||
| @@ -88,9 +88,11 @@ don't know how to recognize (e.g. some macros)." | |||
| 88 | ;; FIXME we could theoretically be inside a string. | 88 | ;; FIXME we could theoretically be inside a string. |
| 89 | (while (re-search-forward "^[ \t]*\\((declare-function\\)[ \t\n]" nil t) | 89 | (while (re-search-forward "^[ \t]*\\((declare-function\\)[ \t\n]" nil t) |
| 90 | (goto-char (match-beginning 1)) | 90 | (goto-char (match-beginning 1)) |
| 91 | (if (and (setq form (ignore-errors (read (current-buffer))) | 91 | (if (and (setq form (ignore-errors (read (current-buffer)))) |
| 92 | len (length form)) | 92 | ;; Exclude element of byte-compile-initial-macro-environment. |
| 93 | (> len 2) (< len 6) | 93 | (or (listp (cdr form)) (setq form nil)) |
| 94 | (> (setq len (length form)) 2) | ||
| 95 | (< len 6) | ||
| 94 | (symbolp (setq fn (cadr form))) | 96 | (symbolp (setq fn (cadr form))) |
| 95 | (setq fn (symbol-name fn)) ; later we use as a search string | 97 | (setq fn (symbol-name fn)) ; later we use as a search string |
| 96 | (stringp (setq fnfile (nth 2 form))) | 98 | (stringp (setq fnfile (nth 2 form))) |
| @@ -104,7 +106,7 @@ don't know how to recognize (e.g. some macros)." | |||
| 104 | (symbolp (setq fileonly (nth 4 form)))) | 106 | (symbolp (setq fileonly (nth 4 form)))) |
| 105 | (setq alist (cons (list fnfile fn arglist fileonly) alist)) | 107 | (setq alist (cons (list fnfile fn arglist fileonly) alist)) |
| 106 | ;; FIXME make this more noticeable. | 108 | ;; FIXME make this more noticeable. |
| 107 | (message "Malformed declaration for `%s'" (cadr form))))) | 109 | (if form (message "Malformed declaration for `%s'" (cadr form)))))) |
| 108 | (message "%sdone" m) | 110 | (message "%sdone" m) |
| 109 | alist)) | 111 | alist)) |
| 110 | 112 | ||
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 49128552e00..a0dab93bca0 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-05-05 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | * shr.el (shr-urlify, shr-link): Still broken but at least doesn't | ||
| 4 | error out because the face is not a list. | ||
| 5 | |||
| 6 | 2011-05-05 Glenn Morris <rgm@gnu.org> | ||
| 7 | |||
| 8 | * gnus-start.el (gnus-propagate-marks): Declare. | ||
| 9 | |||
| 1 | 2011-05-04 Teodor Zlatanov <tzz@lifelogs.com> | 10 | 2011-05-04 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 11 | ||
| 3 | * registry.el (registry-reindex): Fix percentage message. | 12 | * registry.el (registry-reindex): Fix percentage message. |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index e3b0089cea9..719d0c9e472 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -1491,6 +1491,8 @@ If SCAN, request a scan of that group as well." | |||
| 1491 | ;; Return the new active info. | 1491 | ;; Return the new active info. |
| 1492 | active))))) | 1492 | active))))) |
| 1493 | 1493 | ||
| 1494 | (defvar gnus-propagate-marks) ; gnus-sum | ||
| 1495 | |||
| 1494 | (defun gnus-get-unread-articles-in-group (info active &optional update) | 1496 | (defun gnus-get-unread-articles-in-group (info active &optional update) |
| 1495 | (when (and info active) | 1497 | (when (and info active) |
| 1496 | ;; Allow the backend to update the info in the group. | 1498 | ;; Allow the backend to update the info in the group. |
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index d865b2d6087..d8f33c830c7 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el | |||
| @@ -94,7 +94,7 @@ cid: URL as the argument.") | |||
| 94 | (defface shr-link '((t (:underline t) | 94 | (defface shr-link '((t (:underline t) |
| 95 | (:foreground "yellow") | 95 | (:foreground "yellow") |
| 96 | (:background "black"))) | 96 | (:background "black"))) |
| 97 | "Font for <s> elements." | 97 | "Font for link elements." |
| 98 | :group 'shr) | 98 | :group 'shr) |
| 99 | 99 | ||
| 100 | ;;; Internal variables. | 100 | ;;; Internal variables. |
| @@ -597,7 +597,7 @@ START, and END. Note that START and END should be merkers." | |||
| 597 | :help-echo (if title (format "%s (%s)" url title) url) | 597 | :help-echo (if title (format "%s (%s)" url title) url) |
| 598 | :keymap shr-map | 598 | :keymap shr-map |
| 599 | url) | 599 | url) |
| 600 | (put-text-property start (point) 'face 'shr-link) | 600 | (put-text-property start (point) 'face '(shr-link)) |
| 601 | (put-text-property start (point) 'shr-url url)) | 601 | (put-text-property start (point) 'shr-url url)) |
| 602 | 602 | ||
| 603 | (defun shr-encode-url (url) | 603 | (defun shr-encode-url (url) |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 8c9ead479e8..53d58a70d29 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -856,15 +856,11 @@ If nil, prompt the user for a password." | |||
| 856 | :type '(choice (const :tag "Default" nil) | 856 | :type '(choice (const :tag "Default" nil) |
| 857 | string)) | 857 | string)) |
| 858 | 858 | ||
| 859 | (defcustom ange-ftp-binary-file-name-regexp | 859 | (defcustom ange-ftp-binary-file-name-regexp "" |
| 860 | (concat "TAGS\\'\\|\\.\\(?:" | ||
| 861 | (eval-when-compile | ||
| 862 | (regexp-opt '("z" "Z" "lzh" "arc" "zip" "zoo" "tar" "dvi" | ||
| 863 | "ps" "elc" "gif" "gz" "taz" "tgz"))) | ||
| 864 | "\\|EXE\\(;[0-9]+\\)?\\|[zZ]-part-..\\)\\'") | ||
| 865 | "If a file matches this regexp then it is transferred in binary mode." | 860 | "If a file matches this regexp then it is transferred in binary mode." |
| 866 | :group 'ange-ftp | 861 | :group 'ange-ftp |
| 867 | :type 'regexp) | 862 | :type 'regexp |
| 863 | :version "24.1") | ||
| 868 | 864 | ||
| 869 | (defcustom ange-ftp-gateway-host nil | 865 | (defcustom ange-ftp-gateway-host nil |
| 870 | "Name of host to use as gateway machine when local FTP isn't possible." | 866 | "Name of host to use as gateway machine when local FTP isn't possible." |
| @@ -3214,11 +3210,7 @@ system TYPE.") | |||
| 3214 | ;; What we REALLY need here is a way to determine if the mode | 3210 | ;; What we REALLY need here is a way to determine if the mode |
| 3215 | ;; of the transfer is irrelevant, i.e. we can use binary mode | 3211 | ;; of the transfer is irrelevant, i.e. we can use binary mode |
| 3216 | ;; regardless. Maybe a system-type to host-type lookup? | 3212 | ;; regardless. Maybe a system-type to host-type lookup? |
| 3217 | (binary (or (ange-ftp-binary-file filename) | 3213 | (binary (ange-ftp-binary-file filename)) |
| 3218 | (and (not (memq system-type | ||
| 3219 | '(ms-dos windows-nt))) | ||
| 3220 | (memq (ange-ftp-host-type host user) | ||
| 3221 | '(unix dumb-unix))))) | ||
| 3222 | (cmd (if append 'append 'put)) | 3214 | (cmd (if append 'append 'put)) |
| 3223 | (abbr (ange-ftp-abbreviate-filename filename)) | 3215 | (abbr (ange-ftp-abbreviate-filename filename)) |
| 3224 | ;; we need to reset `last-coding-system-used' to its | 3216 | ;; we need to reset `last-coding-system-used' to its |
| @@ -3290,9 +3282,7 @@ system TYPE.") | |||
| 3290 | (user (nth 1 parsed)) | 3282 | (user (nth 1 parsed)) |
| 3291 | (name (ange-ftp-quote-string (nth 2 parsed))) | 3283 | (name (ange-ftp-quote-string (nth 2 parsed))) |
| 3292 | (temp (ange-ftp-make-tmp-name host)) | 3284 | (temp (ange-ftp-make-tmp-name host)) |
| 3293 | (binary (or (ange-ftp-binary-file filename) | 3285 | (binary (ange-ftp-binary-file filename)) |
| 3294 | (memq (ange-ftp-host-type host user) | ||
| 3295 | '(unix dumb-unix)))) | ||
| 3296 | (abbr (ange-ftp-abbreviate-filename filename)) | 3286 | (abbr (ange-ftp-abbreviate-filename filename)) |
| 3297 | (coding-system-used last-coding-system-used) | 3287 | (coding-system-used last-coding-system-used) |
| 3298 | size) | 3288 | size) |
| @@ -3674,11 +3664,7 @@ so return the size on the remote host exactly. See RFC 3659." | |||
| 3674 | (t-name (and t-parsed (ange-ftp-quote-string (nth 2 t-parsed)))) | 3664 | (t-name (and t-parsed (ange-ftp-quote-string (nth 2 t-parsed)))) |
| 3675 | (t-abbr (ange-ftp-abbreviate-filename newname filename)) | 3665 | (t-abbr (ange-ftp-abbreviate-filename newname filename)) |
| 3676 | (binary (or (ange-ftp-binary-file filename) | 3666 | (binary (or (ange-ftp-binary-file filename) |
| 3677 | (ange-ftp-binary-file newname) | 3667 | (ange-ftp-binary-file newname))) |
| 3678 | (and (memq (ange-ftp-host-type f-host f-user) | ||
| 3679 | '(unix dumb-unix)) | ||
| 3680 | (memq (ange-ftp-host-type t-host t-user) | ||
| 3681 | '(unix dumb-unix))))) | ||
| 3682 | temp1 | 3668 | temp1 |
| 3683 | temp2) | 3669 | temp2) |
| 3684 | 3670 | ||
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index f3cfd7d058f..61e4630906d 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | (require 'tls) | 45 | (require 'tls) |
| 46 | (require 'starttls) | 46 | (require 'starttls) |
| 47 | 47 | ||
| 48 | (declare-function gnutls-negotiate "gnutls" (&rest spec)) | 48 | (declare-function gnutls-negotiate "gnutls" t t) ; defun* |
| 49 | 49 | ||
| 50 | ;;;###autoload | 50 | ;;;###autoload |
| 51 | (defun open-network-stream (name buffer host service &rest parameters) | 51 | (defun open-network-stream (name buffer host service &rest parameters) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 81e955ebbf8..cc404baef06 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -2260,8 +2260,8 @@ The method used must be an out-of-band method." | |||
| 2260 | (setq host (tramp-file-name-host v) | 2260 | (setq host (tramp-file-name-host v) |
| 2261 | port "") | 2261 | port "") |
| 2262 | (when (string-match tramp-host-with-port-regexp host) | 2262 | (when (string-match tramp-host-with-port-regexp host) |
| 2263 | (setq host (string-to-number (match-string 1 host)) | 2263 | (setq port (string-to-number (match-string 2 host)) |
| 2264 | port (string-to-number (match-string 2 host)))) | 2264 | host (string-to-number (match-string 1 host)))) |
| 2265 | 2265 | ||
| 2266 | ;; Compose copy command. | 2266 | ;; Compose copy command. |
| 2267 | (setq spec (format-spec-make | 2267 | (setq spec (format-spec-make |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 74bdc980e8b..f45273026b4 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -3042,8 +3042,6 @@ Link exprs of the form: | |||
| 3042 | 3042 | ||
| 3043 | (declare-function c-langelem-sym "cc-defs" (langelem)) | 3043 | (declare-function c-langelem-sym "cc-defs" (langelem)) |
| 3044 | (declare-function c-langelem-pos "cc-defs" (langelem)) | 3044 | (declare-function c-langelem-pos "cc-defs" (langelem)) |
| 3045 | (declare-function syntax-symbol "gud" (x)) | ||
| 3046 | (declare-function syntax-point "gud" (x)) | ||
| 3047 | 3045 | ||
| 3048 | (defun gud-find-class (f _line) | 3046 | (defun gud-find-class (f _line) |
| 3049 | "Find fully qualified class in file F at line LINE. | 3047 | "Find fully qualified class in file F at line LINE. |
diff --git a/lisp/simple.el b/lisp/simple.el index 9fd221819c5..5efb6769e17 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2170,6 +2170,9 @@ to the end of the list of defaults just after the default value." | |||
| 2170 | (defvar shell-delimiter-argument-list) | 2170 | (defvar shell-delimiter-argument-list) |
| 2171 | (defvar shell-file-name-chars) | 2171 | (defvar shell-file-name-chars) |
| 2172 | (defvar shell-file-name-quote-list) | 2172 | (defvar shell-file-name-quote-list) |
| 2173 | (defvar shell-dynamic-complete-functions) | ||
| 2174 | ;; shell requires comint. | ||
| 2175 | (defvar comint-dynamic-complete-functions) | ||
| 2173 | 2176 | ||
| 2174 | (defvar minibuffer-local-shell-command-map | 2177 | (defvar minibuffer-local-shell-command-map |
| 2175 | (let ((map (make-sparse-keymap))) | 2178 | (let ((map (make-sparse-keymap))) |
| @@ -2707,7 +2710,8 @@ support pty association, if PROGRAM is nil." | |||
| 2707 | (defvar tabulated-list-entries) | 2710 | (defvar tabulated-list-entries) |
| 2708 | (defvar tabulated-list-sort-key) | 2711 | (defvar tabulated-list-sort-key) |
| 2709 | (declare-function tabulated-list-init-header "tabulated-list" ()) | 2712 | (declare-function tabulated-list-init-header "tabulated-list" ()) |
| 2710 | (declare-function tabulated-list-print "tabulated-list" ()) | 2713 | (declare-function tabulated-list-print "tabulated-list" |
| 2714 | (&optional remember-pos)) | ||
| 2711 | 2715 | ||
| 2712 | (defvar process-menu-query-only nil) | 2716 | (defvar process-menu-query-only nil) |
| 2713 | 2717 | ||
| @@ -2788,7 +2792,8 @@ The return value is always nil." | |||
| 2788 | (setq process-menu-query-only query-only) | 2792 | (setq process-menu-query-only query-only) |
| 2789 | (list-processes--refresh) | 2793 | (list-processes--refresh) |
| 2790 | (tabulated-list-print)) | 2794 | (tabulated-list-print)) |
| 2791 | (display-buffer buffer)) | 2795 | (display-buffer buffer) |
| 2796 | nil) | ||
| 2792 | 2797 | ||
| 2793 | (defvar universal-argument-map | 2798 | (defvar universal-argument-map |
| 2794 | (let ((map (make-sparse-keymap))) | 2799 | (let ((map (make-sparse-keymap))) |
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 50f20cea779..22dac00e7e4 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el | |||
| @@ -1825,10 +1825,13 @@ For use in `add-log-current-defun-function'." | |||
| 1825 | (replace-match (cdr (assq (char-before) '((?+ . "-") (?> . "<")))))) | 1825 | (replace-match (cdr (assq (char-before) '((?+ . "-") (?> . "<")))))) |
| 1826 | ) | 1826 | ) |
| 1827 | 1827 | ||
| 1828 | (declare-function smerge-refine-subst "smerge-mode" | ||
| 1829 | (beg1 end1 beg2 end2 props &optional preproc)) | ||
| 1830 | |||
| 1828 | (defun diff-refine-hunk () | 1831 | (defun diff-refine-hunk () |
| 1829 | "Highlight changes of hunk at point at a finer granularity." | 1832 | "Highlight changes of hunk at point at a finer granularity." |
| 1830 | (interactive) | 1833 | (interactive) |
| 1831 | (eval-and-compile (require 'smerge-mode)) | 1834 | (require 'smerge-mode) |
| 1832 | (save-excursion | 1835 | (save-excursion |
| 1833 | (diff-beginning-of-hunk 'try-harder) | 1836 | (diff-beginning-of-hunk 'try-harder) |
| 1834 | (let* ((start (point)) | 1837 | (let* ((start (point)) |
diff --git a/src/ChangeLog b/src/ChangeLog index 80baa5d131a..8d4ce09e4f7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 2011-05-05 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-05-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. | 3 | * image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local. |
| 4 | 4 | ||
| @@ -113,6 +113,16 @@ | |||
| 113 | 113 | ||
| 114 | * fns.c (Frandom): Let EMACS_UINT be wider than unsigned long. | 114 | * fns.c (Frandom): Let EMACS_UINT be wider than unsigned long. |
| 115 | 115 | ||
| 116 | 2011-05-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 117 | |||
| 118 | * gnutls.c (DEF_GNUTLS_FN): | ||
| 119 | * image.c (DEF_IMGLIB_FN): Make function pointers static. | ||
| 120 | |||
| 121 | 2011-05-05 Andreas Schwab <schwab@linux-m68k.org> | ||
| 122 | |||
| 123 | * lread.c (lisp_file_lexically_bound_p): Stop scanning at end | ||
| 124 | marker. (Bug#8610) | ||
| 125 | |||
| 116 | 2011-05-05 Eli Zaretskii <eliz@gnu.org> | 126 | 2011-05-05 Eli Zaretskii <eliz@gnu.org> |
| 117 | 127 | ||
| 118 | * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]: | 128 | * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]: |
diff --git a/src/gnutls.c b/src/gnutls.c index e25ae25f64c..540bfaac25c 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -64,7 +64,7 @@ static void gnutls_log_function2 (int, const char*, const char*); | |||
| 64 | #ifdef WINDOWSNT | 64 | #ifdef WINDOWSNT |
| 65 | 65 | ||
| 66 | /* Macro for defining functions that will be loaded from the GnuTLS DLL. */ | 66 | /* Macro for defining functions that will be loaded from the GnuTLS DLL. */ |
| 67 | #define DEF_GNUTLS_FN(rettype,func,args) rettype (FAR CDECL *fn_##func)args | 67 | #define DEF_GNUTLS_FN(rettype,func,args) static rettype (FAR CDECL *fn_##func)args |
| 68 | 68 | ||
| 69 | /* Macro for loading GnuTLS functions from the library. */ | 69 | /* Macro for loading GnuTLS functions from the library. */ |
| 70 | #define LOAD_GNUTLS_FN(lib,func) { \ | 70 | #define LOAD_GNUTLS_FN(lib,func) { \ |
diff --git a/src/image.c b/src/image.c index 4e0503ac1dc..747142635af 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -1892,7 +1892,7 @@ mark_image_cache (struct image_cache *c) | |||
| 1892 | #ifdef HAVE_NTGUI | 1892 | #ifdef HAVE_NTGUI |
| 1893 | 1893 | ||
| 1894 | /* Macro for defining functions that will be loaded from image DLLs. */ | 1894 | /* Macro for defining functions that will be loaded from image DLLs. */ |
| 1895 | #define DEF_IMGLIB_FN(rettype,func,args) rettype (FAR CDECL *fn_##func)args | 1895 | #define DEF_IMGLIB_FN(rettype,func,args) static rettype (FAR CDECL *fn_##func)args |
| 1896 | 1896 | ||
| 1897 | /* Macro for loading those image functions from the library. */ | 1897 | /* Macro for loading those image functions from the library. */ |
| 1898 | #define LOAD_IMGLIB_FN(lib,func) { \ | 1898 | #define LOAD_IMGLIB_FN(lib,func) { \ |
diff --git a/src/lread.c b/src/lread.c index 7686f966db2..a6da09cf330 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -829,7 +829,7 @@ lisp_file_lexically_bound_p (Lisp_Object readcharfun) | |||
| 829 | ch = READCHAR; | 829 | ch = READCHAR; |
| 830 | 830 | ||
| 831 | i = 0; | 831 | i = 0; |
| 832 | while (ch != ':' && ch != '\n' && ch != EOF) | 832 | while (ch != ':' && ch != '\n' && ch != EOF && in_file_vars) |
| 833 | { | 833 | { |
| 834 | if (i < sizeof var - 1) | 834 | if (i < sizeof var - 1) |
| 835 | var[i++] = ch; | 835 | var[i++] = ch; |
| @@ -837,6 +837,10 @@ lisp_file_lexically_bound_p (Lisp_Object readcharfun) | |||
| 837 | ch = READCHAR; | 837 | ch = READCHAR; |
| 838 | } | 838 | } |
| 839 | 839 | ||
| 840 | /* Stop scanning if no colon was found before end marker. */ | ||
| 841 | if (!in_file_vars) | ||
| 842 | break; | ||
| 843 | |||
| 840 | while (i > 0 && (var[i - 1] == ' ' || var[i - 1] == '\t')) | 844 | while (i > 0 && (var[i - 1] == ' ' || var[i - 1] == '\t')) |
| 841 | i--; | 845 | i--; |
| 842 | var[i] = '\0'; | 846 | var[i] = '\0'; |