diff options
| author | Glenn Morris | 2019-06-11 08:38:34 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-06-11 08:38:34 -0700 |
| commit | e17cda4942adf353fb7adc4bcdaa61a1ae79db8d (patch) | |
| tree | ff5f524568260a2823023c2a8e7dde84fc6ae1e0 | |
| parent | ef744119a7cbd0692c53704604e9bb6345c371b6 (diff) | |
| parent | 758e9a8ed49c15f7069a67cf0c2ce3c6f9a3f7e1 (diff) | |
| download | emacs-e17cda4942adf353fb7adc4bcdaa61a1ae79db8d.tar.gz emacs-e17cda4942adf353fb7adc4bcdaa61a1ae79db8d.zip | |
Merge from origin/emacs-26
758e9a8 Revert "Don't mark main_thread (Bug#36155)"
1877b7b Don't mark main_thread (Bug#36155)
4904fb3 More quotation fixes (Bug#35885)
4cc4b5d ; * src/keyboard.c (tool_bar_items): Fix a typo. (Bug#36143)
b58ecaf Minor copyedits in efaq-w32
48422af Tiny improvement of documentation of major mode conventions
25d44d2 * nt/addpm.c (main): Fix buffer overflow
| -rw-r--r-- | doc/emacs/modes.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/text.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 4 | ||||
| -rw-r--r-- | doc/misc/efaq-w32.texi | 6 | ||||
| -rw-r--r-- | nt/addpm.c | 5 | ||||
| -rw-r--r-- | src/keyboard.c | 2 |
6 files changed, 13 insertions, 8 deletions
diff --git a/doc/emacs/modes.texi b/doc/emacs/modes.texi index 4505bb5dc2d..e01dfa2677b 100644 --- a/doc/emacs/modes.texi +++ b/doc/emacs/modes.texi | |||
| @@ -207,7 +207,7 @@ amount of work you can lose in case of a crash. @xref{Auto Save}. | |||
| 207 | 207 | ||
| 208 | @item | 208 | @item |
| 209 | Electric Quote mode automatically converts quotation marks. For | 209 | Electric Quote mode automatically converts quotation marks. For |
| 210 | example, it requotes text typed @t{`like this'} to text @t{‘like | 210 | example, it requotes text typed @kbd{`like this'} to text @t{‘like |
| 211 | this’}. You can control what kind of text it operates in, and you can | 211 | this’}. You can control what kind of text it operates in, and you can |
| 212 | disable it entirely in individual buffers. @xref{Quotation Marks}. | 212 | disable it entirely in individual buffers. @xref{Quotation Marks}. |
| 213 | 213 | ||
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 1928240a878..59423feeeae 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -429,7 +429,7 @@ this"}. Another common way is the curved quote convention, which uses | |||
| 429 | left and right single or double quotation marks `@t{like this}' or | 429 | left and right single or double quotation marks `@t{like this}' or |
| 430 | ``@t{like this}''@footnote{ | 430 | ``@t{like this}''@footnote{ |
| 431 | The curved single quote characters are U+2018 @sc{left single quotation | 431 | The curved single quote characters are U+2018 @sc{left single quotation |
| 432 | mark} and U+2018 @sc{right single quotation mark}; the curved double quotes | 432 | mark} and U+2019 @sc{right single quotation mark}; the curved double quotes |
| 433 | are U+201C @sc{left double quotation mark} and U+201D @sc{right double | 433 | are U+201C @sc{left double quotation mark} and U+201D @sc{right double |
| 434 | quotation mark}. On text terminals which cannot display these | 434 | quotation mark}. On text terminals which cannot display these |
| 435 | characters, the Info reader might show them as the typewriter ASCII | 435 | characters, the Info reader might show them as the typewriter ASCII |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index f41607c5dc0..f7fb9a4417d 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -392,7 +392,9 @@ it provides a command that does the same job in a way better | |||
| 392 | suited to the text this mode is used for. For example, a major mode | 392 | suited to the text this mode is used for. For example, a major mode |
| 393 | for editing a programming language might redefine @kbd{C-M-a} to | 393 | for editing a programming language might redefine @kbd{C-M-a} to |
| 394 | move to the beginning of a function in a way that works better for | 394 | move to the beginning of a function in a way that works better for |
| 395 | that language. | 395 | that language. The recommended way of tailoring @kbd{C-M-a} to the |
| 396 | needs of a major mode is to set @code{beginning-of-defun-function} | ||
| 397 | (@pxref{List Motion}) to invoke the function specific to the mode. | ||
| 396 | 398 | ||
| 397 | It is also legitimate for a major mode to rebind a standard key | 399 | It is also legitimate for a major mode to rebind a standard key |
| 398 | sequence whose standard meaning is rarely useful in that mode. For | 400 | sequence whose standard meaning is rarely useful in that mode. For |
diff --git a/doc/misc/efaq-w32.texi b/doc/misc/efaq-w32.texi index 8e067a7a269..cdd01e47f00 100644 --- a/doc/misc/efaq-w32.texi +++ b/doc/misc/efaq-w32.texi | |||
| @@ -1820,7 +1820,8 @@ If you want a quick solution without installing extra tools, a poor | |||
| 1820 | substitute that works for simple text searches is to specify the built | 1820 | substitute that works for simple text searches is to specify the built |
| 1821 | in Windows command @command{findstr} as the command to run at the | 1821 | in Windows command @command{findstr} as the command to run at the |
| 1822 | @kbd{M-x grep} prompt. Normally you will want to use the @option{/n} | 1822 | @kbd{M-x grep} prompt. Normally you will want to use the @option{/n} |
| 1823 | argument to @command{findstr}. | 1823 | argument to @command{findstr}, to have it print the line numbers for |
| 1824 | each hit. | ||
| 1824 | 1825 | ||
| 1825 | @menu | 1826 | @menu |
| 1826 | * Recursive grep:: | 1827 | * Recursive grep:: |
| @@ -1860,7 +1861,8 @@ path to the findutils @command{find} command. | |||
| 1860 | An alternative if you have a recent version of grep is to customize | 1861 | An alternative if you have a recent version of grep is to customize |
| 1861 | @code{grep-find-command} to use @samp{grep -r} instead of both find | 1862 | @code{grep-find-command} to use @samp{grep -r} instead of both find |
| 1862 | and grep. Another alternative if you don't need the full capabilities | 1863 | and grep. Another alternative if you don't need the full capabilities |
| 1863 | of grep is to use @samp{findstr /n /r}. | 1864 | of grep is to use @samp{findstr /n /r}; add the @samp{/s} option if |
| 1865 | you want a recursive search. | ||
| 1864 | 1866 | ||
| 1865 | @c ------------------------------------------------------------ | 1867 | @c ------------------------------------------------------------ |
| 1866 | @node Developing with Emacs | 1868 | @node Developing with Emacs |
diff --git a/nt/addpm.c b/nt/addpm.c index f71ce5f2385..a8bcd4a5c73 100644 --- a/nt/addpm.c +++ b/nt/addpm.c | |||
| @@ -219,8 +219,9 @@ main (int argc, char *argv[]) | |||
| 219 | { | 219 | { |
| 220 | int result; | 220 | int result; |
| 221 | 221 | ||
| 222 | char msg[ MAX_PATH ]; | 222 | const char install_msg[] = "Install Emacs at %s?\n"; |
| 223 | sprintf (msg, "Install Emacs at %s?\n", emacs_path); | 223 | char msg[ MAX_PATH + sizeof (install_msg) ]; |
| 224 | sprintf (msg, install_msg, emacs_path); | ||
| 224 | result = MessageBox (NULL, msg, "Install Emacs", | 225 | result = MessageBox (NULL, msg, "Install Emacs", |
| 225 | MB_OKCANCEL | MB_ICONQUESTION); | 226 | MB_OKCANCEL | MB_ICONQUESTION); |
| 226 | if (result != IDOK) | 227 | if (result != IDOK) |
diff --git a/src/keyboard.c b/src/keyboard.c index bb4d185c914..ab6ca36219d 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7969,7 +7969,7 @@ tool_bar_items (Lisp_Object reuse, int *nitems) | |||
| 7969 | { | 7969 | { |
| 7970 | /* No, so use major and minor mode keymaps and keymap property. | 7970 | /* No, so use major and minor mode keymaps and keymap property. |
| 7971 | Note that tool-bar bindings in the local-map and keymap | 7971 | Note that tool-bar bindings in the local-map and keymap |
| 7972 | properties may not work reliable, as they are only | 7972 | properties may not work reliably, as they are only |
| 7973 | recognized when the tool-bar (or mode-line) is updated, | 7973 | recognized when the tool-bar (or mode-line) is updated, |
| 7974 | which does not normally happen after every command. */ | 7974 | which does not normally happen after every command. */ |
| 7975 | ptrdiff_t nminor = current_minor_maps (NULL, &tmaps); | 7975 | ptrdiff_t nminor = current_minor_maps (NULL, &tmaps); |