aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2012-12-21 11:32:43 -0800
committerGlenn Morris2012-12-21 11:32:43 -0800
commita4b0cca119b01dc55bad802ef696c857fe014482 (patch)
treef2df86b3d472d15d3bbb69274325a7c0090f65b3 /doc/lispref
parent0e9c7693712014196946a83709a83c08a7dfea25 (diff)
parent160b3852018831b830a7451f29f770fb49810342 (diff)
downloademacs-a4b0cca119b01dc55bad802ef696c857fe014482.tar.gz
emacs-a4b0cca119b01dc55bad802ef696c857fe014482.zip
Merge from emacs-24; up to 2012-12-01T13:25:13Z!cyd@gnu.org
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/ChangeLog9
-rw-r--r--doc/lispref/customize.texi5
-rw-r--r--doc/lispref/modes.texi2
-rw-r--r--doc/lispref/strings.texi34
4 files changed, 34 insertions, 16 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 80814e6830b..8158a282a5c 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,12 @@
12012-12-21 Chong Yidong <cyd@gnu.org>
2
3 * modes.texi (Auto Major Mode): Fix typo (Bug#13230).
4
5 * customize.texi (Simple Types): Document key-sequence type
6 (Bug#13048).
7
8 * strings.texi (Text Comparison): Doc fix for compare-strings.
9
12012-12-19 Michael Albinus <michael.albinus@gmx.de> 102012-12-19 Michael Albinus <michael.albinus@gmx.de>
2 11
3 * files.texi (Magic File Names): Add `file-acl', 12 * files.texi (Magic File Names): Add `file-acl',
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi
index 56e091eabf2..498d2a379c0 100644
--- a/doc/lispref/customize.texi
+++ b/doc/lispref/customize.texi
@@ -620,6 +620,11 @@ you can specify that the value must be @code{nil} or @code{t}, but also
620specify the text to describe each value in a way that fits the specific 620specify the text to describe each value in a way that fits the specific
621meaning of the alternative. 621meaning of the alternative.
622 622
623@item key-sequence
624The value is a key sequence. The customization buffer shows the key
625sequence using the same syntax as the @kbd{kbd} function. @xref{Key
626Sequences}.
627
623@item coding-system 628@item coding-system
624The value must be a coding-system name, and you can do completion with 629The value must be a coding-system name, and you can do completion with
625@kbd{M-@key{TAB}}. 630@kbd{M-@key{TAB}}.
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 7057503e4c3..9509d019a72 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -612,7 +612,7 @@ variables section specifying a mode for that particular file. This
612should not be applied to the containing tar file. Similarly, a tiff 612should not be applied to the containing tar file. Similarly, a tiff
613image file might just happen to contain a first line that seems to 613image file might just happen to contain a first line that seems to
614match the @w{@samp{-*-}} pattern. For these reasons, both these file 614match the @w{@samp{-*-}} pattern. For these reasons, both these file
615extensions are members of the list @var{inhibit-local-variables-regexps}. 615extensions are members of the list @code{inhibit-local-variables-regexps}.
616Add patterns to this list to prevent Emacs searching them for local 616Add patterns to this list to prevent Emacs searching them for local
617variables of any kind (not just mode specifiers). 617variables of any kind (not just mode specifiers).
618 618
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 865435c91b3..c127cec8f8a 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -517,25 +517,29 @@ comparison ignores case differences.
517@end defun 517@end defun
518 518
519@defun compare-strings string1 start1 end1 string2 start2 end2 &optional ignore-case 519@defun compare-strings string1 start1 end1 string2 start2 end2 &optional ignore-case
520This function compares the specified part of @var{string1} with the 520This function compares a specified part of @var{string1} with a
521specified part of @var{string2}. The specified part of @var{string1} 521specified part of @var{string2}. The specified part of @var{string1}
522runs from index @var{start1} up to index @var{end1} (@code{nil} means 522runs from index @var{start1} (inclusive) up to index @var{end1}
523the end of the string). The specified part of @var{string2} runs from 523(exclusive); @code{nil} for @var{start1} means the start of the
524index @var{start2} up to index @var{end2} (@code{nil} means the end of 524string, while @code{nil} for @var{end1} means the length of the
525the string). 525string. Likewise, the specified part of @var{string2} runs from index
526 526@var{start2} up to index @var{end2}.
527The strings are both converted to multibyte for the comparison 527
528(@pxref{Text Representations}) so that a unibyte string and its 528The strings are compared by the numeric values of their characters.
529conversion to multibyte are always regarded as equal. If 529For instance, @var{str1} is considered ``smaller than'' @var{str2} if
530@var{ignore-case} is non-@code{nil}, then case is ignored, so that 530its first differing character has a smaller numeric value. If
531upper case letters can be equal to lower case letters. 531@var{ignore-case} is non-@code{nil}, characters are converted to
532lower-case before comparing them. Unibyte strings are converted to
533multibyte for comparison (@pxref{Text Representations}), so that a
534unibyte string and its conversion to multibyte are always regarded as
535equal.
532 536
533If the specified portions of the two strings match, the value is 537If the specified portions of the two strings match, the value is
534@code{t}. Otherwise, the value is an integer which indicates how many 538@code{t}. Otherwise, the value is an integer which indicates how many
535leading characters agree, and which string is less. Its absolute value 539leading characters agree, and which string is less. Its absolute
536is one plus the number of characters that agree at the beginning of the 540value is one plus the number of characters that agree at the beginning
537two strings. The sign is negative if @var{string1} (or its specified 541of the two strings. The sign is negative if @var{string1} (or its
538portion) is less. 542specified portion) is less.
539@end defun 543@end defun
540 544
541@defun assoc-string key alist &optional case-fold 545@defun assoc-string key alist &optional case-fold