[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debbugs-0.10: two comments

From: Michael Albinus
Subject: Re: debbugs-0.10: two comments
Date: Mon, 12 Sep 2016 09:05:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Tino Calancha <address@hidden> 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

> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]