aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-04-01 07:50:39 -0700
committerGlenn Morris2018-04-01 07:50:39 -0700
commitd46811eeb5cca3d3de4a97f313c8485f54a55bfc (patch)
treea94a351b89a9266768ca2f8af94ced338931b7ca
parente19fde9806999f273ea42a49904a35ed4d3b3a28 (diff)
parentaf1624f29bc264fe0cff31c46b25b0b0c90e24bf (diff)
downloademacs-d46811eeb5cca3d3de4a97f313c8485f54a55bfc.tar.gz
emacs-d46811eeb5cca3d3de4a97f313c8485f54a55bfc.zip
Merge from origin/emacs-26
af1624f * lisp/net/shr.el (shr-browse-url): Doc fix. (Bug#30957) 3a451bd ; * doc/emacs/msdos.texi: Fix wording of last change. 3bc1e2f Mention `key-description' as inverse of `kbd' (Bug#30942) e50196e Document return value of pcase (Bug#30425) 8a2466f * doc/emacs/macos.texi: Tweak grammar and capitalization. 9db62bf Distinguish free from non-free OSes ff49d86 * doc/emacs/misc.texi (Amusements): Avoid non-printing charac... 5bab671 Fix xrefs in pdf Emacs manual
-rw-r--r--doc/emacs/fortran-xtra.texi24
-rw-r--r--doc/emacs/macos.texi8
-rw-r--r--doc/emacs/misc.texi2
-rw-r--r--doc/emacs/msdos.texi7
-rw-r--r--doc/emacs/picture-xtra.texi9
-rw-r--r--doc/lispref/control.texi3
-rw-r--r--lisp/emacs-lisp/pcase.el7
-rw-r--r--lisp/net/shr.el8
-rw-r--r--lisp/subr.el4
9 files changed, 61 insertions, 11 deletions
diff --git a/doc/emacs/fortran-xtra.texi b/doc/emacs/fortran-xtra.texi
index 859c6132436..fa5a3e6eafb 100644
--- a/doc/emacs/fortran-xtra.texi
+++ b/doc/emacs/fortran-xtra.texi
@@ -208,7 +208,13 @@ line is a continuation of the previous line. We call this @dfn{fixed
208form}. (In GNU Emacs we always count columns from 0; but note that 208form}. (In GNU Emacs we always count columns from 0; but note that
209the Fortran standard counts from 1. You can customize the variable 209the Fortran standard counts from 1. You can customize the variable
210@code{column-number-indicator-zero-based} to make the column display 210@code{column-number-indicator-zero-based} to make the column display
211Fortran-like; @pxref{Optional Mode Line}.) The variable 211@iftex
212Fortran-like; @pxref{Optional Mode Line,,, emacs, the Emacs Manual}.)
213@end iftex
214@ifnottex
215Fortran-like; @pxref{Optional Mode Line}.)
216@end ifnottex
217The variable
212@code{fortran-continuation-string} specifies what character to put in 218@code{fortran-continuation-string} specifies what character to put in
213column 5. A line that starts with a tab character followed by any digit 219column 5. A line that starts with a tab character followed by any digit
214except @samp{0} is also a continuation line. We call this style of 220except @samp{0} is also a continuation line. We call this style of
@@ -254,7 +260,13 @@ column 8 must consist of one tab character.
254indentation assumes it is a line number and moves it to columns 0 260indentation assumes it is a line number and moves it to columns 0
255through 4. (Columns always count from 0 in Emacs, but setting 261through 4. (Columns always count from 0 in Emacs, but setting
256@code{column-number-indicator-zero-based} to @code{nil} can change 262@code{column-number-indicator-zero-based} to @code{nil} can change
257that, @pxref{Optional Mode Line}.) 263that,
264@iftex
265@pxref{Optional Mode Line,,, emacs, the Emacs Manual}.)
266@end iftex
267@ifnottex
268@pxref{Optional Mode Line}.)
269@end ifnottex
258 270
259@vindex fortran-line-number-indent 271@vindex fortran-line-number-indent
260 Line numbers of four digits or less are normally indented one space. 272 Line numbers of four digits or less are normally indented one space.
@@ -535,7 +547,13 @@ statement body. Column numbers appear above them.
535 547
536 Note that the column numbers count from zero, as always in GNU Emacs 548 Note that the column numbers count from zero, as always in GNU Emacs
537(but customizing @code{column-number-indicator-zero-based} can change 549(but customizing @code{column-number-indicator-zero-based} can change
538column display to match that of Fortran; @pxref{Optional Mode Line}). 550column display to match that of Fortran;
551@iftex
552@pxref{Optional Mode Line,,, emacs, the Emacs Manual}.)
553@end iftex
554@ifnottex
555@pxref{Optional Mode Line}.)
556@end ifnottex
539As a result, the numbers may be one less than those you are familiar 557As a result, the numbers may be one less than those you are familiar
540with; but the positions they indicate in the line are standard for 558with; but the positions they indicate in the line are standard for
541Fortran. 559Fortran.
diff --git a/doc/emacs/macos.texi b/doc/emacs/macos.texi
index e669eaa4cbd..ef2e9448902 100644
--- a/doc/emacs/macos.texi
+++ b/doc/emacs/macos.texi
@@ -14,6 +14,14 @@ built either without window system support, with X11, or with the
14Cocoa interface; this section only applies to the Cocoa build. This 14Cocoa interface; this section only applies to the Cocoa build. This
15does not support versions before macOS 10.6. 15does not support versions before macOS 10.6.
16 16
17 GNUstep is free software; macOS is not. Because it is a non-free
18operating system, macOS denies its users the freedom that every computer
19user deserves. That is an injustice. For your freedom's sake, we
20urge you to switch to a free operating system.
21
22 We support GNU Emacs on proprietary operating systems because
23we hope this taste of freedom will inspire users to escape from them.
24
17 For various historical and technical reasons, Emacs uses the term 25 For various historical and technical reasons, Emacs uses the term
18@samp{Nextstep} internally, instead of ``Cocoa'' or ``macOS''; for 26@samp{Nextstep} internally, instead of ``Cocoa'' or ``macOS''; for
19instance, most of the commands and variables described in this section 27instance, most of the commands and variables described in this section
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 23495992fcc..a4bfba3e98d 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -3011,7 +3011,7 @@ is idle.
3011 3011
3012@findex butterfly 3012@findex butterfly
3013@cindex butterfly 3013@cindex butterfly
3014 Real Programmers deploy @kbd{M-x butterfly}, which uses butterflies 3014 ``Real Programmers'' deploy @kbd{M-x butterfly}, which uses butterflies
3015to flip a bit on the drive platter, see @uref{https://xkcd.com/378}. 3015to flip a bit on the drive platter, see @uref{https://xkcd.com/378}.
3016 3016
3017@findex doctor 3017@findex doctor
diff --git a/doc/emacs/msdos.texi b/doc/emacs/msdos.texi
index 90f0389a0e0..9353f4b6e84 100644
--- a/doc/emacs/msdos.texi
+++ b/doc/emacs/msdos.texi
@@ -19,6 +19,13 @@ manual (@pxref{MS-DOS,,, emacs-xtra, Specialized Emacs Features}).
19section (@pxref{MS-DOS}). 19section (@pxref{MS-DOS}).
20@end ifnottex 20@end ifnottex
21 21
22 MS-Windows is a non-free operating system; that means it denies its
23users the freedom that every computer user deserves. That is an
24injustice. For your freedom's sake, we urge you to switch to a free
25operating system.
26
27 We support GNU Emacs on proprietary operating systems because we
28hope this taste of freedom will inspire users to escape from them.
22 29
23 The behavior of Emacs on MS-Windows is reasonably similar to what is 30 The behavior of Emacs on MS-Windows is reasonably similar to what is
24documented in the rest of the manual, including support for long file 31documented in the rest of the manual, including support for long file
diff --git a/doc/emacs/picture-xtra.texi b/doc/emacs/picture-xtra.texi
index 288a6e89aa9..9ebc78ec628 100644
--- a/doc/emacs/picture-xtra.texi
+++ b/doc/emacs/picture-xtra.texi
@@ -262,7 +262,14 @@ Clear out the region-rectangle with spaces
262text. 262text.
263@item C-c C-w @var{r} 263@item C-c C-w @var{r}
264Similar, but save rectangle contents in register @var{r} first 264Similar, but save rectangle contents in register @var{r} first
265(@code{picture-clear-rectangle-to-register}). @xref{Registers}. 265(@code{picture-clear-rectangle-to-register}).
266@iftex
267@xref{Registers,,, emacs, the Emacs Manual}.
268@end iftex
269@ifnottex
270@xref{Registers}.
271@end ifnottex
272
266@item C-c C-y 273@item C-c C-y
267Copy last killed rectangle into the buffer by overwriting, with upper 274Copy last killed rectangle into the buffer by overwriting, with upper
268left corner at point (@code{picture-yank-rectangle}). With argument, 275left corner at point (@code{picture-yank-rectangle}). With argument,
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index f85ee947790..adec632da6a 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -317,7 +317,8 @@ list of the form @code{(@var{pattern} @var{body-forms}@dots{})}.
317@var{pattern} of each clause, in textual order. If the value matches, 317@var{pattern} of each clause, in textual order. If the value matches,
318the clause succeeds; @code{pcase} then evaluates its @var{body-forms}, 318the clause succeeds; @code{pcase} then evaluates its @var{body-forms},
319and returns the value of the last of @var{body-forms}. Any remaining 319and returns the value of the last of @var{body-forms}. Any remaining
320@var{clauses} are ignored. 320@var{clauses} are ignored. If no clauses match, then the @code{pcase}
321form evaluates to @code{nil}.
321 322
322The @var{pattern} part of a clause can be of one of two types: 323The @var{pattern} part of a clause can be of one of two types:
323@dfn{QPattern}, a pattern quoted with a backquote; or a 324@dfn{QPattern}, a pattern quoted with a backquote; or a
diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index 6cfd074cf0b..ce148c9e1a9 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -118,7 +118,9 @@ two element list, binding its elements to symbols named `foo' and
118 118
119A significant difference from `cl-destructuring-bind' is that, if 119A significant difference from `cl-destructuring-bind' is that, if
120a pattern match fails, the next case is tried until either a 120a pattern match fails, the next case is tried until either a
121successful match is found or there are no more cases. 121successful match is found or there are no more cases. The CODE
122expression corresponding to the matching pattern determines the
123return value. If there is no match the returned value is nil.
122 124
123Another difference is that pattern elements may be quoted, 125Another difference is that pattern elements may be quoted,
124meaning they must match exactly: The pattern \\='(foo bar) 126meaning they must match exactly: The pattern \\='(foo bar)
@@ -211,7 +213,8 @@ Emacs Lisp manual for more information and examples."
211 213
212;;;###autoload 214;;;###autoload
213(defmacro pcase-exhaustive (exp &rest cases) 215(defmacro pcase-exhaustive (exp &rest cases)
214 "The exhaustive version of `pcase' (which see)." 216 "The exhaustive version of `pcase' (which see).
217If EXP fails to match any of the patterns in CASES, an error is signaled."
215 (declare (indent 1) (debug pcase)) 218 (declare (indent 1) (debug pcase))
216 (let* ((x (gensym "x")) 219 (let* ((x (gensym "x"))
217 (pcase--dontwarn-upats (cons x pcase--dontwarn-upats))) 220 (pcase--dontwarn-upats (cons x pcase--dontwarn-upats)))
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 69063abf033..08aefd01d0d 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -934,8 +934,12 @@ size, and full-buffer size."
934 (shr-browse-url)) 934 (shr-browse-url))
935 935
936(defun shr-browse-url (&optional external mouse-event) 936(defun shr-browse-url (&optional external mouse-event)
937 "Browse the URL under point. 937 "Browse the URL at point using `browse-url'.
938If EXTERNAL, browse the URL using `shr-external-browser'." 938If EXTERNAL is non-nil (interactively, the prefix argument), browse
939the URL using `shr-external-browser'.
940If this function is invoked by a mouse click, it will browse the URL
941at the position of the click. Optional argument MOUSE-EVENT describes
942the mouse click event."
939 (interactive (list current-prefix-arg last-nonmenu-event)) 943 (interactive (list current-prefix-arg last-nonmenu-event))
940 (mouse-set-point mouse-event) 944 (mouse-set-point mouse-event)
941 (let ((url (get-text-property (point) 'shr-url))) 945 (let ((url (get-text-property (point) 'shr-url)))
diff --git a/lisp/subr.el b/lisp/subr.el
index 113bd978b63..cfaa8aa4e54 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -768,7 +768,9 @@ side-effects, and the argument LIST is not modified."
768KEYS should be a string in the format returned by commands such 768KEYS should be a string in the format returned by commands such
769as `C-h k' (`describe-key'). 769as `C-h k' (`describe-key').
770This is the same format used for saving keyboard macros (see 770This is the same format used for saving keyboard macros (see
771`edmacro-mode')." 771`edmacro-mode').
772
773For an approximate inverse of this, see `key-description'."
772 ;; Don't use a defalias, since the `pure' property is only true for 774 ;; Don't use a defalias, since the `pure' property is only true for
773 ;; the calling convention of `kbd'. 775 ;; the calling convention of `kbd'.
774 (read-kbd-macro keys)) 776 (read-kbd-macro keys))