From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: [PATCH] timer-list -> list-timers? Date: Sat, 16 Sep 2017 11:11:00 -0400 Message-ID: <87zi9u1xx7.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505574708 11092 195.159.176.226 (16 Sep 2017 15:11:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Sep 2017 15:11:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 16 17:11:43 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtEku-0002Yx-ON for ged-emacs-devel@m.gmane.org; Sat, 16 Sep 2017 17:11:41 +0200 Original-Received: from localhost ([::1]:57605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtEkz-0008EI-2I for ged-emacs-devel@m.gmane.org; Sat, 16 Sep 2017 11:11:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtEkL-0008Dx-Ht for emacs-devel@gnu.org; Sat, 16 Sep 2017 11:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtEkI-00006W-Bd for emacs-devel@gnu.org; Sat, 16 Sep 2017 11:11:05 -0400 Original-Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:46879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtEkI-00006H-82 for emacs-devel@gnu.org; Sat, 16 Sep 2017 11:11:02 -0400 Original-Received: by mail-qk0-x22f.google.com with SMTP id z143so4257347qkb.3 for ; Sat, 16 Sep 2017 08:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=D1n2jtlR7KstRLacWlvr6hscG21vqh8pH9rvU2+xA+o=; b=jM8RQQRiulimoS1yMeEfKzsL6FE7d6ro4YeEDMIP4/Mmh4Xzmm4DCOcRB6ixcx9+/o yODNSGn6u+D4nb/c9gUlAUC5oD42VAxD4Se/PtcnGNQzTh1To7oC+z7TQ8RVRnu4orvm BHbX+9FzOIA+8Csi4vQURWGuWzVz7HHuuexLaj8ORKUSfPdJ+Xb+MRs/5wKITDwuQdIl flimnpdPbVHuBDIS9dnL3eOqFV8Z1aAk4bHQnj+zMpmMUyGJGJINmGunsR4dL20IUbb9 bIScsYTphgyoB293wP5T3TtQpjU7Hq0GXYNslZjxaiPTaBRo76+guGA94JnWYcmOX9pn e9UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=D1n2jtlR7KstRLacWlvr6hscG21vqh8pH9rvU2+xA+o=; b=HtgMc7YF5bLHTIgHA7MGJ04b9Fn990GT4AJ5kRlZo0gmNSwOkTUlan+tsQkgZGklMY syG0B6pSHAVm6+W9qvwOefTI0FwX+wWCX880rwLxi5kHH1A0xv3tVPDDN/PAUrIPjitS axitB5/nDUH1hfPQM+wUnPmIC0/CUWKJfRXwV5q7qhe+mXwMFBo/CdyP4y43mCdipqPO Vsq2t3yPGTufkV9xHqBvIIY4jrj6z69WhPgegeJa3CsWvcaCUkeAQT8Z+ro2jurvaITa /f64iM8UE/upsML3uWmXEHJrJUU22R0DViLYmYik1vW82+Xwz5KPQ5haoUHwjKAxpfHh oAhw== X-Gm-Message-State: AHPjjUgc4aZlk5WWnk0QjKb/dI2G/Bf7WXmQawu9vFl8ts5aj0iZsV7N KQx9fk2G26VpTIHALGqRzA== X-Google-Smtp-Source: AOwi7QDtEpBc0l0Bvz8ExVozPPnJxz7yXbrfiRMEn7qoaE1Thb6Iws9Ihstjji02ryfnbS/aRgNA6g== X-Received: by 10.55.212.68 with SMTP id l65mr12971979qki.228.1505574661121; Sat, 16 Sep 2017 08:11:01 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id u49sm2305967qta.85.2017.09.16.08.11.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Sep 2017 08:11:00 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 1A6096A828; Sat, 16 Sep 2017 11:11:00 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218364 Archived-At: 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"