aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2016-06-19 00:54:28 +0200
committerPaul Eggert2016-06-19 00:54:28 +0200
commita985d2b09bb88f31b27b02c3131cb34c5879d767 (patch)
tree2fa504710c533f7f9557987ba14b5b1747a9b851
parentf01684313faa9803ddc69e71b66d9a469f955348 (diff)
parentd1efbafdf2cad59b80981d18bb7c6cfdf4d44850 (diff)
downloademacs-a985d2b09bb88f31b27b02c3131cb34c5879d767.tar.gz
emacs-a985d2b09bb88f31b27b02c3131cb34c5879d767.zip
Merge from origin/emacs-25
d1efbaf Fix documentation of completion functions 65c96cc Clarify documentation of 'font-lock-maximum-decoration' 2ad3d01 * doc/misc/cl.texi (Usage): Add some more details. b49cb0a Fbackward_prefix_chars: stay within buffer bounds
-rw-r--r--doc/emacs/display.texi12
-rw-r--r--doc/lispref/minibuf.texi4
-rw-r--r--doc/misc/cl.texi5
-rw-r--r--src/syntax.c5
4 files changed, 19 insertions, 7 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 3f5aac1c2ff..738d72d046a 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -853,9 +853,15 @@ to alter the amount of fontification applied by Font Lock mode, for
853major modes that support this feature. The value should be a number 853major modes that support this feature. The value should be a number
854(with 1 representing a minimal amount of fontification; some modes 854(with 1 representing a minimal amount of fontification; some modes
855support levels as high as 3); or @code{t}, meaning ``as high as 855support levels as high as 3); or @code{t}, meaning ``as high as
856possible'' (the default). You can also specify different numbers for 856possible'' (the default). To be effective for a given file buffer,
857particular major modes; for example, to use level 1 for C/C++ modes, 857the customization of @code{font-lock-maximum-decoration} should be
858and the default level otherwise, use the value 858done @emph{before} the file is visited; if you already have the file
859visited in a buffer when you customize this variable, kill the buffer
860and visit the file again after the customization.
861
862You can also specify different numbers for particular major modes; for
863example, to use level 1 for C/C++ modes, and the default level
864otherwise, use the value
859 865
860@example 866@example
861'((c-mode . 1) (c++-mode . 1))) 867'((c-mode . 1) (c++-mode . 1)))
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index e6d8f8a4c79..8d5347556e4 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -750,8 +750,8 @@ list contains elements of any other type, those are ignored.
750If @var{collection} is an obarray (@pxref{Creating Symbols}), the names 750If @var{collection} is an obarray (@pxref{Creating Symbols}), the names
751of all symbols in the obarray form the set of permissible completions. 751of all symbols in the obarray form the set of permissible completions.
752 752
753If @var{collection} is a hash table, then the keys that are strings 753If @var{collection} is a hash table, then the keys that are strings or
754are the possible completions. Other keys are ignored. 754symbols are the possible completions. Other keys are ignored.
755 755
756You can also use a function as @var{collection}. Then the function is 756You can also use a function as @var{collection}. Then the function is
757solely responsible for performing completion; @code{try-completion} 757solely responsible for performing completion; @code{try-completion}
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi
index a98d0ac455b..c62fa727c10 100644
--- a/doc/misc/cl.texi
+++ b/doc/misc/cl.texi
@@ -148,6 +148,11 @@ the beginning:
148You may wish to add such a statement to your init file, if you 148You may wish to add such a statement to your init file, if you
149make frequent use of features from this package. 149make frequent use of features from this package.
150 150
151Code that only uses macros from this package can enclose the above in
152@code{eval-when-compile}. Internally, this library is divided into
153several files, @pxref{Organization}. Your code should only ever load
154the main @file{cl-lib} file, which will load the others as needed.
155
151@node Organization 156@node Organization
152@section Organization 157@section Organization
153 158
diff --git a/src/syntax.c b/src/syntax.c
index 587335acef8..f8d987b377c 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -3128,8 +3128,9 @@ the prefix syntax flag (p). */)
3128 opoint = pos; 3128 opoint = pos;
3129 opoint_byte = pos_byte; 3129 opoint_byte = pos_byte;
3130 3130
3131 if (pos + 1 > beg) 3131 if (pos <= beg)
3132 DEC_BOTH (pos, pos_byte); 3132 break;
3133 DEC_BOTH (pos, pos_byte);
3133 } 3134 }
3134 3135
3135 SET_PT_BOTH (opoint, opoint_byte); 3136 SET_PT_BOTH (opoint, opoint_byte);