diff options
| author | Paul Eggert | 2011-07-14 09:18:31 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-14 09:18:31 -0700 |
| commit | 5023daec057b530a4dcd64d6fc6a3c2e36b925a5 (patch) | |
| tree | 25c6393f130ff91c0b89c0a51eceb1b38a7d38f4 | |
| parent | 5e927815391bbb3a6e25b9bd65a7c59f1a5216ef (diff) | |
| parent | 7509a874332af5ea1ce20a36f7dccd207b5090c3 (diff) | |
| download | emacs-5023daec057b530a4dcd64d6fc6a3c2e36b925a5.tar.gz emacs-5023daec057b530a4dcd64d6fc6a3c2e36b925a5.zip | |
Merge from trunk.
| -rwxr-xr-x | autogen/configure | 12 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/misc/widget.texi | 1 | ||||
| -rw-r--r-- | lisp/ChangeLog | 39 | ||||
| -rw-r--r-- | lisp/font-lock.el | 1 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/gnus/gnus-int.el | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 7 | ||||
| -rw-r--r-- | lisp/mouse.el | 4 | ||||
| -rw-r--r-- | lisp/printing.el | 2 | ||||
| -rw-r--r-- | lisp/rect.el | 11 | ||||
| -rw-r--r-- | lisp/startup.el | 6 | ||||
| -rw-r--r-- | lisp/subr.el | 9 | ||||
| -rw-r--r-- | lisp/time.el | 49 | ||||
| -rw-r--r-- | lisp/vc/diff.el | 8 | ||||
| -rw-r--r-- | lisp/window.el | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/editfns.c | 7 | ||||
| -rw-r--r-- | src/indent.c | 14 |
20 files changed, 145 insertions, 65 deletions
diff --git a/autogen/configure b/autogen/configure index a6f85b66e53..f751caec1f5 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -11140,23 +11140,23 @@ fi | |||
| 11140 | else | 11140 | else |
| 11141 | PKG_CONFIG_MIN_VERSION=0.9.0 | 11141 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11142 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 11142 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.26" >&5 | 11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5 |
| 11144 | $as_echo_n "checking for glib-2.0 >= 2.26... " >&6; } | 11144 | $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; } |
| 11145 | 11145 | ||
| 11146 | if $PKG_CONFIG --exists "glib-2.0 >= 2.26" 2>&5; then | 11146 | if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then |
| 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11148 | $as_echo "yes" >&6; } | 11148 | $as_echo "yes" >&6; } |
| 11149 | succeeded=yes | 11149 | succeeded=yes |
| 11150 | 11150 | ||
| 11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5 | 11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5 |
| 11152 | $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; } | 11152 | $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; } |
| 11153 | GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.26"|sed -e 's,///*,/,g'` | 11153 | GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'` |
| 11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5 | 11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5 |
| 11155 | $as_echo "$GSETTINGS_CFLAGS" >&6; } | 11155 | $as_echo "$GSETTINGS_CFLAGS" >&6; } |
| 11156 | 11156 | ||
| 11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5 | 11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5 |
| 11158 | $as_echo_n "checking GSETTINGS_LIBS... " >&6; } | 11158 | $as_echo_n "checking GSETTINGS_LIBS... " >&6; } |
| 11159 | GSETTINGS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.26"|sed -e 's,///*,/,g'` | 11159 | GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'` |
| 11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5 | 11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5 |
| 11161 | $as_echo "$GSETTINGS_LIBS" >&6; } | 11161 | $as_echo "$GSETTINGS_LIBS" >&6; } |
| 11162 | else | 11162 | else |
| @@ -11166,7 +11166,7 @@ $as_echo "no" >&6; } | |||
| 11166 | GSETTINGS_LIBS="" | 11166 | GSETTINGS_LIBS="" |
| 11167 | ## If we have a custom action on failure, don't print errors, but | 11167 | ## If we have a custom action on failure, don't print errors, but |
| 11168 | ## do set a variable so people can do so. | 11168 | ## do set a variable so people can do so. |
| 11169 | GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.26"` | 11169 | GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"` |
| 11170 | 11170 | ||
| 11171 | fi | 11171 | fi |
| 11172 | 11172 | ||
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 9687f474286..38cbaafa45d 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * widget.texi (Setting Up the Buffer): Remove mention of the | ||
| 4 | global keymap parent, which doesn't seem to be accurate | ||
| 5 | (bug#7045). | ||
| 6 | |||
| 1 | 2010-07-10 Kevin Ryde <user42@zip.com.au> | 7 | 2010-07-10 Kevin Ryde <user42@zip.com.au> |
| 2 | 8 | ||
| 3 | * cl.texi (For Clauses): Add destructuring example processing an | 9 | * cl.texi (For Clauses): Add destructuring example processing an |
diff --git a/doc/misc/widget.texi b/doc/misc/widget.texi index c4f5317e5a7..a778f491e76 100644 --- a/doc/misc/widget.texi +++ b/doc/misc/widget.texi | |||
| @@ -450,7 +450,6 @@ There is a standard widget keymap which you might find useful. | |||
| 450 | @findex widget-button-press | 450 | @findex widget-button-press |
| 451 | @findex widget-button-click | 451 | @findex widget-button-click |
| 452 | @defvr Const widget-keymap | 452 | @defvr Const widget-keymap |
| 453 | A keymap with the global keymap as its parent.@* | ||
| 454 | @key{TAB} and @kbd{C-@key{TAB}} are bound to @code{widget-forward} and | 453 | @key{TAB} and @kbd{C-@key{TAB}} are bound to @code{widget-forward} and |
| 455 | @code{widget-backward}, respectively. @key{RET} and @kbd{Mouse-2} | 454 | @code{widget-backward}, respectively. @key{RET} and @kbd{Mouse-2} |
| 456 | are bound to @code{widget-button-press} and | 455 | are bound to @code{widget-button-press} and |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d652931328..088323ee871 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,42 @@ | |||
| 1 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * rect.el (apply-on-rectangle): Return the point after the last | ||
| 4 | operation. | ||
| 5 | (string-rectangle): Go to the point after the last operation | ||
| 6 | (bug#7522). | ||
| 7 | |||
| 8 | * simple.el (current-kill): Clarify what | ||
| 9 | `interprogram-paste-function' does (bug#7500). | ||
| 10 | |||
| 11 | * printing.el (pr-toggle-region): Clarify the documentation | ||
| 12 | slightly (bug#7493). | ||
| 13 | |||
| 14 | * time.el (display-time-update): Allow | ||
| 15 | `display-time-mail-function' to return nil (bug#7158). Fix | ||
| 16 | suggested by Detlev Zundel. | ||
| 17 | |||
| 18 | * vc/diff.el (diff): Clarify the order the file names are read | ||
| 19 | (bug#7111). | ||
| 20 | |||
| 21 | * mouse.el (mouse-set-region): Link to `mouse-drag-copy-region' in | ||
| 22 | the doc string (bug#7015). | ||
| 23 | |||
| 24 | * font-lock.el (font-lock-maximum-decoration): Mention what | ||
| 25 | numeric levels mean (bug#6935). | ||
| 26 | |||
| 27 | * startup.el (initial-buffer-choice): Don't mention the `none' | ||
| 28 | selection, which is against policy. | ||
| 29 | |||
| 30 | 2011-07-14 Martin Rudalics <rudalics@gmx.at> | ||
| 31 | |||
| 32 | * window.el (display-buffer-normalize-special): Replace | ||
| 33 | `dedicated' by `dedicate' to dedicate window (Bug#9072). | ||
| 34 | |||
| 35 | 2011-07-14 Eli Zaretskii <eliz@gnu.org> | ||
| 36 | |||
| 37 | * subr.el (version<, version<=, version=): Mention "-CVS" and | ||
| 38 | "-12345" alpha version numbers. | ||
| 39 | |||
| 1 | 2011-07-14 Chong Yidong <cyd@stupidchicken.com> | 40 | 2011-07-14 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 41 | ||
| 3 | * bindings.el: Add advertised binding for set-mark-command | 42 | * bindings.el: Add advertised binding for set-mark-command |
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 6c76142c59d..6902ce98ab1 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -254,6 +254,7 @@ for buffers in Rmail mode, and size is irrelevant otherwise." | |||
| 254 | If nil, use the default decoration (typically the minimum available). | 254 | If nil, use the default decoration (typically the minimum available). |
| 255 | If t, use the maximum decoration available. | 255 | If t, use the maximum decoration available. |
| 256 | If a number, use that level of decoration (or if not available the maximum). | 256 | If a number, use that level of decoration (or if not available the maximum). |
| 257 | The higher the number, the more decoration is done. | ||
| 257 | If a list, each element should be a cons pair of the form (MAJOR-MODE . LEVEL), | 258 | If a list, each element should be a cons pair of the form (MAJOR-MODE . LEVEL), |
| 258 | where MAJOR-MODE is a symbol or t (meaning the default). For example: | 259 | where MAJOR-MODE is a symbol or t (meaning the default). For example: |
| 259 | ((c-mode . t) (c++-mode . 2) (t . 1)) | 260 | ((c-mode . t) (c++-mode . 2) (t . 1)) |
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f780cf7b9f0..7c887dc5450 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-07-14 Andrew Cohen <cohen@andy.bu.edu> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-request-thread): Ensure search is performed in | ||
| 4 | correct group. | ||
| 5 | |||
| 6 | * gnus-int.el (gnus-request-thread): Add group argument. | ||
| 7 | |||
| 8 | * gnus-sum.el (gnus-request-thread): Use it. | ||
| 9 | |||
| 1 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 10 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 11 | ||
| 3 | * gnus-group.el (gnus-read-ephemeral-emacs-bug-group): `debbugs-*' | 12 | * gnus-group.el (gnus-read-ephemeral-emacs-bug-group): `debbugs-*' |
diff --git a/lisp/gnus/gnus-int.el b/lisp/gnus/gnus-int.el index ef15a479892..b9b191cd09c 100644 --- a/lisp/gnus/gnus-int.el +++ b/lisp/gnus/gnus-int.el | |||
| @@ -516,11 +516,12 @@ If BUFFER, insert the article in that group." | |||
| 516 | article (gnus-group-real-name group) | 516 | article (gnus-group-real-name group) |
| 517 | (nth 1 gnus-command-method) buffer))) | 517 | (nth 1 gnus-command-method) buffer))) |
| 518 | 518 | ||
| 519 | (defun gnus-request-thread (header) | 519 | (defun gnus-request-thread (header group) |
| 520 | "Request the headers in the thread containing the article specified by HEADER." | 520 | "Request the headers in the thread containing the article specified by HEADER." |
| 521 | (let ((gnus-command-method (gnus-find-method-for-group gnus-newsgroup-name))) | 521 | (let ((gnus-command-method (gnus-find-method-for-group group))) |
| 522 | (funcall (gnus-get-function gnus-command-method 'request-thread) | 522 | (funcall (gnus-get-function gnus-command-method 'request-thread) |
| 523 | header))) | 523 | header |
| 524 | (gnus-group-real-name group)))) | ||
| 524 | 525 | ||
| 525 | (defun gnus-warp-to-article () | 526 | (defun gnus-warp-to-article () |
| 526 | "Warps from an article in a virtual group to the article in its | 527 | "Warps from an article in a virtual group to the article in its |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 798ae964460..5a817e12104 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -8970,7 +8970,7 @@ variable." | |||
| 8970 | 'list gnus-newsgroup-headers | 8970 | 'list gnus-newsgroup-headers |
| 8971 | (if (gnus-check-backend-function | 8971 | (if (gnus-check-backend-function |
| 8972 | 'request-thread gnus-newsgroup-name) | 8972 | 'request-thread gnus-newsgroup-name) |
| 8973 | (gnus-request-thread header) | 8973 | (gnus-request-thread header gnus-newsgroup-name) |
| 8974 | (let* ((last (if (numberp limit) | 8974 | (let* ((last (if (numberp limit) |
| 8975 | (min (+ (mail-header-number header) | 8975 | (min (+ (mail-header-number header) |
| 8976 | limit) | 8976 | limit) |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 43a3cbd859d..ef5bee71629 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1565,8 +1565,9 @@ textual parts.") | |||
| 1565 | (declare-function gnus-fetch-headers "gnus-sum" | 1565 | (declare-function gnus-fetch-headers "gnus-sum" |
| 1566 | (articles &optional limit force-new dependencies)) | 1566 | (articles &optional limit force-new dependencies)) |
| 1567 | 1567 | ||
| 1568 | (deffoo nnimap-request-thread (header) | 1568 | (deffoo nnimap-request-thread (header &optional group server) |
| 1569 | (let* ((id (mail-header-id header)) | 1569 | (when (nnimap-possibly-change-group group server) |
| 1570 | (let* ((id (mail-header-id header)) | ||
| 1570 | (refs (split-string | 1571 | (refs (split-string |
| 1571 | (or (mail-header-references header) | 1572 | (or (mail-header-references header) |
| 1572 | ""))) | 1573 | ""))) |
| @@ -1584,7 +1585,7 @@ textual parts.") | |||
| 1584 | (gnus-fetch-headers | 1585 | (gnus-fetch-headers |
| 1585 | (and (car result) (delete 0 (mapcar #'string-to-number | 1586 | (and (car result) (delete 0 (mapcar #'string-to-number |
| 1586 | (cdr (assoc "SEARCH" (cdr result)))))) | 1587 | (cdr (assoc "SEARCH" (cdr result)))))) |
| 1587 | nil t)))) | 1588 | nil t))))) |
| 1588 | 1589 | ||
| 1589 | (defun nnimap-possibly-change-group (group server) | 1590 | (defun nnimap-possibly-change-group (group server) |
| 1590 | (let ((open-result t)) | 1591 | (let ((open-result t)) |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 4de3e175a4a..63395619f44 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -687,7 +687,9 @@ This should be bound to a mouse click event type." | |||
| 687 | 687 | ||
| 688 | (defun mouse-set-region (click) | 688 | (defun mouse-set-region (click) |
| 689 | "Set the region to the text dragged over, and copy to kill ring. | 689 | "Set the region to the text dragged over, and copy to kill ring. |
| 690 | This should be bound to a mouse drag event." | 690 | This should be bound to a mouse drag event. |
| 691 | See the `mouse-drag-copy-region' variable to control whether this | ||
| 692 | command alters the kill ring or not." | ||
| 691 | (interactive "e") | 693 | (interactive "e") |
| 692 | (mouse-minibuffer-check click) | 694 | (mouse-minibuffer-check click) |
| 693 | (select-window (posn-window (event-start click))) | 695 | (select-window (posn-window (event-start click))) |
diff --git a/lisp/printing.el b/lisp/printing.el index 76fdeaec500..9f98c2b6e29 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -4611,7 +4611,7 @@ bottom." | |||
| 4611 | 4611 | ||
| 4612 | ;;;###autoload | 4612 | ;;;###autoload |
| 4613 | (defun pr-toggle-region () | 4613 | (defun pr-toggle-region () |
| 4614 | "Toggle auto region." | 4614 | "Toggle whether the region is automagically detected." |
| 4615 | (interactive) | 4615 | (interactive) |
| 4616 | (pr-toggle-region-menu t)) | 4616 | (pr-toggle-region-menu t)) |
| 4617 | 4617 | ||
diff --git a/lisp/rect.el b/lisp/rect.el index ad914cab7d2..0756ec3bc0a 100644 --- a/lisp/rect.el +++ b/lisp/rect.el | |||
| @@ -93,8 +93,9 @@ Point is at the end of the segment of this line within the rectangle." | |||
| 93 | "Call FUNCTION for each line of rectangle with corners at START, END. | 93 | "Call FUNCTION for each line of rectangle with corners at START, END. |
| 94 | FUNCTION is called with two arguments: the start and end columns of the | 94 | FUNCTION is called with two arguments: the start and end columns of the |
| 95 | rectangle, plus ARGS extra arguments. Point is at the beginning of line when | 95 | rectangle, plus ARGS extra arguments. Point is at the beginning of line when |
| 96 | the function is called." | 96 | the function is called. |
| 97 | (let (startcol startpt endcol endpt) | 97 | The final point after the last operation will be returned." |
| 98 | (let (startcol startpt endcol endpt final-point) | ||
| 98 | (save-excursion | 99 | (save-excursion |
| 99 | (goto-char start) | 100 | (goto-char start) |
| 100 | (setq startcol (current-column)) | 101 | (setq startcol (current-column)) |
| @@ -112,8 +113,9 @@ the function is called." | |||
| 112 | (goto-char startpt) | 113 | (goto-char startpt) |
| 113 | (while (< (point) endpt) | 114 | (while (< (point) endpt) |
| 114 | (apply function startcol endcol args) | 115 | (apply function startcol endcol args) |
| 116 | (setq final-point (point)) | ||
| 115 | (forward-line 1))) | 117 | (forward-line 1))) |
| 116 | )) | 118 | final-point)) |
| 117 | 119 | ||
| 118 | (defun delete-rectangle-line (startcol endcol fill) | 120 | (defun delete-rectangle-line (startcol endcol fill) |
| 119 | (when (= (move-to-column startcol (if fill t 'coerce)) startcol) | 121 | (when (= (move-to-column startcol (if fill t 'coerce)) startcol) |
| @@ -323,7 +325,8 @@ Called from a program, takes three args; START, END and STRING." | |||
| 323 | (or (car string-rectangle-history) "")) | 325 | (or (car string-rectangle-history) "")) |
| 324 | nil 'string-rectangle-history | 326 | nil 'string-rectangle-history |
| 325 | (car string-rectangle-history))))) | 327 | (car string-rectangle-history))))) |
| 326 | (apply-on-rectangle 'string-rectangle-line start end string t)) | 328 | (goto-char |
| 329 | (apply-on-rectangle 'string-rectangle-line start end string t))) | ||
| 327 | 330 | ||
| 328 | ;;;###autoload | 331 | ;;;###autoload |
| 329 | (defalias 'replace-rectangle 'string-rectangle) | 332 | (defalias 'replace-rectangle 'string-rectangle) |
diff --git a/lisp/startup.el b/lisp/startup.el index 66deb11623a..6953ed25ed4 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -43,14 +43,12 @@ | |||
| 43 | If the value is nil and `inhibit-startup-screen' is nil, show the | 43 | If the value is nil and `inhibit-startup-screen' is nil, show the |
| 44 | startup screen. If the value is string, visit the specified file | 44 | startup screen. If the value is string, visit the specified file |
| 45 | or directory using `find-file'. If t, open the `*scratch*' | 45 | or directory using `find-file'. If t, open the `*scratch*' |
| 46 | buffer. If `none', don't select anything, but show the | 46 | buffer." |
| 47 | buffer (if any) selected by the startup file." | ||
| 48 | :type '(choice | 47 | :type '(choice |
| 49 | (const :tag "Startup screen" nil) | 48 | (const :tag "Startup screen" nil) |
| 50 | (directory :tag "Directory" :value "~/") | 49 | (directory :tag "Directory" :value "~/") |
| 51 | (file :tag "File" :value "~/.emacs") | 50 | (file :tag "File" :value "~/.emacs") |
| 52 | (const :tag "Lisp scratch buffer" t) | 51 | (const :tag "Lisp scratch buffer" t)) |
| 53 | (const :tag "Select no buffer" 'none)) | ||
| 54 | :version "23.1" | 52 | :version "23.1" |
| 55 | :group 'initialization) | 53 | :group 'initialization) |
| 56 | 54 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index 5c890eefa29..94b28c007d1 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -4087,7 +4087,8 @@ If all LST elements are zeros or LST is nil, return zero." | |||
| 4087 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 4087 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 4088 | etc. That is, the trailing \".0\"s are insignificant. Also, version | 4088 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 4089 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 4089 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 4090 | which is higher than \"1alpha\"." | 4090 | which is higher than \"1alpha\". Also, \"-CVS\" and \"-NNN\" are treated |
| 4091 | as alpha versions." | ||
| 4091 | (version-list-< (version-to-list v1) (version-to-list v2))) | 4092 | (version-list-< (version-to-list v1) (version-to-list v2))) |
| 4092 | 4093 | ||
| 4093 | 4094 | ||
| @@ -4097,7 +4098,8 @@ which is higher than \"1alpha\"." | |||
| 4097 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 4098 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 4098 | etc. That is, the trailing \".0\"s are insignificant. Also, version | 4099 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 4099 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 4100 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 4100 | which is higher than \"1alpha\"." | 4101 | which is higher than \"1alpha\". Also, \"-CVS\" and \"-NNN\" are treated |
| 4102 | as alpha versions." | ||
| 4101 | (version-list-<= (version-to-list v1) (version-to-list v2))) | 4103 | (version-list-<= (version-to-list v1) (version-to-list v2))) |
| 4102 | 4104 | ||
| 4103 | (defun version= (v1 v2) | 4105 | (defun version= (v1 v2) |
| @@ -4106,7 +4108,8 @@ which is higher than \"1alpha\"." | |||
| 4106 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 4108 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 4107 | etc. That is, the trailing \".0\"s are insignificant. Also, version | 4109 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 4108 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 4110 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 4109 | which is higher than \"1alpha\"." | 4111 | which is higher than \"1alpha\". Also, \"-CVS\" and \"-NNN\" are treated |
| 4112 | as alpha versions." | ||
| 4110 | (version-list-= (version-to-list v1) (version-to-list v2))) | 4113 | (version-list-= (version-to-list v1) (version-to-list v2))) |
| 4111 | 4114 | ||
| 4112 | 4115 | ||
diff --git a/lisp/time.el b/lisp/time.el index 7d752c85d4d..b158ef64691 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -423,30 +423,31 @@ update which can wait for the next redisplay." | |||
| 423 | (getenv "MAIL") | 423 | (getenv "MAIL") |
| 424 | (concat rmail-spool-directory | 424 | (concat rmail-spool-directory |
| 425 | (user-login-name)))) | 425 | (user-login-name)))) |
| 426 | (mail (or (and display-time-mail-function | 426 | (mail (cond |
| 427 | (funcall display-time-mail-function)) | 427 | (display-time-mail-function |
| 428 | (and display-time-mail-directory | 428 | (funcall display-time-mail-function)) |
| 429 | (display-time-mail-check-directory)) | 429 | (display-time-mail-directory |
| 430 | (and (stringp mail-spool-file) | 430 | (display-time-mail-check-directory)) |
| 431 | (or (null display-time-server-down-time) | 431 | ((and (stringp mail-spool-file) |
| 432 | ;; If have been down for 20 min, try again. | 432 | (or (null display-time-server-down-time) |
| 433 | (> (- (nth 1 now) display-time-server-down-time) | 433 | ;; If have been down for 20 min, try again. |
| 434 | 1200) | 434 | (> (- (nth 1 now) display-time-server-down-time) |
| 435 | (and (< (nth 1 now) display-time-server-down-time) | 435 | 1200) |
| 436 | (> (- (nth 1 now) | 436 | (and (< (nth 1 now) display-time-server-down-time) |
| 437 | display-time-server-down-time) | 437 | (> (- (nth 1 now) |
| 438 | -64336))) | 438 | display-time-server-down-time) |
| 439 | (let ((start-time (current-time))) | 439 | -64336)))) |
| 440 | (prog1 | 440 | (let ((start-time (current-time))) |
| 441 | (display-time-file-nonempty-p mail-spool-file) | 441 | (prog1 |
| 442 | (if (> (- (nth 1 (current-time)) | 442 | (display-time-file-nonempty-p mail-spool-file) |
| 443 | (nth 1 start-time)) | 443 | (if (> (- (nth 1 (current-time)) |
| 444 | 20) | 444 | (nth 1 start-time)) |
| 445 | ;; Record that mail file is not accessible. | 445 | 20) |
| 446 | (setq display-time-server-down-time | 446 | ;; Record that mail file is not accessible. |
| 447 | (nth 1 (current-time))) | 447 | (setq display-time-server-down-time |
| 448 | ;; Record that mail file is accessible. | 448 | (nth 1 (current-time))) |
| 449 | (setq display-time-server-down-time nil))))))) | 449 | ;; Record that mail file is accessible. |
| 450 | (setq display-time-server-down-time nil))))))) | ||
| 450 | (24-hours (substring time 11 13)) | 451 | (24-hours (substring time 11 13)) |
| 451 | (hour (string-to-number 24-hours)) | 452 | (hour (string-to-number 24-hours)) |
| 452 | (12-hours (int-to-string (1+ (% (+ hour 11) 12)))) | 453 | (12-hours (int-to-string (1+ (% (+ hour 11) 12)))) |
diff --git a/lisp/vc/diff.el b/lisp/vc/diff.el index 9655ce64a99..fd24558da6a 100644 --- a/lisp/vc/diff.el +++ b/lisp/vc/diff.el | |||
| @@ -76,10 +76,10 @@ delete the temporary files so named." | |||
| 76 | ;;;###autoload | 76 | ;;;###autoload |
| 77 | (defun diff (old new &optional switches no-async) | 77 | (defun diff (old new &optional switches no-async) |
| 78 | "Find and display the differences between OLD and NEW files. | 78 | "Find and display the differences between OLD and NEW files. |
| 79 | When called interactively, read OLD and NEW using the minibuffer; | 79 | When called interactively, read NEW, then OLD, using the |
| 80 | the default for NEW is the current buffer's file name, and the | 80 | minibuffer. The default for NEW is the current buffer's file |
| 81 | default for OLD is a backup file for NEW, if one exists. | 81 | name, and the default for OLD is a backup file for NEW, if one |
| 82 | If NO-ASYNC is non-nil, call diff synchronously. | 82 | exists. If NO-ASYNC is non-nil, call diff synchronously. |
| 83 | 83 | ||
| 84 | When called interactively with a prefix argument, prompt | 84 | When called interactively with a prefix argument, prompt |
| 85 | interactively for diff switches. Otherwise, the switches | 85 | interactively for diff switches. Otherwise, the switches |
diff --git a/lisp/window.el b/lisp/window.el index 593fa14d215..0302a672521 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5317,12 +5317,12 @@ user preferences expressed in `display-buffer-alist'." | |||
| 5317 | (unless display-buffer-mark-dedicated | 5317 | (unless display-buffer-mark-dedicated |
| 5318 | ;; Don't make anything created above dedicated unless requested. | 5318 | ;; Don't make anything created above dedicated unless requested. |
| 5319 | ;; Otherwise the dedication request below gets in our way. | 5319 | ;; Otherwise the dedication request below gets in our way. |
| 5320 | '((dedicated . nil))) | 5320 | '((dedicate . nil))) |
| 5321 | `((pop-up-frame t) | 5321 | `((pop-up-frame t) |
| 5322 | ,(append '(pop-up-frame-alist) | 5322 | ,(append '(pop-up-frame-alist) |
| 5323 | (when (listp args) args) | 5323 | (when (listp args) args) |
| 5324 | special-display-frame-alist) | 5324 | special-display-frame-alist) |
| 5325 | (dedicated . t)))))) | 5325 | (dedicate . t)))))) |
| 5326 | 5326 | ||
| 5327 | (defun display-buffer-normalize-default (buffer-or-name) | 5327 | (defun display-buffer-normalize-default (buffer-or-name) |
| 5328 | "Subroutine of `display-buffer-normalize-specifiers'. | 5328 | "Subroutine of `display-buffer-normalize-specifiers'. |
diff --git a/src/ChangeLog b/src/ChangeLog index f1670d1db06..e0de5edda9c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -119,7 +119,7 @@ | |||
| 119 | * bidi.c: Integer signedness and overflow fixes. | 119 | * bidi.c: Integer signedness and overflow fixes. |
| 120 | (bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state) | 120 | (bidi_cache_idx, bidi_cache_last_idx, bidi_cache_fetch_state) |
| 121 | (bidi_cache_search, bidi_cache_find_level_change) | 121 | (bidi_cache_search, bidi_cache_find_level_change) |
| 122 | p (bidi_cache_iterator_state, bidi_cache_find) | 122 | (bidi_cache_iterator_state, bidi_cache_find) |
| 123 | (bidi_find_other_level_edge, bidi_dump_cached_states): | 123 | (bidi_find_other_level_edge, bidi_dump_cached_states): |
| 124 | Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead. | 124 | Don't arbitrarily limit cache indexes to int; use ptrdiff_t instead. |
| 125 | (bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer | 125 | (bidi_cache_size): Use ptrdiff_t rather than size_t, as we prefer |
| @@ -193,6 +193,16 @@ p (bidi_cache_iterator_state, bidi_cache_find) | |||
| 193 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally | 193 | Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally |
| 194 | well either way, and we prefer signed to unsigned. | 194 | well either way, and we prefer signed to unsigned. |
| 195 | 195 | ||
| 196 | 2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 197 | |||
| 198 | * editfns.c (Fdelete_region): Clarify the use of the named | ||
| 199 | parameters (bug#6788). | ||
| 200 | |||
| 201 | 2011-07-14 Martin Rudalics <rudalics@gmx.at> | ||
| 202 | |||
| 203 | * indent.c (Fvertical_motion): Set and restore w->pointm when | ||
| 204 | saving and restoring the window's buffer (Bug#9006). | ||
| 205 | |||
| 196 | 2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | 206 | 2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 197 | 207 | ||
| 198 | * editfns.c (Fstring_to_char): Clarify just what is returned | 208 | * editfns.c (Fstring_to_char): Clarify just what is returned |
diff --git a/src/editfns.c b/src/editfns.c index 6aba319d5b2..18fefa5e3b5 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3160,10 +3160,9 @@ It returns the number of characters changed. */) | |||
| 3160 | } | 3160 | } |
| 3161 | 3161 | ||
| 3162 | DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r", | 3162 | DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r", |
| 3163 | doc: /* Delete the text between point and mark. | 3163 | doc: /* Delete the text between START and END. |
| 3164 | 3164 | If called interactively, delete the region between point and mark. | |
| 3165 | When called from a program, expects two arguments, | 3165 | This command deletes buffer text without modifying the kill ring. */) |
| 3166 | positions (integers or markers) specifying the stretch to be deleted. */) | ||
| 3167 | (Lisp_Object start, Lisp_Object end) | 3166 | (Lisp_Object start, Lisp_Object end) |
| 3168 | { | 3167 | { |
| 3169 | validate_region (&start, &end); | 3168 | validate_region (&start, &end); |
diff --git a/src/indent.c b/src/indent.c index 5c5966175aa..02eeb7f17d4 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1985,7 +1985,8 @@ whether or not it is currently displayed in some window. */) | |||
| 1985 | struct text_pos pt; | 1985 | struct text_pos pt; |
| 1986 | struct window *w; | 1986 | struct window *w; |
| 1987 | Lisp_Object old_buffer; | 1987 | Lisp_Object old_buffer; |
| 1988 | struct gcpro gcpro1; | 1988 | EMACS_INT old_charpos, old_bytepos; |
| 1989 | struct gcpro gcpro1, gcpro2, gcpro3; | ||
| 1989 | Lisp_Object lcols = Qnil; | 1990 | Lisp_Object lcols = Qnil; |
| 1990 | double cols IF_LINT (= 0); | 1991 | double cols IF_LINT (= 0); |
| 1991 | 1992 | ||
| @@ -2005,12 +2006,16 @@ whether or not it is currently displayed in some window. */) | |||
| 2005 | w = XWINDOW (window); | 2006 | w = XWINDOW (window); |
| 2006 | 2007 | ||
| 2007 | old_buffer = Qnil; | 2008 | old_buffer = Qnil; |
| 2008 | GCPRO1 (old_buffer); | 2009 | GCPRO3 (old_buffer, old_charpos, old_bytepos); |
| 2009 | if (XBUFFER (w->buffer) != current_buffer) | 2010 | if (XBUFFER (w->buffer) != current_buffer) |
| 2010 | { | 2011 | { |
| 2011 | /* Set the window's buffer temporarily to the current buffer. */ | 2012 | /* Set the window's buffer temporarily to the current buffer. */ |
| 2012 | old_buffer = w->buffer; | 2013 | old_buffer = w->buffer; |
| 2014 | old_charpos = XMARKER (w->pointm)->charpos; | ||
| 2015 | old_bytepos = XMARKER (w->pointm)->bytepos; | ||
| 2013 | XSETBUFFER (w->buffer, current_buffer); | 2016 | XSETBUFFER (w->buffer, current_buffer); |
| 2017 | set_marker_both | ||
| 2018 | (w->pointm, w->buffer, BUF_PT (current_buffer), BUF_PT_BYTE (current_buffer)); | ||
| 2014 | } | 2019 | } |
| 2015 | 2020 | ||
| 2016 | if (noninteractive) | 2021 | if (noninteractive) |
| @@ -2131,7 +2136,10 @@ whether or not it is currently displayed in some window. */) | |||
| 2131 | } | 2136 | } |
| 2132 | 2137 | ||
| 2133 | if (BUFFERP (old_buffer)) | 2138 | if (BUFFERP (old_buffer)) |
| 2134 | w->buffer = old_buffer; | 2139 | { |
| 2140 | w->buffer = old_buffer; | ||
| 2141 | set_marker_both (w->pointm, w->buffer, old_charpos, old_bytepos); | ||
| 2142 | } | ||
| 2135 | 2143 | ||
| 2136 | RETURN_UNGCPRO (make_number (it.vpos)); | 2144 | RETURN_UNGCPRO (make_number (it.vpos)); |
| 2137 | } | 2145 | } |