aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-07-16 13:06:12 -0400
committerGlenn Morris2014-07-16 13:06:12 -0400
commit02a7e500e85ffe42a352a9e0c1fddd1ed6a67658 (patch)
treeeeac0cbcf4d0a6f0896e544ff84eb5c30e652790
parent70f8097ea2b81fc6624453cf21720f1a1f617862 (diff)
parent61dcf9bc85b309e1fa052eb1e76698d4789f7f72 (diff)
downloademacs-02a7e500e85ffe42a352a9e0c1fddd1ed6a67658.tar.gz
emacs-02a7e500e85ffe42a352a9e0c1fddd1ed6a67658.zip
Merge from emacs-24; up to 2014-06-23T06:25:47Z!rgm@gnu.org
-rw-r--r--doc/lispintro/ChangeLog5
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi10
-rw-r--r--etc/TODO7
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/bindings.el12
-rw-r--r--lisp/desktop.el11
-rw-r--r--lisp/vc/vc-dispatcher.el9
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c8
9 files changed, 63 insertions, 18 deletions
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog
index 1ac7258e85a..70d7767635f 100644
--- a/doc/lispintro/ChangeLog
+++ b/doc/lispintro/ChangeLog
@@ -1,3 +1,8 @@
12014-07-16 Álvar Jesús Ibeas Martín <alvar.ibeas@unican.es> (tiny change)
2
3 * emacs-lisp-intro.texi (Variables, Buffer Names, if & or)
4 (Symbols as Chest, fwd-para while): Fix typos.
5
12014-07-03 Glenn Morris <rgm@gnu.org> 62014-07-03 Glenn Morris <rgm@gnu.org>
2 7
3 * emacs-lisp-intro.texi (Note for Novices, Finding More, Conclusion): 8 * emacs-lisp-intro.texi (Note for Novices, Finding More, Conclusion):
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index 7ff91758670..f915d0da8ab 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -1700,7 +1700,7 @@ Another way to think about this is to imagine a symbol as being a chest
1700of drawers. The function definition is put in one drawer, the value in 1700of drawers. The function definition is put in one drawer, the value in
1701another, and so on. What is put in the drawer holding the value can be 1701another, and so on. What is put in the drawer holding the value can be
1702changed without affecting the contents of the drawer holding the 1702changed without affecting the contents of the drawer holding the
1703function definition, and vice-verse. 1703function definition, and vice versa.
1704 1704
1705@menu 1705@menu
1706* fill-column Example:: 1706* fill-column Example::
@@ -2653,7 +2653,7 @@ functions; without the parentheses, the interpreter would attempt to
2653evaluate the symbols as variables. @xref{Variables}.) 2653evaluate the symbols as variables. @xref{Variables}.)
2654 2654
2655In spite of the distinction between files and buffers, you will often 2655In spite of the distinction between files and buffers, you will often
2656find that people refer to a file when they mean a buffer and vice-verse. 2656find that people refer to a file when they mean a buffer and vice versa.
2657Indeed, most people say, ``I am editing a file,'' rather than saying, 2657Indeed, most people say, ``I am editing a file,'' rather than saying,
2658``I am editing a buffer which I will soon save to a file.'' It is 2658``I am editing a buffer which I will soon save to a file.'' It is
2659almost always clear from context what people mean. When dealing with 2659almost always clear from context what people mean. When dealing with
@@ -5756,7 +5756,7 @@ so the true-or-false-test looks like this:
5756@noindent 5756@noindent
5757@code{not} is a function that returns true if its argument is false 5757@code{not} is a function that returns true if its argument is false
5758and false if its argument is true. So if @code{(bufferp buffer)} 5758and false if its argument is true. So if @code{(bufferp buffer)}
5759returns true, the @code{not} expression returns false and vice-verse: 5759returns true, the @code{not} expression returns false and vice versa:
5760what is ``not true'' is false and what is ``not false'' is true. 5760what is ``not true'' is false and what is ``not false'' is true.
5761 5761
5762Using this test, the @code{if} expression works as follows: when the 5762Using this test, the @code{if} expression works as follows: when the
@@ -9805,7 +9805,7 @@ In an earlier section, I suggested that you might imagine a symbol as
9805being a chest of drawers. The function definition is put in one 9805being a chest of drawers. The function definition is put in one
9806drawer, the value in another, and so on. What is put in the drawer 9806drawer, the value in another, and so on. What is put in the drawer
9807holding the value can be changed without affecting the contents of the 9807holding the value can be changed without affecting the contents of the
9808drawer holding the function definition, and vice-verse. 9808drawer holding the function definition, and vice versa.
9809 9809
9810Actually, what is put in each drawer is the address of the value or 9810Actually, what is put in each drawer is the address of the value or
9811function definition. It is as if you found an old chest in the attic, 9811function definition. It is as if you found an old chest in the attic,
@@ -13235,7 +13235,7 @@ Consider what happens when there is no fill prefix.
13235@noindent 13235@noindent
13236This @code{while} loop has us searching forward for 13236This @code{while} loop has us searching forward for
13237@code{sp-parstart}, which is the combination of possible whitespace 13237@code{sp-parstart}, which is the combination of possible whitespace
13238with a the local value of the start of a paragraph or of a paragraph 13238with the local value of the start of a paragraph or of a paragraph
13239separator. (The latter two are within an expression starting 13239separator. (The latter two are within an expression starting
13240@code{\(?:} so that they are not referenced by the 13240@code{\(?:} so that they are not referenced by the
13241@code{match-beginning} function.) 13241@code{match-beginning} function.)
diff --git a/etc/TODO b/etc/TODO
index 7aaed300091..cbf8336230e 100644
--- a/etc/TODO
+++ b/etc/TODO
@@ -62,8 +62,7 @@ suitable for anyone from beginners to experts.
62 62
63** Convert modes that use view-mode to be derived from special-mode instead. 63** Convert modes that use view-mode to be derived from special-mode instead.
64 64
65** Major modes should have a menu entry. Examples of modes that do 65** Major modes should have a menu entry.
66not have one at the moment and probably should: text-mode, inferior-lisp-mode.
67 66
68** Check if all items on the mode-line have a suitable tooltip for all modes. 67** Check if all items on the mode-line have a suitable tooltip for all modes.
69 68
@@ -141,7 +140,9 @@ for users to customize.
141 using a heuristic of some kind? 140 using a heuristic of some kind?
142 141
143** Define recompute-arg and recompute-arg-if for fix_command to use. 142** Define recompute-arg and recompute-arg-if for fix_command to use.
144 See rms message of 11 Dec 05. 143 See rms message of 11 Dec 05 in
144 http://lists.gnu.org/archive/html/emacs-pretest-bug/2005-12/msg00165.html,
145 and the rest of that discussion.
145 146
146** Height returned by frame-parameter ... and height given to 147** Height returned by frame-parameter ... and height given to
147 make-frame does not mean the same thing. The former includes menu and 148 make-frame does not mean the same thing. The former includes menu and
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 91523424d5c..ac591963c0f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12014-07-16 Glenn Morris <rgm@gnu.org>
2
3 * desktop.el (after-init-hook): Disable startup frame restoration
4 in non-graphical situations. (Bug#17693)
5
6 * vc/vc-dispatcher.el (vc-log-edit): Do set up the log buffer
7 if it was "empty", or used for a different set of files. (Bug#17884)
8
92014-07-16 Eli Zaretskii <eliz@gnu.org>
10
11 * bindings.el (mode-line-remote): If default-directory is not a
12 string, don't call file-remote-p on it; instead state in the
13 help-echo that it is nil. (Bug#17986)
14
12014-07-14 Daniel Colascione <dancol@dancol.org> 152014-07-14 Daniel Colascione <dancol@dancol.org>
2 16
3 * progmodes/cc-langs.el: Change comments from `cl-macroexpand-all' 17 * progmodes/cc-langs.el: Change comments from `cl-macroexpand-all'
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 59aa3dfb3d3..911ab63e8d0 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -229,11 +229,13 @@ mnemonics of the following coding systems:
229 'help-echo (purecopy (lambda (window _object _point) 229 'help-echo (purecopy (lambda (window _object _point)
230 (format "%s" 230 (format "%s"
231 (with-selected-window window 231 (with-selected-window window
232 (concat 232 (if (stringp default-directory)
233 (if (file-remote-p default-directory) 233 (concat
234 "Current directory is remote: " 234 (if (file-remote-p default-directory)
235 "Current directory is local: ") 235 "Current directory is remote: "
236 default-directory))))))) 236 "Current directory is local: ")
237 default-directory)
238 "Current directory is nil")))))))
237 "Mode line construct to indicate a remote buffer.") 239 "Mode line construct to indicate a remote buffer.")
238;;;###autoload 240;;;###autoload
239(put 'mode-line-remote 'risky-local-variable t) 241(put 'mode-line-remote 'risky-local-variable t)
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 12207f3cdac..40e6b364e45 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -1516,8 +1516,15 @@ If there are no buffers left to create, kill the timer."
1516 (setq command-line-args (delete key command-line-args)) 1516 (setq command-line-args (delete key command-line-args))
1517 (desktop-save-mode 0))) 1517 (desktop-save-mode 0)))
1518 (when desktop-save-mode 1518 (when desktop-save-mode
1519 (desktop-read) 1519 ;; People don't expect emacs -nw, or --daemon,
1520 (setq inhibit-startup-screen t)))) 1520 ;; to create graphical frames (bug#17693).
1521 ;; TODO perhaps there should be a separate value
1522 ;; for desktop-restore-frames to control this startup behavior?
1523 (let ((desktop-restore-frames (and desktop-restore-frames
1524 initial-window-system
1525 (not (daemonp)))))
1526 (desktop-read)
1527 (setq inhibit-startup-screen t)))))
1521 1528
1522;; So we can restore vc-dir buffers. 1529;; So we can restore vc-dir buffers.
1523(autoload 'vc-dir-mode "vc-dir" nil t) 1530(autoload 'vc-dir-mode "vc-dir" nil t)
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index 0445891ed55..4fd9691d2a2 100644
--- a/lisp/vc/vc-dispatcher.el
+++ b/lisp/vc/vc-dispatcher.el
@@ -591,12 +591,19 @@ NOT-URGENT means it is ok to continue if the user says not to save."
591 591
592;; Set up key bindings for use while editing log messages 592;; Set up key bindings for use while editing log messages
593 593
594(declare-function log-edit-empty-buffer-p "log-edit" ())
595
594(defun vc-log-edit (fileset mode backend) 596(defun vc-log-edit (fileset mode backend)
595 "Set up `log-edit' for use on FILE." 597 "Set up `log-edit' for use on FILE."
596 (setq default-directory 598 (setq default-directory
597 (buffer-local-value 'default-directory vc-parent-buffer)) 599 (buffer-local-value 'default-directory vc-parent-buffer))
600 (require 'log-edit)
598 (log-edit 'vc-finish-logentry 601 (log-edit 'vc-finish-logentry
599 (= (point-min) (point-max)) 602 ;; Setup a new log message if the log buffer is "empty",
603 ;; or was previously used for a different set of files.
604 (or (log-edit-empty-buffer-p)
605 (and (local-variable-p 'vc-log-fileset)
606 (not (equal vc-log-fileset fileset))))
600 `((log-edit-listfun . (lambda () 607 `((log-edit-listfun . (lambda ()
601 ;; FIXME: Should expand the list 608 ;; FIXME: Should expand the list
602 ;; for directories. 609 ;; for directories.
diff --git a/src/ChangeLog b/src/ChangeLog
index 000ddf2d877..1ffd1af5af3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-07-16 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (decode_mode_spec): Call file-remote-p on the current
4 buffer's default-directory only if it is a string. (Bug#17986)
5
12014-07-16 Dmitry Antipov <dmantipov@yandex.ru> 62014-07-16 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 More precise control over values of some buffer-local variables. 8 More precise control over values of some buffer-local variables.
diff --git a/src/xdisp.c b/src/xdisp.c
index b83a2855927..f1e01146e9f 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -22889,8 +22889,12 @@ decode_mode_spec (struct window *w, register int c, int field_width,
22889 case '@': 22889 case '@':
22890 { 22890 {
22891 ptrdiff_t count = inhibit_garbage_collection (); 22891 ptrdiff_t count = inhibit_garbage_collection ();
22892 Lisp_Object val = call1 (intern ("file-remote-p"), 22892 Lisp_Object curdir = BVAR (current_buffer, directory);
22893 BVAR (current_buffer, directory)); 22893 Lisp_Object val = Qnil;
22894
22895 if (STRINGP (curdir))
22896 val = call1 (intern ("file-remote-p"), curdir);
22897
22894 unbind_to (count, Qnil); 22898 unbind_to (count, Qnil);
22895 22899
22896 if (NILP (val)) 22900 if (NILP (val))