aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2021-05-04 07:50:25 -0700
committerGlenn Morris2021-05-04 07:50:25 -0700
commit6a030deb3d5213d0b32a4d2d6b6e7839ce85b5fa (patch)
tree7051062bb188115b249d95928373500bf754092d
parentb8f88d76ea79b12d600a090f76cea9d6ec3818f2 (diff)
parent101a049f551b4013e54fdef0d87a74ec5dfd05e0 (diff)
downloademacs-6a030deb3d5213d0b32a4d2d6b6e7839ce85b5fa.tar.gz
emacs-6a030deb3d5213d0b32a4d2d6b6e7839ce85b5fa.zip
Merge from origin/emacs-27
101a049f55 Improve doc string of 'tab-width'. 43c154404e * lisp/emacs-lisp/elp.el: Doc fixes. 1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes. 6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...
-rw-r--r--admin/make-tarball.txt1
-rw-r--r--lisp/emacs-lisp/elp.el30
-rw-r--r--lisp/emacs-lisp/pp.el6
-rw-r--r--src/buffer.c9
4 files changed, 24 insertions, 22 deletions
diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt
index 2f763a5f937..ae007d76b03 100644
--- a/admin/make-tarball.txt
+++ b/admin/make-tarball.txt
@@ -268,6 +268,7 @@ The pages to update are:
268emacs.html (for a new major release, a more thorough update is needed) 268emacs.html (for a new major release, a more thorough update is needed)
269history.html 269history.html
270add the new NEWS file as news/NEWS.xx.y 270add the new NEWS file as news/NEWS.xx.y
271Copy new etc/MACHINES to MACHINES and CONTRIBUTE to CONTRIBUTE
271 272
272For every new release, a banner is displayed on top of the emacs.html 273For every new release, a banner is displayed on top of the emacs.html
273page. Uncomment and the release banner in emacs.html. Keep it on the 274page. Uncomment and the release banner in emacs.html. Keep it on the
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index 411ea2af69c..2ee19a35b23 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -1,7 +1,6 @@
1;;; elp.el --- Emacs Lisp Profiler -*- lexical-binding: t -*- 1;;; elp.el --- Emacs Lisp Profiler -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 1994-1995, 1997-1998, 2001-2021 Free Software 3;; Copyright (C) 1994-2021 Free Software Foundation, Inc.
4;; Foundation, Inc.
5 4
6;; Author: Barry A. Warsaw 5;; Author: Barry A. Warsaw
7;; Maintainer: emacs-devel@gnu.org 6;; Maintainer: emacs-devel@gnu.org
@@ -30,8 +29,8 @@
30;; hacks those functions so that profiling information is recorded 29;; hacks those functions so that profiling information is recorded
31;; whenever they are called. To print out the current results, use 30;; whenever they are called. To print out the current results, use
32;; M-x elp-results. If you want output to go to standard-output 31;; M-x elp-results. If you want output to go to standard-output
33;; instead of a separate buffer, setq elp-use-standard-output to 32;; instead of a separate buffer, set `elp-use-standard-output' to
34;; non-nil. With elp-reset-after-results set to non-nil, profiling 33;; non-nil. With `elp-reset-after-results' set to non-nil, profiling
35;; information will be reset whenever the results are displayed. You 34;; information will be reset whenever the results are displayed. You
36;; can also reset all profiling info at any time with M-x 35;; can also reset all profiling info at any time with M-x
37;; elp-reset-all. 36;; elp-reset-all.
@@ -40,12 +39,12 @@
40;; the package follows the GNU coding standard of a common textual 39;; the package follows the GNU coding standard of a common textual
41;; prefix. Use M-x elp-instrument-package for this. 40;; prefix. Use M-x elp-instrument-package for this.
42;; 41;;
43;; If you want to sort the results, set elp-sort-by-function to some 42;; If you want to sort the results, set `elp-sort-by-function' to some
44;; predicate function. The three most obvious choices are predefined: 43;; predicate function. The three most obvious choices are predefined:
45;; elp-sort-by-call-count, elp-sort-by-average-time, and 44;; `elp-sort-by-call-count', `elp-sort-by-average-time', and
46;; elp-sort-by-total-time. Also, you can prune from the output, all 45;; `elp-sort-by-total-time'. Also, you can prune from the output, all
47;; functions that have been called fewer than a given number of times 46;; functions that have been called fewer than a given number of times
48;; by setting elp-report-limit. 47;; by setting `elp-report-limit'.
49;; 48;;
50;; Elp can instrument byte-compiled functions just as easily as 49;; Elp can instrument byte-compiled functions just as easily as
51;; interpreted functions, but it cannot instrument macros. However, 50;; interpreted functions, but it cannot instrument macros. However,
@@ -95,11 +94,11 @@
95 94
96;; Note that there are plenty of factors that could make the times 95;; Note that there are plenty of factors that could make the times
97;; reported unreliable, including the accuracy and granularity of your 96;; reported unreliable, including the accuracy and granularity of your
98;; system clock, and the overhead spent in lisp calculating and 97;; system clock, and the overhead spent in Lisp calculating and
99;; recording the intervals. I figure the latter is pretty constant, 98;; recording the intervals. I figure the latter is pretty constant,
100;; so while the times may not be entirely accurate, I think they'll 99;; so while the times may not be entirely accurate, I think they'll
101;; give you a good feel for the relative amount of work spent in the 100;; give you a good feel for the relative amount of work spent in the
102;; various lisp routines you are profiling. Note further that times 101;; various Lisp routines you are profiling. Note further that times
103;; are calculated using wall-clock time, so other system load will 102;; are calculated using wall-clock time, so other system load will
104;; affect accuracy too. 103;; affect accuracy too.
105 104
@@ -404,15 +403,15 @@ original definition, use \\[elp-restore-function] or \\[elp-restore-all]."
404(defvar elp-et-len nil) 403(defvar elp-et-len nil)
405 404
406(defun elp-sort-by-call-count (vec1 vec2) 405(defun elp-sort-by-call-count (vec1 vec2)
407 ;; sort by highest call count. See `sort'. 406 "Predicate to sort by highest call count. See `sort'."
408 (>= (aref vec1 0) (aref vec2 0))) 407 (>= (aref vec1 0) (aref vec2 0)))
409 408
410(defun elp-sort-by-total-time (vec1 vec2) 409(defun elp-sort-by-total-time (vec1 vec2)
411 ;; sort by highest total time spent in function. See `sort'. 410 "Predicate to sort by highest total time spent in function. See `sort'."
412 (>= (aref vec1 1) (aref vec2 1))) 411 (>= (aref vec1 1) (aref vec2 1)))
413 412
414(defun elp-sort-by-average-time (vec1 vec2) 413(defun elp-sort-by-average-time (vec1 vec2)
415 ;; sort by highest average time spent in function. See `sort'. 414 "Predicate to sort by highest average time spent in function. See `sort'."
416 (>= (aref vec1 2) (aref vec2 2))) 415 (>= (aref vec1 2) (aref vec2 2)))
417 416
418(defsubst elp-pack-number (number width) 417(defsubst elp-pack-number (number width)
@@ -470,13 +469,13 @@ original definition, use \\[elp-restore-function] or \\[elp-restore-all]."
470 "Keymap used on the function name column." ) 469 "Keymap used on the function name column." )
471 470
472(defun elp-results-jump-to-definition (&optional event) 471(defun elp-results-jump-to-definition (&optional event)
473 "Jump to the definition of the function under the point." 472 "Jump to the definition of the function at point."
474 (interactive (list last-nonmenu-event)) 473 (interactive (list last-nonmenu-event))
475 (if event (posn-set-point (event-end event))) 474 (if event (posn-set-point (event-end event)))
476 (find-function (get-text-property (point) 'elp-symname))) 475 (find-function (get-text-property (point) 'elp-symname)))
477 476
478(defun elp-output-insert-symname (symname) 477(defun elp-output-insert-symname (symname)
479 ;; Insert SYMNAME with text properties. 478 "Insert SYMNAME with text properties."
480 (insert (propertize symname 479 (insert (propertize symname
481 'elp-symname (intern symname) 480 'elp-symname (intern symname)
482 'keymap elp-results-symname-map 481 'keymap elp-results-symname-map
@@ -587,7 +586,6 @@ displayed."
587 "Un-instrument before unloading a function." 586 "Un-instrument before unloading a function."
588 (elp-restore-function (cdr x))) 587 (elp-restore-function (cdr x)))
589 588
590
591(provide 'elp) 589(provide 'elp)
592 590
593;;; elp.el ends here 591;;; elp.el ends here
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el
index 2fd4724aef1..0bf774dffd8 100644
--- a/lisp/emacs-lisp/pp.el
+++ b/lisp/emacs-lisp/pp.el
@@ -139,7 +139,7 @@ Also add the value to the front of the list in the variable `values'."
139 (pp-display-expression (macroexpand-1 expression) "*Pp Macroexpand Output*")) 139 (pp-display-expression (macroexpand-1 expression) "*Pp Macroexpand Output*"))
140 140
141(defun pp-last-sexp () 141(defun pp-last-sexp ()
142 "Read sexp before point. Ignores leading comment characters." 142 "Read sexp before point. Ignore leading comment characters."
143 (with-syntax-table emacs-lisp-mode-syntax-table 143 (with-syntax-table emacs-lisp-mode-syntax-table
144 (let ((pt (point))) 144 (let ((pt (point)))
145 (save-excursion 145 (save-excursion
@@ -159,7 +159,7 @@ Also add the value to the front of the list in the variable `values'."
159;;;###autoload 159;;;###autoload
160(defun pp-eval-last-sexp (arg) 160(defun pp-eval-last-sexp (arg)
161 "Run `pp-eval-expression' on sexp before point. 161 "Run `pp-eval-expression' on sexp before point.
162With argument, pretty-print output into current buffer. 162With ARG, pretty-print output into current buffer.
163Ignores leading comment characters." 163Ignores leading comment characters."
164 (interactive "P") 164 (interactive "P")
165 (if arg 165 (if arg
@@ -172,7 +172,7 @@ Ignores leading comment characters."
172;;;###autoload 172;;;###autoload
173(defun pp-macroexpand-last-sexp (arg) 173(defun pp-macroexpand-last-sexp (arg)
174 "Run `pp-macroexpand-expression' on sexp before point. 174 "Run `pp-macroexpand-expression' on sexp before point.
175With argument, pretty-print output into current buffer. 175With ARG, pretty-print output into current buffer.
176Ignores leading comment characters." 176Ignores leading comment characters."
177 (interactive "P") 177 (interactive "P")
178 (if arg 178 (if arg
diff --git a/src/buffer.c b/src/buffer.c
index 9e417bf555c..df302db0e52 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5673,9 +5673,12 @@ Linefeed indents to this column in Fundamental mode. */);
5673 DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width), 5673 DEFVAR_PER_BUFFER ("tab-width", &BVAR (current_buffer, tab_width),
5674 Qintegerp, 5674 Qintegerp,
5675 doc: /* Distance between tab stops (for display of tab characters), in columns. 5675 doc: /* Distance between tab stops (for display of tab characters), in columns.
5676NOTE: This controls the display width of a TAB character, and not 5676This controls the width of a TAB character on display.
5677the size of an indentation step. 5677The value should be a positive integer.
5678This should be an integer greater than zero. */); 5678Note that this variable doesn't necessarily affect the size of the
5679indentation step. However, if the major mode's indentation facility
5680inserts one or more TAB characters, this variable will affect the
5681indentation step as well, even if `indent-tabs-mode' is non-nil. */);
5679 5682
5680 DEFVAR_PER_BUFFER ("ctl-arrow", &BVAR (current_buffer, ctl_arrow), Qnil, 5683 DEFVAR_PER_BUFFER ("ctl-arrow", &BVAR (current_buffer, ctl_arrow), Qnil,
5681 doc: /* Non-nil means display control chars with uparrow. 5684 doc: /* Non-nil means display control chars with uparrow.