aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-08-10 08:44:31 -0700
committerGlenn Morris2019-08-10 08:44:31 -0700
commit7343474b79332b05abc1d51ae2bbc3e2ba43deeb (patch)
treec584ffae74bddab1b6f8d89035dc0e5af06178aa
parent6bebfa77a9ae8c63b29f159387600c097ea32eaa (diff)
parent0860ac0e9db15ee0f094df7f6b0bbd5961bb08ac (diff)
downloademacs-7343474b79332b05abc1d51ae2bbc3e2ba43deeb.tar.gz
emacs-7343474b79332b05abc1d51ae2bbc3e2ba43deeb.zip
Merge from origin/emacs-26
0860ac0 (origin/emacs-26) Improve documentation of features that use ... fae1ff6 Fix docstrings in pong 82a2894 Improve doc strings of 'append-to-buffer' and friends cb0403d Fix octave-mode ElDoc support 691790b Avoid Groff hanging on MS-Windows when invoked by "M-x man"
-rw-r--r--doc/emacs/display.texi4
-rw-r--r--lisp/man.el8
-rw-r--r--lisp/play/pong.el4
-rw-r--r--lisp/progmodes/octave.el17
-rw-r--r--lisp/simple.el18
5 files changed, 40 insertions, 11 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 8e842bea179..6fc99bd2716 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1116,7 +1116,8 @@ the arrows scrolls the display horizontally in the direction of the
1116arrow. 1116arrow.
1117 1117
1118 The fringes can also indicate other things, such as buffer 1118 The fringes can also indicate other things, such as buffer
1119boundaries (@pxref{Displaying Boundaries}), and where a program you 1119boundaries (@pxref{Displaying Boundaries}), unused lines near the end
1120of the window (@pxref{indicate-empty-lines}), and where a program you
1120are debugging is executing (@pxref{Debuggers}). 1121are debugging is executing (@pxref{Debuggers}).
1121 1122
1122@vindex overflow-newline-into-fringe 1123@vindex overflow-newline-into-fringe
@@ -1258,6 +1259,7 @@ extra spaces at the end of each line in the region.
1258@vindex indicate-empty-lines 1259@vindex indicate-empty-lines
1259@cindex unused lines 1260@cindex unused lines
1260@cindex fringes, and unused line indication 1261@cindex fringes, and unused line indication
1262@anchor{indicate-empty-lines}
1261 On graphical displays, Emacs can indicate unused lines at the end of 1263 On graphical displays, Emacs can indicate unused lines at the end of
1262the window with a small image in the left fringe (@pxref{Fringes}). 1264the window with a small image in the left fringe (@pxref{Fringes}).
1263The image appears for screen lines that do not correspond to any 1265The image appears for screen lines that do not correspond to any
diff --git a/lisp/man.el b/lisp/man.el
index 8858451b384..89d514423b6 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -624,7 +624,13 @@ This is necessary if one wants to dump man.el with Emacs."
624 ;; so we don't need `2>' even with DOS shells 624 ;; so we don't need `2>' even with DOS shells
625 ;; which do support stderr redirection. 625 ;; which do support stderr redirection.
626 ((not (fboundp 'make-process)) " %s") 626 ((not (fboundp 'make-process)) " %s")
627 ((concat " %s 2>" null-device))))) 627 ((concat " %s 2>" null-device
628 ;; Some MS-Windows ports of Groff
629 ;; try to read stdin after exhausting
630 ;; the command-line arguments; make
631 ;; them exit if/when they do.
632 (if (eq system-type 'windows-nt)
633 (concat " <" null-device)))))))
628 (flist Man-filter-list)) 634 (flist Man-filter-list))
629 (while (and flist (car flist)) 635 (while (and flist (car flist))
630 (let ((pcom (car (car flist))) 636 (let ((pcom (car (car flist)))
diff --git a/lisp/play/pong.el b/lisp/play/pong.el
index 759dbb404c6..e41db612878 100644
--- a/lisp/play/pong.el
+++ b/lisp/play/pong.el
@@ -262,7 +262,7 @@
262 262
263 263
264(defun pong-move-left () 264(defun pong-move-left ()
265 "Move bat 2 up. 265 "Move bat 1 up.
266This is called left for historical reasons, since in some pong 266This is called left for historical reasons, since in some pong
267implementations you move with left/right paddle." 267implementations you move with left/right paddle."
268 (interactive) 268 (interactive)
@@ -274,7 +274,7 @@ implementations you move with left/right paddle."
274 274
275 275
276(defun pong-move-right () 276(defun pong-move-right ()
277 "Move bat 2 up." 277 "Move bat 1 down."
278 (interactive) 278 (interactive)
279 (if (< (+ pong-bat-player1 pong-bat-width) (1- pong-height)) 279 (if (< (+ pong-bat-player1 pong-bat-width) (1- pong-height))
280 (and 280 (and
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index b770edb7bcb..51ba34fa0fe 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -1616,8 +1616,23 @@ code line."
1616 (list (format "print_usage ('%s');\n" fn))) 1616 (list (format "print_usage ('%s');\n" fn)))
1617 (let (result) 1617 (let (result)
1618 (dolist (line inferior-octave-output-list) 1618 (dolist (line inferior-octave-output-list)
1619 ;; The help output has changed a few times in GNU Octave.
1620 ;; Earlier versions output "usage: " before the function signature.
1621 ;; After deprecating the usage function, and up until GNU Octave 4.0.3,
1622 ;; the output looks like this:
1623 ;; -- Mapping Function: abs (Z).
1624 ;; After GNU Octave 4.2.0, the output is less verbose and it looks like
1625 ;; this:
1626 ;; -- abs (Z)
1627 ;; The following regexp matches these three formats.
1628 ;; The "usage: " alternative matches the symbol, because a call to
1629 ;; print_usage with a non-existent function (e.g., print_usage ('A'))
1630 ;; would output:
1631 ;; error: print_usage: 'A' not found
1632 ;; and we wouldn't like to match anything in this case.
1633 ;; See bug #36459.
1619 (when (string-match 1634 (when (string-match
1620 "\\s-*\\(?:--[^:]+\\|usage\\):\\s-*\\(.*\\)$" 1635 "\\s-*\\(?:--[^:]+:\\|\\_<usage:\\|--\\)\\s-*\\(.*\\)$"
1621 line) 1636 line)
1622 (push (match-string 1 line) result))) 1637 (push (match-string 1 line) result)))
1623 (setq octave-eldoc-cache 1638 (setq octave-eldoc-cache
diff --git a/lisp/simple.el b/lisp/simple.el
index 3c5ea1ca75a..bec58addcaa 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5356,8 +5356,10 @@ BUFFER may be a buffer or a buffer name."
5356 nil) 5356 nil)
5357 5357
5358(defun append-to-buffer (buffer start end) 5358(defun append-to-buffer (buffer start end)
5359 "Append to specified buffer the text of the region. 5359 "Append to specified BUFFER the text of the region.
5360It is inserted into that buffer before its point. 5360The text is inserted into that buffer before its point.
5361BUFFER can be a buffer or the name of a buffer; this
5362function will create BUFFER if it doesn't already exist.
5361 5363
5362When calling from a program, give three arguments: 5364When calling from a program, give three arguments:
5363BUFFER (or buffer name), START and END. 5365BUFFER (or buffer name), START and END.
@@ -5379,8 +5381,10 @@ START and END specify the portion of the current buffer to be copied."
5379 (set-window-point window (point)))))))) 5381 (set-window-point window (point))))))))
5380 5382
5381(defun prepend-to-buffer (buffer start end) 5383(defun prepend-to-buffer (buffer start end)
5382 "Prepend to specified buffer the text of the region. 5384 "Prepend to specified BUFFER the text of the region.
5383It is inserted into that buffer after its point. 5385The text is inserted into that buffer after its point.
5386BUFFER can be a buffer or the name of a buffer; this
5387function will create BUFFER if it doesn't already exist.
5384 5388
5385When calling from a program, give three arguments: 5389When calling from a program, give three arguments:
5386BUFFER (or buffer name), START and END. 5390BUFFER (or buffer name), START and END.
@@ -5393,8 +5397,10 @@ START and END specify the portion of the current buffer to be copied."
5393 (insert-buffer-substring oldbuf start end))))) 5397 (insert-buffer-substring oldbuf start end)))))
5394 5398
5395(defun copy-to-buffer (buffer start end) 5399(defun copy-to-buffer (buffer start end)
5396 "Copy to specified buffer the text of the region. 5400 "Copy to specified BUFFER the text of the region.
5397It is inserted into that buffer, replacing existing text there. 5401The text is inserted into that buffer, replacing existing text there.
5402BUFFER can be a buffer or the name of a buffer; this
5403function will create BUFFER if it doesn't already exist.
5398 5404
5399When calling from a program, give three arguments: 5405When calling from a program, give three arguments:
5400BUFFER (or buffer name), START and END. 5406BUFFER (or buffer name), START and END.