unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] timer-list -> list-timers?
@ 2017-09-16 15:11 Mark Oteiza
  2017-09-16 15:31 ` raman
  2017-09-16 16:59 ` Eli Zaretskii
  0 siblings, 2 replies; 21+ messages in thread
From: Mark Oteiza @ 2017-09-16 15:11 UTC (permalink / raw)
  To: emacs-devel


Hi,

Why was this named timer-list?  While I understand there is a push to
keep everything always in its own "namespace", list-foo is its own
namespace, and is a useful one that collects special listings of
different things around emacs.

diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 441fda5d82..af646ce40f 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -1885,8 +1885,8 @@ Timers
 cause anything special to happen.
 @end defun
 
-@findex timer-list
-The @code{timer-list} command lists all the currently active timers.
+@findex list-timers
+The @code{list-timers} command lists all the currently active timers.
 There's only one command available in the buffer displayed: @kbd{c}
 (@code{timer-list-cancel}) that will cancel the timer on the line
 under point.
diff --git a/lisp/emacs-lisp/timer-list.el b/lisp/emacs-lisp/timer-list.el
index 44a315f980..69c6741983 100644
--- a/lisp/emacs-lisp/timer-list.el
+++ b/lisp/emacs-lisp/timer-list.el
@@ -25,7 +25,7 @@
 ;;; Code:
 
 ;;;###autoload
-(defun timer-list (&optional _ignore-auto _nonconfirm)
+(defun list-timers (&optional _ignore-auto _nonconfirm)
   "List all timers in a buffer."
   (interactive)
   (pop-to-buffer-same-window (get-buffer-create "*timer-list*"))
@@ -67,7 +67,7 @@ timer-list
   (goto-char (point-min)))
 ;; This command can be destructive if they don't know what they are
 ;; doing.  Kids, don't try this at home!
-;;;###autoload (put 'timer-list 'disabled "Beware: manually canceling timers can ruin your Emacs session.")
+;;;###autoload (put 'list-timers 'disabled "Beware: manually canceling timers can ruin your Emacs session.")
 
 (defvar timer-list-mode-map
   (let ((map (make-sparse-keymap)))
@@ -84,7 +84,7 @@ timer-list-mode
   (setq bidi-paragraph-direction 'left-to-right)
   (setq truncate-lines t)
   (buffer-disable-undo)
-  (setq-local revert-buffer-function 'timer-list)
+  (setq-local revert-buffer-function #'list-timers)
   (setq buffer-read-only t)
   (setq header-line-format
         (format "%4s %10s %8s %s"



^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-09-21 18:28 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-16 15:11 [PATCH] timer-list -> list-timers? Mark Oteiza
2017-09-16 15:31 ` raman
2017-09-16 16:59 ` Eli Zaretskii
2017-09-16 17:02   ` Eli Zaretskii
2017-09-16 18:56   ` Lars Ingebrigtsen
2017-09-17  3:13     ` Mark Oteiza
2017-09-19 23:39     ` John Wiegley
2017-09-20 11:41       ` Mark Oteiza
2017-09-20 14:34     ` Ted Zlatanov
2017-09-20 16:17       ` Jorge A. Alfaro-Murillo
2017-09-20 18:52         ` Tom Tromey
2017-09-20 19:37         ` Eli Zaretskii
2017-09-20 22:29           ` Jorge A. Alfaro-Murillo
2017-09-21  0:32             ` Mark Oteiza
2017-09-21 14:24               ` Ted Zlatanov
2017-09-21 14:35               ` Jorge A. Alfaro-Murillo
2017-09-21  7:43             ` Eli Zaretskii
2017-09-21  0:30         ` Mark Oteiza
2017-09-21 18:28           ` Richard Stallman
2017-09-20 17:49       ` Drew Adams
2017-09-21 18:26         ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).