unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: raman <raman@google.com>
To: Mark Oteiza <mvoteiza@udel.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] timer-list -> list-timers?
Date: Sat, 16 Sep 2017 08:31:18 -0700	[thread overview]
Message-ID: <p91tw02mzi1.fsf@raman-glaptop2> (raw)
In-Reply-To: <87zi9u1xx7.fsf@udel.edu> (Mark Oteiza's message of "Sat, 16 Sep 2017 11:11:00 -0400")

Mark Oteiza <mvoteiza@udel.edu> writes:

1+ I've stumbled over this more than once in the last few months > 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"
>

-- 



  reply	other threads:[~2017-09-16 15:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-16 15:11 [PATCH] timer-list -> list-timers? Mark Oteiza
2017-09-16 15:31 ` raman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=p91tw02mzi1.fsf@raman-glaptop2 \
    --to=raman@google.com \
    --cc=emacs-devel@gnu.org \
    --cc=mvoteiza@udel.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).