aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-06-17 23:50:45 -0700
committerPaul Eggert2015-06-17 23:51:11 -0700
commit84085e36a4765d2396c04da246b796a6f5fa7a49 (patch)
tree2597b5f8a4063cae3448811e1c275260e6a92c25
parentdbc192b4c239c2da8c83def0b0a877d7f179172a (diff)
downloademacs-84085e36a4765d2396c04da246b796a6f5fa7a49.tar.gz
emacs-84085e36a4765d2396c04da246b796a6f5fa7a49.zip
Document curved quotes a bit better
* doc/emacs/basic.texi (Inserting Text): Mention C-x 8. Change example to use curved quote rather than infinity, as this lets us give more ways to do it. * doc/emacs/mule.texi (International Chars): Mention C-x 8 shortcuts and quotation marks. * doc/emacs/text.texi (Quotation Marks): * doc/lispref/tips.texi (Documentation Tips): Add "curly quotes" and "curved quotes" to the index. * doc/emacs/text.texi (Quotation Marks): Give the C-x 8 shorthands for curved quotes. Cross-reference to "Quotation Marks".
-rw-r--r--doc/emacs/basic.texi39
-rw-r--r--doc/emacs/mule.texi7
-rw-r--r--doc/emacs/text.texi5
-rw-r--r--doc/lispref/tips.texi12
4 files changed, 45 insertions, 18 deletions
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi
index cc9602e8c52..0a4391094b3 100644
--- a/doc/emacs/basic.texi
+++ b/doc/emacs/basic.texi
@@ -104,10 +104,22 @@ the letters @kbd{a} to @kbd{f} serve as part of a character code,
104just like digits. Case is ignored. 104just like digits. Case is ignored.
105 105
106@findex insert-char 106@findex insert-char
107@kindex C-x 8 RET 107@kindex C-x 8
108@cindex Unicode characters, inserting 108@cindex Unicode characters, inserting
109@cindex insert Unicode character 109@cindex insert Unicode character
110@cindex characters, inserting by name or code-point 110@cindex characters, inserting by name or code-point
111@cindex curly quotes
112@cindex curved quotes
113 A few common Unicode characters can be inserted via a command
114starting with @kbd{C-x 8}. For example, @kbd{C-x 8 [} inserts @t{‘}
115which is Unicode code-point @code{U+2018} LEFT SINGLE QUOTATION MARK,
116sometimes called a left single ``curved quote'' or ``curly quote''.
117Similarly, @kbd{C-x 8 ]}, @kbd{C-x 8 @{} and @kbd{C-x 8 @}} insert the
118curved quotes @t{’}, @t{“} and @t{”}, respectively. Also, a working
119Alt key acts like @kbd{C-x 8}; e.g., @kbd{A-[} acts like @kbd{C-x 8 [}
120and inserts @t{‘}. To see which characters have @kbd{C-x 8}
121shorthands, type @kbd{C-x 8 C-h}.
122
111 Alternatively, you can use the command @kbd{C-x 8 @key{RET}} 123 Alternatively, you can use the command @kbd{C-x 8 @key{RET}}
112(@code{insert-char}). This prompts for the Unicode name or code-point 124(@code{insert-char}). This prompts for the Unicode name or code-point
113of a character, using the minibuffer. If you enter a name, the 125of a character, using the minibuffer. If you enter a name, the
@@ -116,16 +128,7 @@ code-point, it should be as a hexadecimal number (the convention for
116Unicode), or a number with a specified radix, e.g., @code{#o23072} 128Unicode), or a number with a specified radix, e.g., @code{#o23072}
117(octal); @xref{Integer Basics,,, elisp, The Emacs Lisp Reference 129(octal); @xref{Integer Basics,,, elisp, The Emacs Lisp Reference
118Manual}. The command then inserts the corresponding character into 130Manual}. The command then inserts the corresponding character into
119the buffer. For example, both of the following insert the infinity 131the buffer.
120sign (Unicode code-point @code{U+221E}):
121
122@example
123@kbd{C-x 8 @key{RET} infinity @key{RET}}
124@kbd{C-x 8 @key{RET} 221e @key{RET}}
125@end example
126
127 A numeric argument to @kbd{C-q} or @kbd{C-x 8 @key{RET}} specifies
128how many copies of the character to insert (@pxref{Arguments}).
129 132
130 In some contexts, if you type a quotation using grave accent and 133 In some contexts, if you type a quotation using grave accent and
131apostrophe @t{`like this'}, it is converted to a form @t{‘like this’} 134apostrophe @t{`like this'}, it is converted to a form @t{‘like this’}
@@ -133,6 +136,20 @@ using single quotation marks. Similarly, typing a quotation @t{``like
133this''} using double grave accent and apostrophe converts it to a form 136this''} using double grave accent and apostrophe converts it to a form
134@t{“like this”} using double quotation marks. @xref{Quotation Marks}. 137@t{“like this”} using double quotation marks. @xref{Quotation Marks}.
135 138
139 For example, the following all insert the same character:
140
141@example
142@kbd{C-x 8 @key{RET} left single quotation mark @key{RET}}
143@kbd{C-x 8 @key{RET} left sin @key{TAB} @key{RET}}
144@kbd{C-x 8 @key{RET} 2018 @key{RET}}
145@kbd{C-x 8 [}
146@kbd{A-[} @r{(if the Alt key works)}
147@kbd{`} @r{(in Electric Quote mode)}
148@end example
149
150 A numeric argument to @kbd{C-q} or @kbd{C-x 8 ...} specifies
151how many copies of the character to insert (@pxref{Arguments}).
152
136@node Moving Point 153@node Moving Point
137@section Changing the Location of Point 154@section Changing the Location of Point
138 155
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi
index 80b1384feb6..5a166d13124 100644
--- a/doc/emacs/mule.texi
+++ b/doc/emacs/mule.texi
@@ -136,8 +136,11 @@ displayed on your terminal, they appear as @samp{?} or as hollow boxes
136 Keyboards, even in the countries where these character sets are 136 Keyboards, even in the countries where these character sets are
137used, generally don't have keys for all the characters in them. You 137used, generally don't have keys for all the characters in them. You
138can insert characters that your keyboard does not support, using 138can insert characters that your keyboard does not support, using
139@kbd{C-q} (@code{quoted-insert}) or @kbd{C-x 8 @key{RET}} 139@kbd{C-x 8 @key{RET}} (@code{insert-char}). @xref{Inserting Text}.
140(@code{insert-char}). @xref{Inserting Text}. Emacs also supports 140Shorthands are available for some common characters; for example, you
141can insert a left single quotation mark @t{‘} by typing @kbd{C-x 8
142[}, or in Electric Quote mode often by simply typing @kbd{`}.
143@xref{Quotation Marks}. Emacs also supports
141various @dfn{input methods}, typically one for each script or 144various @dfn{input methods}, typically one for each script or
142language, which make it easier to type characters in the script. 145language, which make it easier to type characters in the script.
143@xref{Input Methods}. 146@xref{Input Methods}.
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index d891cc16870..5a13f208876 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -410,6 +410,8 @@ beginning of a line.
410@cindex Quotation marks 410@cindex Quotation marks
411@cindex Electric Quote mode 411@cindex Electric Quote mode
412@cindex mode, Electric Quote 412@cindex mode, Electric Quote
413@cindex curly quotes
414@cindex curved quotes
413@findex electric-quote-mode 415@findex electric-quote-mode
414 One common way to quote is the typewriter convention, which quotes 416 One common way to quote is the typewriter convention, which quotes
415using straight apostrophes @t{'like this'} or double-quotes @t{"like 417using straight apostrophes @t{'like this'} or double-quotes @t{"like
@@ -443,7 +445,8 @@ variables.
443@kbd{M-x electric-quote-local-mode}. To suppress it for a single use, 445@kbd{M-x electric-quote-local-mode}. To suppress it for a single use,
444type @kbd{C-q `} or @kbd{C-q '} instead of @kbd{`} or @kbd{'}. To 446type @kbd{C-q `} or @kbd{C-q '} instead of @kbd{`} or @kbd{'}. To
445insert a curved quote even when Electric Quote is disabled or 447insert a curved quote even when Electric Quote is disabled or
446inactive, use @kbd{C-x 8 @key{RET}} (@code{insert-char}). 448inactive, you can type @kbd{C-x 8 [} for @t{‘}, @kbd{C-x 8 ]} for
449@t{’}, @kbd{C-x 8 @{} for @t{“}, and @kbd{C-x 8 @}} for @t{”}.
447@xref{Inserting Text}. 450@xref{Inserting Text}.
448 451
449@node Filling 452@node Filling
diff --git a/doc/lispref/tips.texi b/doc/lispref/tips.texi
index 798b6700aac..9144497d5f1 100644
--- a/doc/lispref/tips.texi
+++ b/doc/lispref/tips.texi
@@ -657,15 +657,19 @@ starting double-quote is not part of the string!
657 657
658@anchor{Docstring hyperlinks} 658@anchor{Docstring hyperlinks}
659@item 659@item
660@cindex curly quotes
661@cindex curved quotes
660When a documentation string refers to a Lisp symbol, write it as it 662When a documentation string refers to a Lisp symbol, write it as it
661would be printed (which usually means in lower case), surrounding 663would be printed (which usually means in lower case), surrounding
662it with curved single quotes (@samp{‘} and @samp{’}). There are 664it with curved single quotes (@t{‘} and @t{’}). There are
663two exceptions: write @code{t} and @code{nil} without surrounding 665two exceptions: write @code{t} and @code{nil} without surrounding
664punctuation. For example: @samp{CODE can be ‘lambda’, nil, or t.} 666punctuation. For example: @samp{CODE can be ‘lambda’, nil, or t}.
667@xref{Quotation Marks,,, emacs, The GNU Emacs Manual}, for how to
668enter curved single quotes.
665 669
666Documentation strings can also use an older single-quoting convention, 670Documentation strings can also use an older single-quoting convention,
667which quotes symbols with grave accent @samp{`} and apostrophe 671which quotes symbols with grave accent @t{`} and apostrophe
668@samp{'}: @samp{`like-this'} rather than @samp{‘like-this’}. This 672@t{'}: @t{`like-this'} rather than @t{‘like-this’}. This
669older convention was designed for now-obsolete displays in which grave 673older convention was designed for now-obsolete displays in which grave
670accent and apostrophe were mirror images. Documentation in this older 674accent and apostrophe were mirror images. Documentation in this older
671convention is converted to the standard convention when it is copied 675convention is converted to the standard convention when it is copied