[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d46811e 1/2: Merge from origin/emacs-26
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] master d46811e 1/2: Merge from origin/emacs-26 |
Date: |
Sun, 1 Apr 2018 10:54:08 -0400 (EDT) |
branch: master
commit d46811eeb5cca3d3de4a97f313c8485f54a55bfc
Merge: e19fde9 af1624f
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>
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
---
doc/emacs/fortran-xtra.texi | 24 +++++++++++++++++++++---
doc/emacs/macos.texi | 8 ++++++++
doc/emacs/misc.texi | 2 +-
doc/emacs/msdos.texi | 7 +++++++
doc/emacs/picture-xtra.texi | 9 ++++++++-
doc/lispref/control.texi | 3 ++-
lisp/emacs-lisp/pcase.el | 7 +++++--
lisp/net/shr.el | 8 ++++++--
lisp/subr.el | 4 +++-
9 files changed, 61 insertions(+), 11 deletions(-)
diff --git a/doc/emacs/fortran-xtra.texi b/doc/emacs/fortran-xtra.texi
index 859c613..fa5a3e6 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
form}. (In GNU Emacs we always count columns from 0; but note that
the Fortran standard counts from 1. You can customize the variable
@code{column-number-indicator-zero-based} to make the column display
-Fortran-like; @pxref{Optional Mode Line}.) The variable
address@hidden
+Fortran-like; @pxref{Optional Mode Line,,, emacs, the Emacs Manual}.)
address@hidden iftex
address@hidden
+Fortran-like; @pxref{Optional Mode Line}.)
address@hidden ifnottex
+The variable
@code{fortran-continuation-string} specifies what character to put in
column 5. A line that starts with a tab character followed by any digit
except @samp{0} is also a continuation line. We call this style of
@@ -254,7 +260,13 @@ column 8 must consist of one tab character.
indentation assumes it is a line number and moves it to columns 0
through 4. (Columns always count from 0 in Emacs, but setting
@code{column-number-indicator-zero-based} to @code{nil} can change
-that, @pxref{Optional Mode Line}.)
+that,
address@hidden
address@hidden Mode Line,,, emacs, the Emacs Manual}.)
address@hidden iftex
address@hidden
address@hidden Mode Line}.)
address@hidden ifnottex
@vindex fortran-line-number-indent
Line numbers of four digits or less are normally indented one space.
@@ -535,7 +547,13 @@ statement body. Column numbers appear above them.
Note that the column numbers count from zero, as always in GNU Emacs
(but customizing @code{column-number-indicator-zero-based} can change
-column display to match that of Fortran; @pxref{Optional Mode Line}).
+column display to match that of Fortran;
address@hidden
address@hidden Mode Line,,, emacs, the Emacs Manual}.)
address@hidden iftex
address@hidden
address@hidden Mode Line}.)
address@hidden ifnottex
As a result, the numbers may be one less than those you are familiar
with; but the positions they indicate in the line are standard for
Fortran.
diff --git a/doc/emacs/macos.texi b/doc/emacs/macos.texi
index e669eaa..ef2e944 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
Cocoa interface; this section only applies to the Cocoa build. This
does not support versions before macOS 10.6.
+ GNUstep is free software; macOS is not. Because it is a non-free
+operating system, macOS denies its users the freedom that every computer
+user deserves. That is an injustice. For your freedom's sake, we
+urge you to switch to a free operating system.
+
+ We support GNU Emacs on proprietary operating systems because
+we hope this taste of freedom will inspire users to escape from them.
+
For various historical and technical reasons, Emacs uses the term
@samp{Nextstep} internally, instead of ``Cocoa'' or ``macOS''; for
instance, most of the commands and variables described in this section
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 2349599..a4bfba3 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -3011,7 +3011,7 @@ is idle.
@findex butterfly
@cindex butterfly
- Real Programmers™ deploy @kbd{M-x butterfly}, which uses butterflies
+ ``Real Programmers'' deploy @kbd{M-x butterfly}, which uses butterflies
to flip a bit on the drive platter, see @uref{https://xkcd.com/378}.
@findex doctor
diff --git a/doc/emacs/msdos.texi b/doc/emacs/msdos.texi
index 90f0389..9353f4b 100644
--- a/doc/emacs/msdos.texi
+++ b/doc/emacs/msdos.texi
@@ -19,6 +19,13 @@ manual (@pxref{MS-DOS,,, emacs-xtra, Specialized Emacs
Features}).
section (@pxref{MS-DOS}).
@end ifnottex
+ MS-Windows is a non-free operating system; that means it denies its
+users the freedom that every computer user deserves. That is an
+injustice. For your freedom's sake, we urge you to switch to a free
+operating system.
+
+ We support GNU Emacs on proprietary operating systems because we
+hope this taste of freedom will inspire users to escape from them.
The behavior of Emacs on MS-Windows is reasonably similar to what is
documented 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 288a6e8..9ebc78e 100644
--- a/doc/emacs/picture-xtra.texi
+++ b/doc/emacs/picture-xtra.texi
@@ -262,7 +262,14 @@ Clear out the region-rectangle with spaces
text.
@item C-c C-w @var{r}
Similar, but save rectangle contents in register @var{r} first
-(@code{picture-clear-rectangle-to-register}). @xref{Registers}.
+(@code{picture-clear-rectangle-to-register}).
address@hidden
address@hidden,,, emacs, the Emacs Manual}.
address@hidden iftex
address@hidden
address@hidden
address@hidden ifnottex
+
@item C-c C-y
Copy last killed rectangle into the buffer by overwriting, with upper
left corner at point (@code{picture-yank-rectangle}). With argument,
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index f85ee94..adec632 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -317,7 +317,8 @@ list of the form @code{(@var{pattern} @address@hidden)}.
@var{pattern} of each clause, in textual order. If the value matches,
the clause succeeds; @code{pcase} then evaluates its @var{body-forms},
and returns the value of the last of @var{body-forms}. Any remaining
address@hidden are ignored.
address@hidden are ignored. If no clauses match, then the @code{pcase}
+form evaluates to @code{nil}.
The @var{pattern} part of a clause can be of one of two types:
@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 6cfd074..ce148c9 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
A significant difference from `cl-destructuring-bind' is that, if
a pattern match fails, the next case is tried until either a
-successful match is found or there are no more cases.
+successful match is found or there are no more cases. The CODE
+expression corresponding to the matching pattern determines the
+return value. If there is no match the returned value is nil.
Another difference is that pattern elements may be quoted,
meaning they must match exactly: The pattern \\='(foo bar)
@@ -211,7 +213,8 @@ Emacs Lisp manual for more information and examples."
;;;###autoload
(defmacro pcase-exhaustive (exp &rest cases)
- "The exhaustive version of `pcase' (which see)."
+ "The exhaustive version of `pcase' (which see).
+If EXP fails to match any of the patterns in CASES, an error is signaled."
(declare (indent 1) (debug pcase))
(let* ((x (gensym "x"))
(pcase--dontwarn-upats (cons x pcase--dontwarn-upats)))
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 69063ab..08aefd0 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -934,8 +934,12 @@ size, and full-buffer size."
(shr-browse-url))
(defun shr-browse-url (&optional external mouse-event)
- "Browse the URL under point.
-If EXTERNAL, browse the URL using `shr-external-browser'."
+ "Browse the URL at point using `browse-url'.
+If EXTERNAL is non-nil (interactively, the prefix argument), browse
+the URL using `shr-external-browser'.
+If this function is invoked by a mouse click, it will browse the URL
+at the position of the click. Optional argument MOUSE-EVENT describes
+the mouse click event."
(interactive (list current-prefix-arg last-nonmenu-event))
(mouse-set-point mouse-event)
(let ((url (get-text-property (point) 'shr-url)))
diff --git a/lisp/subr.el b/lisp/subr.el
index 113bd97..cfaa8aa 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -768,7 +768,9 @@ side-effects, and the argument LIST is not modified."
KEYS should be a string in the format returned by commands such
as `C-h k' (`describe-key').
This is the same format used for saving keyboard macros (see
-`edmacro-mode')."
+`edmacro-mode').
+
+For an approximate inverse of this, see `key-description'."
;; Don't use a defalias, since the `pure' property is only true for
;; the calling convention of `kbd'.
(read-kbd-macro keys))