From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: debbugs-0.10: two comments Date: Mon, 12 Sep 2016 09:05:07 +0200 Message-ID: <8737l5sin0.fsf@gmx.de> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473664159 3433 195.159.176.226 (12 Sep 2016 07:09:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2016 07:09:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: larsi@gnus.org, Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 12 09:09:15 2016 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 1bjLMb-00088d-FG for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2016 09:09:09 +0200 Original-Received: from localhost ([::1]:40781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjLMZ-00060L-Je for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2016 03:09:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjLIo-0003l0-RW for emacs-devel@gnu.org; Mon, 12 Sep 2016 03:05:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjLIl-00041P-HZ for emacs-devel@gnu.org; Mon, 12 Sep 2016 03:05:14 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:62981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjLIl-000418-6k for emacs-devel@gnu.org; Mon, 12 Sep 2016 03:05:11 -0400 Original-Received: from detlef.gmx.de ([87.146.35.121]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LjZn2-1bCUST0c3s-00bbdj; Mon, 12 Sep 2016 09:05:09 +0200 In-Reply-To: (Tino Calancha's message of "Mon, 12 Sep 2016 15:08:11 +0900 (JST)") X-Provags-ID: V03:K0:hdznEYgJQcp1zQDho3mfcWhjQDxP2JpNCEzG6081YrXXoNLsWEG SKJPrZrujaTunm0sbtSFkMwxTyqjR4rrb/KvuzukLzo+f2L110czHpF+pmlnctK8nRDKP5T 8EThoFgEaj0tCZF+HI/X+DaTCtufDKv7NGopehcmL6Zyv7MThRdMHWnERud5I9RdmZb6trJ Yrqd9gUU6eR0Y2tzacDug== X-UI-Out-Filterresults: notjunk:1;V01:K0:XQpQiapJPW4=:t5E1bXfH8HIB79IzfNLYNi 10T3/3q1lkjBwmJA0VORDA5Lqlq/rxZL6kWcXRGzSefKNvWWsWe40/FKFEz5ESNH0jiYgWL3g 3h/GnD4rSaCIKm/ZCSKZ65LbTNXykmqqxUvqoZOM3no3GgSepuT9OWYce5Khdk8h+O3D+Tgfn Gak1sR9PoYvTKP3Gd8tp0fNIoVEF2CabU6CjNfOODUMpxnX9JYO2Utz5K35Cio8oBbVflqiSU MCkc5Um7xIvor/GPQR+aYLlBvw1x4vkJ2bK9w79TOQgMMjLNUQqdIo5O6qajSQyy2/RRxjtNd kAeUtJLgqQ9nF6iphGxOMuOJZrmCJiot60t6krZW/PumUHl5vpd5E2hyERa018PrxEWml/c8x yfxx1WTO0KC0PYhgnNuA+Kb1EYJwMme1KqPx0iwVlrd4GIyjSQ2GrczdoYdKsnqDpPW16sc8+ 8p4T3Ew1puvlD701Won00UjoGTcsqKv8xiWIKKTZf+QYKg2t4pGi1ZCIccKOPUWLj+LH8+8Cn Y4S4sExlXf+E1OEfDET73jsVhuMBmXSIsQ3Mzcl8v0+H5AHmyCXTEDSxhn3HRiEwIvd8iACfk yFeRffQ00QipK7c2kB8PgwGm0awF21sXW6EZwzdefGaQQ8iZVko04Fc7TIBJ6WqRYumL0GUCO gBDXiEOYikaKxl3lvPFy04VrSPnR8zX7MEwC9JkQ+/AvmzfDpZ1i8mG4XmKtVsJDp5RFPDLAq j7i6uXXdUtnXI8YA4/VDNHFIjICMtgZZbyOtadDUjDxyh9eFG+Hr2QBFbC8KkUImUyJ8U/cJ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 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:207376 Archived-At: Tino Calancha writes: [My email address is @gmx.de] > Dear Lars and Michael: Hi Tino, > I) > Several commands use following internal variables: > debbugs-gnu-trunk-directory > debbugs-gnu-branch-directory > debbugs-gnu-current-directory > > Shouldn't be options instead? Or, at least, an user should be asked > for their values when their default values don't work. > For instance, command `debbugs-gnu-find-contributor' fails because > `debbugs-gnu-current-directory' has default value nil. I agree, debbugs-gnu-trunk-directory and debbugs-gnu-branch-directory should be user options. Will change. debbugs-gnu-current-directory is the internal working horse, not needed to be exposed outside. In debbugs-gnu-apply-patch, it will be checked already whether this is set properly. If not, the directory name is requested interactively. Shall be done in other functions as well; I'll change this. > II) > Most of the time i am interested in the newest bugs. I have defined > following command in my .emacs: > (defun mydebbugs-gnu-latest-bugs (&optional num) > "List latest NUM bugs. > If NUM is nil, then show the latest 10 bugs." > (interactive (list (read-number "How many bugs: " 10))) > (apply 'debbugs-gnu-bugs (debbugs-newest-bugs (or num 10)))) > > Maybe is useful to have a command like this in debbugs-gnu.el; > possibly with a different default value for NUM. I have already plans to extend debbugs-gnu-bugs and debbugs-org-bugs. Currently, they allow only list of bug numbers, like "100,200,300" etc. I want to allow also ranges, like "100-200,300-400" and so on. A special range "-10" could mean then "the last 10 bugs". This shall fit your needs. Will do both next days as time permits. > Regards, > Tino Best regards, Michael.