diff options
| -rw-r--r-- | doc/emacs/display.texi | 4 | ||||
| -rw-r--r-- | lisp/man.el | 8 | ||||
| -rw-r--r-- | lisp/play/pong.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 17 | ||||
| -rw-r--r-- | lisp/simple.el | 18 |
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 | |||
| 1116 | arrow. | 1116 | arrow. |
| 1117 | 1117 | ||
| 1118 | The fringes can also indicate other things, such as buffer | 1118 | The fringes can also indicate other things, such as buffer |
| 1119 | boundaries (@pxref{Displaying Boundaries}), and where a program you | 1119 | boundaries (@pxref{Displaying Boundaries}), unused lines near the end |
| 1120 | of the window (@pxref{indicate-empty-lines}), and where a program you | ||
| 1120 | are debugging is executing (@pxref{Debuggers}). | 1121 | are 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 |
| 1262 | the window with a small image in the left fringe (@pxref{Fringes}). | 1264 | the window with a small image in the left fringe (@pxref{Fringes}). |
| 1263 | The image appears for screen lines that do not correspond to any | 1265 | The 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. |
| 266 | This is called left for historical reasons, since in some pong | 266 | This is called left for historical reasons, since in some pong |
| 267 | implementations you move with left/right paddle." | 267 | implementations 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. |
| 5360 | It is inserted into that buffer before its point. | 5360 | The text is inserted into that buffer before its point. |
| 5361 | BUFFER can be a buffer or the name of a buffer; this | ||
| 5362 | function will create BUFFER if it doesn't already exist. | ||
| 5361 | 5363 | ||
| 5362 | When calling from a program, give three arguments: | 5364 | When calling from a program, give three arguments: |
| 5363 | BUFFER (or buffer name), START and END. | 5365 | BUFFER (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. |
| 5383 | It is inserted into that buffer after its point. | 5385 | The text is inserted into that buffer after its point. |
| 5386 | BUFFER can be a buffer or the name of a buffer; this | ||
| 5387 | function will create BUFFER if it doesn't already exist. | ||
| 5384 | 5388 | ||
| 5385 | When calling from a program, give three arguments: | 5389 | When calling from a program, give three arguments: |
| 5386 | BUFFER (or buffer name), START and END. | 5390 | BUFFER (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. |
| 5397 | It is inserted into that buffer, replacing existing text there. | 5401 | The text is inserted into that buffer, replacing existing text there. |
| 5402 | BUFFER can be a buffer or the name of a buffer; this | ||
| 5403 | function will create BUFFER if it doesn't already exist. | ||
| 5398 | 5404 | ||
| 5399 | When calling from a program, give three arguments: | 5405 | When calling from a program, give three arguments: |
| 5400 | BUFFER (or buffer name), START and END. | 5406 | BUFFER (or buffer name), START and END. |