From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] timer-list -> list-timers? Date: Sat, 16 Sep 2017 08:31:18 -0700 Message-ID: References: <87zi9u1xx7.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505575920 13233 195.159.176.226 (16 Sep 2017 15:32:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Sep 2017 15:32:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 16 17:31:56 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 1dtF4V-0003HB-Vp for ged-emacs-devel@m.gmane.org; Sat, 16 Sep 2017 17:31:56 +0200 Original-Received: from localhost ([::1]:57663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtF4d-0005dh-Er for ged-emacs-devel@m.gmane.org; Sat, 16 Sep 2017 11:32:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtF44-0005dK-Vq for emacs-devel@gnu.org; Sat, 16 Sep 2017 11:31:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtF3z-0002ki-Vf for emacs-devel@gnu.org; Sat, 16 Sep 2017 11:31:28 -0400 Original-Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]:51859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtF3z-0002kD-P1 for emacs-devel@gnu.org; Sat, 16 Sep 2017 11:31:23 -0400 Original-Received: by mail-pg0-x231.google.com with SMTP id k193so2994185pgc.8 for ; Sat, 16 Sep 2017 08:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xRklnilZnj3qkcMkwNJpMDQv7ETaSRUqVYARnjQ2Nwo=; b=Be41P1NJiBcrGEINaUMcr2yenphuQm4F/L+1GxZF5rtzuHLhFgNhenkIyNY3bZDHlM ZWM5Nhw03aJl4n9nLmAe+dCpolTIiUIAjzBjOnq+RlZlMaNA0jR/d3GGsRPQ8clmBZrh eWiHcrYLxajCnBmL0JGW8HepwfFrFVsdZ48OPbTHlaIWDuZsNU4jdmdY2p5dhz+9XCDs Rr1sIOsyDyTGhOryirenhE/VSRlfHYr+zdGKdLdMipfKjBREI45hsHjby6BqJXva6V4u BHnHlSbCdB6dywcrfStMn61edCpj472+8PYpSMdlprCVUZBlukxBUPqe/ifb/1zhe7yF FBbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xRklnilZnj3qkcMkwNJpMDQv7ETaSRUqVYARnjQ2Nwo=; b=C0uOziCTSdtrVrCwYK/qBkquqJhLZNysfKQGBwUHy6GKLsDDuvxmFbouiVkeoY39F7 MuT8IpCQeblGrnV+VR/wNeGbtALY85JS7AtAXnVBnqud0t47ZlVZAnu0ImueXhx5YQD5 Yderg8pHcBV4C+a1ZVIOHm+Qin/wY6cto+M6webOpcLTJRzpyuEfGEGFOCd/znRra7DI +nnaPnUxL5Eu8FZyBIg+AbrJUzIbxAiKozRfAnPqnQbMe+H6o+2AHuhkt6Gr1LlIVgKZ AsTb98RW8DCwxfajtSMUTKunxk/HaRPftuHztocWFKmlm0GbCtm2bFj9LQyp/PG0Uzko 7jvA== X-Gm-Message-State: AHPjjUj6T2JdLI2nloMeo0Xx8Rr35hLrlN1edP8N50/aApna2ZmtDw/i 0i6YaMLu3SYKP5i0vB0+Pg== X-Google-Smtp-Source: ADKCNb67tu7wmMlMIU8OmeDe5UEZ6/W7a6PwyuGsGSqLjE9iqPckAI8NMRHKdU9iYG+3bHO+/5f01Q== X-Received: by 10.98.112.138 with SMTP id l132mr28173304pfc.71.1505575880845; Sat, 16 Sep 2017 08:31:20 -0700 (PDT) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id h10sm5796410pgq.86.2017.09.16.08.31.19 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 16 Sep 2017 08:31:20 -0700 (PDT) In-Reply-To: <87zi9u1xx7.fsf@udel.edu> (Mark Oteiza's message of "Sat, 16 Sep 2017 11:11:00 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::231 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:218365 Archived-At: Mark Oteiza 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" > --