aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2016-03-03 23:52:27 -0800
committerJohn Wiegley2016-03-03 23:52:27 -0800
commit68fa05fd936aeb5ed4d39a48c570b1d4c29e8f9c (patch)
treed89797f701d48ac631cd7afb6db6fc47163ea9a9
parentb6b565b4a1d0fedede8dbd325af1d4c63ec5ec58 (diff)
parente6a381956048113f00ef08340e6f31df93ee0158 (diff)
downloademacs-68fa05fd936aeb5ed4d39a48c570b1d4c29e8f9c.tar.gz
emacs-68fa05fd936aeb5ed4d39a48c570b1d4c29e8f9c.zip
Merge from origin/emacs-25
e6a3819 Update HISTORY section in readme for the NextStep interface. f67f1ed ; * doc/lispref/modes.texi (Font Lock Basics): Minor rewording. 7c81a0b Improve documentation of 'save-place-mode' cab3f0a Allocate glyph matrices for the initial frame e01c72f Fix white space in last checkin 370eb67 Make `insert-pair' always leave the cursor where documented b594393 etc/NEWS: Mention the new second parameter to `package-install'
-rw-r--r--doc/lispref/modes.texi18
-rw-r--r--etc/NEWS13
-rw-r--r--lisp/emacs-lisp/lisp.el7
-rw-r--r--lisp/saveplace.el2
-rw-r--r--nextstep/README13
-rw-r--r--src/dispnew.c2
-rw-r--r--src/frame.c3
7 files changed, 40 insertions, 18 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 66f7a352023..52cc8f86bcf 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -2511,12 +2511,12 @@ Search-based fontification happens second.
2511 2511
2512 The Font Lock functionality is based on several basic functions. 2512 The Font Lock functionality is based on several basic functions.
2513Each of these calls the function specified by the corresponding 2513Each of these calls the function specified by the corresponding
2514variable. This indirection allows major modes to modify the way 2514variable. This indirection allows major and minor modes to modify the
2515fontification works in the buffers of that mode, and even use the Font 2515way fontification works in the buffers of that mode, and even use the
2516Lock mechanisms for features that have nothing to do with 2516Font Lock mechanisms for features that have nothing to do with
2517fontification. (This is why the description below says ``should'' 2517fontification. (This is why the description below says ``should''
2518when it describes what the functions do: the major mode can customize 2518when it describes what the functions do: the mode can customize the
2519the values of the corresponding variables to do something entirely 2519values of the corresponding variables to do something entirely
2520different.) The variables mentioned below are described in @ref{Other 2520different.) The variables mentioned below are described in @ref{Other
2521Font Lock Variables}. 2521Font Lock Variables}.
2522 2522
@@ -2563,10 +2563,10 @@ variable. The value assigned to this variable is used, if and when Font
2563Lock mode is enabled, to set all the other variables. 2563Lock mode is enabled, to set all the other variables.
2564 2564
2565@defvar font-lock-defaults 2565@defvar font-lock-defaults
2566This variable is set by major modes to specify how to fontify text in 2566This variable is set by modes to specify how to fontify text in that
2567that mode. It automatically becomes buffer-local when set. If its 2567mode. It automatically becomes buffer-local when set. If its value
2568value is @code{nil}, Font Lock mode does no highlighting, and you can 2568is @code{nil}, Font Lock mode does no highlighting, and you can use
2569use the @samp{Faces} menu (under @samp{Edit} and then @samp{Text 2569the @samp{Faces} menu (under @samp{Edit} and then @samp{Text
2570Properties} in the menu bar) to assign faces explicitly to text in the 2570Properties} in the menu bar) to assign faces explicitly to text in the
2571buffer. 2571buffer.
2572 2572
diff --git a/etc/NEWS b/etc/NEWS
index cf09350d173..8c7f4942ac5 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -588,7 +588,13 @@ additionally need to add `getSelection' to `xterm-extra-capabilities'.
588*** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it). 588*** `xterm-mouse-mode' now supports mouse-tracking (if your xterm supports it).
589 589
590--- 590---
591** The `save-place' variable is replaced by `save-place-mode'. 591** To turn on `save-place' mode globally, you must call `(save-place-mode 1)'.
592In order to have the last place in every file saved it is no longer
593sufficient to load the saveplace library and set the default value of
594`save-place' to non-nil. You must explicitly call the function
595`save-place-mode' with a positive argument instead. The `save-place'
596variable is now an obsolete alias for `save-place-mode', which
597replaces it.
592 598
593** ERC 599** ERC
594 600
@@ -703,6 +709,11 @@ dependencies). This variable can also be manually customized.
703packages from `package-selected-packages' which are currently missing. 709packages from `package-selected-packages' which are currently missing.
704 710
705--- 711---
712*** `package-install' function now takes a DONT-SELECT argument. If
713this function is called interactively or if DONT-SELECT is nil, add the
714package being installed to `package-selected-packages'.
715
716---
706*** New command `package-autoremove' removes all packages which were 717*** New command `package-autoremove' removes all packages which were
707installed strictly as dependencies but are no longer needed. 718installed strictly as dependencies but are no longer needed.
708 719
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
index 3540fd14261..764d01ce6db 100644
--- a/lisp/emacs-lisp/lisp.el
+++ b/lisp/emacs-lisp/lisp.el
@@ -618,8 +618,11 @@ This command assumes point is not in a string or comment."
618 (if (and open close) 618 (if (and open close)
619 (if (and transient-mark-mode mark-active) 619 (if (and transient-mark-mode mark-active)
620 (progn 620 (progn
621 (save-excursion (goto-char (region-end)) (insert close)) 621 (save-excursion
622 (save-excursion (goto-char (region-beginning)) (insert open))) 622 (goto-char (region-end))
623 (insert close))
624 (goto-char (region-beginning))
625 (insert open))
623 (if arg (setq arg (prefix-numeric-value arg)) 626 (if arg (setq arg (prefix-numeric-value arg))
624 (setq arg 0)) 627 (setq arg 0))
625 (cond ((> arg 0) (skip-chars-forward " \t")) 628 (cond ((> arg 0) (skip-chars-forward " \t"))
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index c9148dcfc50..c27df150248 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -155,7 +155,7 @@ the argument is positive.
155To save places automatically in all files, put this in your init 155To save places automatically in all files, put this in your init
156file: 156file:
157 157
158\(setq-default save-place t)" 158\(save-place-mode 1)"
159 (interactive "P") 159 (interactive "P")
160 (if (not (or buffer-file-name (and (derived-mode-p 'dired-mode) 160 (if (not (or buffer-file-name (and (derived-mode-p 'dired-mode)
161 (boundp 'dired-subdir-alist) 161 (boundp 'dired-subdir-alist)
diff --git a/nextstep/README b/nextstep/README
index c16d55b35b9..7724afa43bf 100644
--- a/nextstep/README
+++ b/nextstep/README
@@ -8,10 +8,15 @@ NextStep (NS), including OS X (Mac) and GNUstep, using the Cocoa API.
8 8
9 HISTORY 9 HISTORY
10 10
11Up to Emacs 22, the OS X interface was implemented using the C-based 11
12Carbon API. Starting with Emacs 23, the interface was rewritten in 12The Nextstep (NS) interface of GNU Emacs was originally written in
13Objective-C using the Cocoa API. Meanwhile, the Carbon interface has 131994 for NeXTSTEP systems running Emacs 19 and subsequently ported to
14been maintained independently under the name "mac". 14OpenStep and then Rhapsody, which became Mac OS X. In 2004 it was
15adapted to GNUstep, a free OpenStep implementation, and in 2008 it was
16merged to the GNU Emacs trunk and released with Emacs 23. Around the
17same time a separate Mac-only port using the Carbon APIs and
18descending from a 2001 MacOS 8/9 port of Emacs 21 was removed. (It
19remains available externally under the name "mac".)
15 20
16 21
17 OVERVIEW OF COCOA AND OBJECTIVE-C 22 OVERVIEW OF COCOA AND OBJECTIVE-C
diff --git a/src/dispnew.c b/src/dispnew.c
index fe07f793cb5..b05356a3b64 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -681,7 +681,7 @@ void
681clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end) 681clear_glyph_matrix_rows (struct glyph_matrix *matrix, int start, int end)
682{ 682{
683 eassert (start <= end); 683 eassert (start <= end);
684 eassert (start >= 0 && start < matrix->nrows); 684 eassert (start >= 0 && start <= matrix->nrows);
685 eassert (end >= 0 && end <= matrix->nrows); 685 eassert (end >= 0 && end <= matrix->nrows);
686 686
687 for (; start < end; ++start) 687 for (; start < end; ++start)
diff --git a/src/frame.c b/src/frame.c
index df473aebc21..fd9f3ce0203 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -865,6 +865,9 @@ make_initial_frame (void)
865 /* The default value of menu-bar-mode is t. */ 865 /* The default value of menu-bar-mode is t. */
866 set_menu_bar_lines (f, make_number (1), Qnil); 866 set_menu_bar_lines (f, make_number (1), Qnil);
867 867
868 /* Allocate glyph matrices. */
869 adjust_frame_glyphs (f);
870
868 if (!noninteractive) 871 if (!noninteractive)
869 init_frame_faces (f); 872 init_frame_faces (f);
870 873