aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2016-08-05 14:09:08 -0700
committerPaul Eggert2016-08-05 14:09:08 -0700
commit6b780a2e97c032d1749f190e0f5cfbbce99d0a60 (patch)
tree18287633d9eb2d63d8badf035144e8a3143c00db /doc
parent95c6606a477e017ed7b418fcc81fd937895fee20 (diff)
parent9ba51edf62b25c678508a316ec78a09b18d3bf9e (diff)
downloademacs-6b780a2e97c032d1749f190e0f5cfbbce99d0a60.tar.gz
emacs-6b780a2e97c032d1749f190e0f5cfbbce99d0a60.zip
Merge from origin/emacs-25
9ba51ed Document buffer-swap-text+save-excursion interaction 452aa94 Fix eieio vs cl-generic incompatibilities found in Rudel (bug... 248d5dd Include cl-generic in package--builtin-versions (bug#22817) 8f5a8b6 Improve timing in `tramp-test29-environment-variables' 05ba7a0 Add test for handling environment variables in Tramp e393d4f * lisp/emacs-lisp/package.el (describe-package-1) (package-st... 5e38887 ; * lisp/net/tramp.el: Fix 2010-10-04 comment typo. (Bug#23913) 90f2169 ; Spelling fixes 069fc05 Improve documentation of search functions 0a0144a Delete environment variables in Tramp when needed f624671 Add "New in Emacs 25" section to the FAQ 658daf9 Fix 'vertical-motion' in non-interactive sessions 686b520 Fix memory leak in imagemagick-types 4069b71 Update ELisp manual to match 'string-collate-equalp' doc string 1b2d6a6 Clarify docstring of find-feature-regexp aac62a6 Add details to cl-lib defining macros' docstrings d6aa4da Clarify doc string of 'save-buffer' 03bcf11 Un-confuse doc string of 'string-collate-equalp' c53135b Clarify documentation of 'mouse-on-link-p' # Conflicts: # lisp/emacs-lisp/eieio-core.el
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/buffers.texi6
-rw-r--r--doc/lispref/searching.texi67
-rw-r--r--doc/lispref/strings.texi5
-rw-r--r--doc/misc/efaq.texi105
4 files changed, 152 insertions, 31 deletions
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi
index 1f7f263fb21..740d7cfd8a1 100644
--- a/doc/lispref/buffers.texi
+++ b/doc/lispref/buffers.texi
@@ -1211,6 +1211,12 @@ swapped as well: the positions of point and mark, all the markers, the
1211overlays, the text properties, the undo list, the value of the 1211overlays, the text properties, the undo list, the value of the
1212@code{enable-multibyte-characters} flag (@pxref{Text Representations, 1212@code{enable-multibyte-characters} flag (@pxref{Text Representations,
1213enable-multibyte-characters}), etc. 1213enable-multibyte-characters}), etc.
1214
1215@strong{Warning:} If this function is called from within a
1216@code{save-excursion} form, the current buffer will be set to
1217@var{buffer} upon leaving the form, since the marker used by
1218@code{save-excursion} to save the position and buffer will be swapped
1219as well.
1214@end defun 1220@end defun
1215 1221
1216 If you use @code{buffer-swap-text} on a file-visiting buffer, you 1222 If you use @code{buffer-swap-text} on a file-visiting buffer, you
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 644716a95c7..a04e6938cef 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -44,7 +44,7 @@ Searching and Replacement, emacs, The GNU Emacs Manual}.
44buffer is multibyte; they convert the search string to unibyte if the 44buffer is multibyte; they convert the search string to unibyte if the
45buffer is unibyte. @xref{Text Representations}. 45buffer is unibyte. @xref{Text Representations}.
46 46
47@deffn Command search-forward string &optional limit noerror repeat 47@deffn Command search-forward string &optional limit noerror count
48This function searches forward from point for an exact match for 48This function searches forward from point for an exact match for
49@var{string}. If successful, it sets point to the end of the occurrence 49@var{string}. If successful, it sets point to the end of the occurrence
50found, and returns the new value of point. If no match is found, the 50found, and returns the new value of point. If no match is found, the
@@ -95,24 +95,24 @@ The argument @var{noerror} only affects valid searches which fail to
95find a match. Invalid arguments cause errors regardless of 95find a match. Invalid arguments cause errors regardless of
96@var{noerror}. 96@var{noerror}.
97 97
98If @var{repeat} is a positive number @var{n}, it serves as a repeat 98If @var{count} is a positive number @var{n}, the search is done
99count: the search is repeated @var{n} times, each time starting at the 99@var{n} times; each successive search starts at the end of the
100end of the previous time's match. If these successive searches 100previous match. If all these successive searches succeed, the
101succeed, the function succeeds, moving point and returning its new 101function call succeeds, moving point and returning its new value.
102value. Otherwise the search fails, with results depending on the 102Otherwise the function call fails, with results depending on the value
103value of @var{noerror}, as described above. If @var{repeat} is a 103of @var{noerror}, as described above. If @var{count} is a negative
104negative number -@var{n}, it serves as a repeat count of @var{n} for a 104number -@var{n}, the search is done @var{n} times in the opposite
105search in the opposite (backward) direction. 105(backward) direction.
106@end deffn 106@end deffn
107 107
108@deffn Command search-backward string &optional limit noerror repeat 108@deffn Command search-backward string &optional limit noerror count
109This function searches backward from point for @var{string}. It is 109This function searches backward from point for @var{string}. It is
110like @code{search-forward}, except that it searches backwards rather 110like @code{search-forward}, except that it searches backwards rather
111than forwards. Backward searches leave point at the beginning of the 111than forwards. Backward searches leave point at the beginning of the
112match. 112match.
113@end deffn 113@end deffn
114 114
115@deffn Command word-search-forward string &optional limit noerror repeat 115@deffn Command word-search-forward string &optional limit noerror count
116This function searches forward from point for a word match for 116This function searches forward from point for a word match for
117@var{string}. If it finds a match, it sets point to the end of the 117@var{string}. If it finds a match, it sets point to the end of the
118match found, and returns the new value of point. 118match found, and returns the new value of point.
@@ -156,8 +156,10 @@ returns @code{nil} instead of signaling an error. If @var{noerror} is
156neither @code{nil} nor @code{t}, it moves point to @var{limit} (or the 156neither @code{nil} nor @code{t}, it moves point to @var{limit} (or the
157end of the accessible portion of the buffer) and returns @code{nil}. 157end of the accessible portion of the buffer) and returns @code{nil}.
158 158
159If @var{repeat} is non-@code{nil}, then the search is repeated that many 159If @var{count} is a positive number, it specifies how many successive
160times. Point is positioned at the end of the last match. 160occurrences to search for. Point is positioned at the end of the last
161match. If @var{count} is a negative number, the search is backward
162and point is positioned at the beginning of the last match.
161 163
162@findex word-search-regexp 164@findex word-search-regexp
163Internally, @code{word-search-forward} and related functions use the 165Internally, @code{word-search-forward} and related functions use the
@@ -165,7 +167,7 @@ function @code{word-search-regexp} to convert @var{string} to a
165regular expression that ignores punctuation. 167regular expression that ignores punctuation.
166@end deffn 168@end deffn
167 169
168@deffn Command word-search-forward-lax string &optional limit noerror repeat 170@deffn Command word-search-forward-lax string &optional limit noerror count
169This command is identical to @code{word-search-forward}, except that 171This command is identical to @code{word-search-forward}, except that
170the beginning or the end of @var{string} need not match a word 172the beginning or the end of @var{string} need not match a word
171boundary, unless @var{string} begins or ends in whitespace. 173boundary, unless @var{string} begins or ends in whitespace.
@@ -173,14 +175,14 @@ For instance, searching for @samp{ball boy} matches @samp{ball boyee},
173but does not match @samp{balls boy}. 175but does not match @samp{balls boy}.
174@end deffn 176@end deffn
175 177
176@deffn Command word-search-backward string &optional limit noerror repeat 178@deffn Command word-search-backward string &optional limit noerror count
177This function searches backward from point for a word match to 179This function searches backward from point for a word match to
178@var{string}. This function is just like @code{word-search-forward} 180@var{string}. This function is just like @code{word-search-forward}
179except that it searches backward and normally leaves point at the 181except that it searches backward and normally leaves point at the
180beginning of the match. 182beginning of the match.
181@end deffn 183@end deffn
182 184
183@deffn Command word-search-backward-lax string &optional limit noerror repeat 185@deffn Command word-search-backward-lax string &optional limit noerror count
184This command is identical to @code{word-search-backward}, except that 186This command is identical to @code{word-search-backward}, except that
185the beginning or the end of @var{string} need not match a word 187the beginning or the end of @var{string} need not match a word
186boundary, unless @var{string} begins or ends in whitespace. 188boundary, unless @var{string} begins or ends in whitespace.
@@ -1005,7 +1007,7 @@ only the search functions useful in programs. The principal one is
1005the buffer is multibyte; they convert the regular expression to unibyte 1007the buffer is multibyte; they convert the regular expression to unibyte
1006if the buffer is unibyte. @xref{Text Representations}. 1008if the buffer is unibyte. @xref{Text Representations}.
1007 1009
1008@deffn Command re-search-forward regexp &optional limit noerror repeat 1010@deffn Command re-search-forward regexp &optional limit noerror count
1009This function searches forward in the current buffer for a string of 1011This function searches forward in the current buffer for a string of
1010text that is matched by the regular expression @var{regexp}. The 1012text that is matched by the regular expression @var{regexp}. The
1011function skips over any amount of text that is not matched by 1013function skips over any amount of text that is not matched by
@@ -1014,14 +1016,12 @@ It returns the new value of point.
1014 1016
1015If @var{limit} is non-@code{nil}, it must be a position in the current 1017If @var{limit} is non-@code{nil}, it must be a position in the current
1016buffer. It specifies the upper bound to the search. No match 1018buffer. It specifies the upper bound to the search. No match
1017extending after that position is accepted. 1019extending after that position is accepted. If @var{limit} is omitted
1020or @code{nil}, it defaults to the end of the accessible portion of the
1021buffer.
1018 1022
1019If @var{repeat} is supplied, it must be a positive number; the search 1023What @code{re-search-forward} does when the search fails depends on
1020is repeated that many times; each repetition starts at the end of the 1024the value of @var{noerror}:
1021previous match. If all these successive searches succeed, the search
1022succeeds, moving point and returning its new value. Otherwise the
1023search fails. What @code{re-search-forward} does when the search
1024fails depends on the value of @var{noerror}:
1025 1025
1026@table @asis 1026@table @asis
1027@item @code{nil} 1027@item @code{nil}
@@ -1033,6 +1033,19 @@ Move point to @var{limit} (or the end of the accessible portion of the
1033buffer) and return @code{nil}. 1033buffer) and return @code{nil}.
1034@end table 1034@end table
1035 1035
1036The argument @var{noerror} only affects valid searches which fail to
1037find a match. Invalid arguments cause errors regardless of
1038@var{noerror}.
1039
1040If @var{count} is a positive number @var{n}, the search is done
1041@var{n} times; each successive search starts at the end of the
1042previous match. If all these successive searches succeed, the
1043function call succeeds, moving point and returning its new value.
1044Otherwise the function call fails, with results depending on the value
1045of @var{noerror}, as described above. If @var{count} is a negative
1046number -@var{n}, the search is done @var{n} times in the opposite
1047(backward) direction.
1048
1036In the following example, point is initially before the @samp{T}. 1049In the following example, point is initially before the @samp{T}.
1037Evaluating the search call moves point to the end of that line (between 1050Evaluating the search call moves point to the end of that line (between
1038the @samp{t} of @samp{hat} and the newline). 1051the @samp{t} of @samp{hat} and the newline).
@@ -1057,7 +1070,7 @@ comes back" twice.
1057@end example 1070@end example
1058@end deffn 1071@end deffn
1059 1072
1060@deffn Command re-search-backward regexp &optional limit noerror repeat 1073@deffn Command re-search-backward regexp &optional limit noerror count
1061This function searches backward in the current buffer for a string of 1074This function searches backward in the current buffer for a string of
1062text that is matched by the regular expression @var{regexp}, leaving 1075text that is matched by the regular expression @var{regexp}, leaving
1063point at the beginning of the first text found. 1076point at the beginning of the first text found.
@@ -1228,13 +1241,13 @@ non-greedy repetition operators (@pxref{Regexp Special, non-greedy}).
1228This is because POSIX backtracking conflicts with the semantics of 1241This is because POSIX backtracking conflicts with the semantics of
1229non-greedy repetition. 1242non-greedy repetition.
1230 1243
1231@deffn Command posix-search-forward regexp &optional limit noerror repeat 1244@deffn Command posix-search-forward regexp &optional limit noerror count
1232This is like @code{re-search-forward} except that it performs the full 1245This is like @code{re-search-forward} except that it performs the full
1233backtracking specified by the POSIX standard for regular expression 1246backtracking specified by the POSIX standard for regular expression
1234matching. 1247matching.
1235@end deffn 1248@end deffn
1236 1249
1237@deffn Command posix-search-backward regexp &optional limit noerror repeat 1250@deffn Command posix-search-backward regexp &optional limit noerror count
1238This is like @code{re-search-backward} except that it performs the full 1251This is like @code{re-search-backward} except that it performs the full
1239backtracking specified by the POSIX standard for regular expression 1252backtracking specified by the POSIX standard for regular expression
1240matching. 1253matching.
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 4e4c239291e..0b9529460f3 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -503,8 +503,9 @@ the codeset part of the locale cannot be @code{"UTF-8"} on MS-Windows.
503If your system does not support a locale environment, this function 503If your system does not support a locale environment, this function
504behaves like @code{string-equal}. 504behaves like @code{string-equal}.
505 505
506Do @emph{not} use this function to compare file names for equality, only 506Do @emph{not} use this function to compare file names for equality, as
507for sorting them. 507filesystems generally don't honor linguistic equivalence of strings
508that collation implements.
508@end defun 509@end defun
509 510
510@defun string-prefix-p string1 string2 &optional ignore-case 511@defun string-prefix-p string1 string2 &optional ignore-case
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 8eee9e1d869..72a90a1ff21 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -931,6 +931,7 @@ status of its latest version.
931@menu 931@menu
932* Origin of the term Emacs:: 932* Origin of the term Emacs::
933* Latest version of Emacs:: 933* Latest version of Emacs::
934* New in Emacs 25::
934* New in Emacs 24:: 935* New in Emacs 24::
935* New in Emacs 23:: 936* New in Emacs 23::
936* New in Emacs 22:: 937* New in Emacs 22::
@@ -977,9 +978,9 @@ conventions}).
977@cindex Bazaar repository, Emacs 978@cindex Bazaar repository, Emacs
978 979
979Emacs @value{EMACSVER} is the current version as of this writing. A version 980Emacs @value{EMACSVER} is the current version as of this writing. A version
980number with two components (e.g., @samp{22.1}) indicates a released 981number with two components (e.g., @samp{24.5}) indicates a released
981version; three components indicate a development 982version; three components indicate a development
982version (e.g., @samp{23.0.50} is what will eventually become @samp{23.1}). 983version (e.g., @samp{26.0.50} is what will eventually become @samp{26.1}).
983 984
984Emacs is under active development, hosted at 985Emacs is under active development, hosted at
985@uref{http://savannah.gnu.org/projects/emacs/, Savannah}. 986@uref{http://savannah.gnu.org/projects/emacs/, Savannah}.
@@ -998,6 +999,106 @@ Emacs, type @kbd{C-h C-n} (@kbd{M-x view-emacs-news}). As of Emacs 22,
998you can give this command a prefix argument to read about which features 999you can give this command a prefix argument to read about which features
999were new in older versions. 1000were new in older versions.
1000 1001
1002@node New in Emacs 25
1003@section What is different about Emacs 25?
1004@cindex Differences between Emacs 24 and Emacs 25
1005@cindex Emacs 25, new features in
1006
1007@itemize
1008@cindex xwidgets
1009@item
1010Emacs can now embed native widgets inside Emacs buffers, if you have
1011gtk3 and webkitgtk3 installed. E.g., to access the embedded webkit
1012browser widget, type @kbd{M-x xwidget-webkit-browse-url}.
1013
1014@cindex loadable modules
1015@item
1016Emacs can now dynamically load external modules compiled as shared
1017libraries.
1018
1019@cindex Unicode characters, typing easily
1020@item
1021@kbd{C-x 8} has new shorthands for several popular characters, type
1022@kbd{C-x 8 C-h} to list shorthands.
1023
1024@cindex automatic display of Lisp APIs
1025@item
1026A new minor mode @code{global-eldoc-mode} is enabled by default, and
1027shows in the echo area or in the mode line the argument list of the
1028Emacs Lisp form at point.
1029
1030@cindex pasting text on text terminals
1031@cindex bracketed paste mode
1032@item
1033On text terminals that support the ``bracketed paste mode'' EMacs now
1034uses that mode by default. This mode allows Emacs to distinguish
1035between pasted text and text typed by the user.
1036
1037@cindex Unicode 9.0.0
1038@item
1039Emacs 25 comes with data files imported from the latest Unicode
1040Standard version 9.0.0.
1041
1042@cindex bidirectional editing
1043@item
1044The support for bidirectional editing was updated to include all the
1045features mandated by the latest Unicode Standard version 9.0.0.
1046
1047@cindex character folding in searches
1048@item
1049Search command can now perform character folding in matches. This is
1050analogous to case folding, but instead of disregarding case variants,
1051it disregards wider classes of distinctions between similar
1052characters, such as matching different variants of double quote
1053characters, ignoring diacritics, etc.
1054
1055@cindex eww
1056@item
1057The Emacs Web Browser EWW was extended to render text using
1058variable-pitch fonts, and got other new features.
1059
1060@cindex rmail, and HTML mails
1061@item
1062Rmail can now render HTML mail messages, if Emacs is built with
1063libxml2 or if you have the Lynx browser installed.
1064
1065@cindex support for push commands in VC
1066@item
1067VC now has basic support for @code{push} commands, implemented for
1068Bzr, Git, and Hg.
1069
1070@cindex hide-ifdef, C/C@t{++} expressions in macros
1071@item
1072Hide-IfDef mode now support full C/C@t{++} expressions in macros,
1073macro argument expansion, interactive macro evaluation and automatic
1074scanning of @code{#define}d symbols.
1075
1076@cindex xref
1077@item
1078New package Xref replaces Etags's front-end and UI. Xref provides a
1079generic framework and new commands to find and move to definitions of
1080functions, macros, data structures etc., as well as go back to the
1081location where you were before moving to a definition. It supersedes
1082and obsoletes many Etags commands, while still using the etags.el code
1083that reads the TAGS tables as one of its back-ends. As result, the
1084popular key bindings @kbd{M-.} and @kbd{M-,} have been changed to
1085invoke Xref commands.
1086
1087@cindex project
1088@item
1089The new package Project provides generic infrastructure for dealing
1090with projects.
1091
1092@cindex horizontal scroll bars
1093@item
1094Emacs can now draw horizontal scroll bars on some platforms that
1095provide toolkit scroll bars, namely Gtk+, Lucid, Motif and Windows.
1096
1097@end itemize
1098
1099Consult the Emacs @file{NEWS} file (@kbd{C-h n}) for the full list of
1100changes in Emacs 25.
1101
1001@node New in Emacs 24 1102@node New in Emacs 24
1002@section What is different about Emacs 24? 1103@section What is different about Emacs 24?
1003@cindex Differences between Emacs 23 and Emacs 24 1104@cindex Differences between Emacs 23 and Emacs 24