all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [elpa] master d41489a: Debbugs code cleanup
       [not found] ` <20200823171108.EE3D220A10@vcs0.savannah.gnu.org>
@ 2020-09-07 21:13   ` Lars Ingebrigtsen
  2020-09-08  8:54     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-07 21:13 UTC (permalink / raw)
  To: emacs-devel; +Cc: Michael Albinus

Michael.Albinus@gmx.de (Michael Albinus) writes:

>  If a report is tagged locally, it is presumed to be of little
>  interest to you."
>    (interactive)
> -  (save-excursion
> -    (beginning-of-line)
> -    (let ((inhibit-read-only t)
> -	  (id (debbugs-gnu-current-id)))
> -      (if (memq id debbugs-gnu-local-tags)
> -	  (progn
> -	    (setq debbugs-gnu-local-tags (delq id debbugs-gnu-local-tags))
> -	    (put-text-property (point) (+ (point) 5) 'face 'default))
> -	(add-to-list 'debbugs-gnu-local-tags id)
> -	(put-text-property
> -	 (+ (point) (- 5 (length (number-to-string id)))) (+ (point) 5)
> -	 'face 'debbugs-gnu-tagged))
> -      (debbugs-gnu--update-tag-face id)))
> +  (let ((id (debbugs-gnu-current-id)))
> +    (if (memq id debbugs-gnu-local-tags)
> +	(setq debbugs-gnu-local-tags (delq id debbugs-gnu-local-tags))
> +      (add-to-list 'debbugs-gnu-local-tags id))
> +    (debbugs-gnu--update-tag-mark-face id)
> +    ;; FIXME: Use `debbugs-gnu-print-entry'?
> +    (tabulated-list-init-header)
> +    (tabulated-list-print)
> +    (when id
> +      (debbugs-gnu-goto id)))
>    (debbugs-gnu-dump-persistency-file))

Michael, `t' after this change rearranges the buffer and makes the
command rather useless -- if you've sorted by tagging, and then untag
something, it's then resorted according to the new tag state, and you
lose your position in the list of bugs.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [elpa] master d41489a: Debbugs code cleanup
  2020-09-07 21:13   ` [elpa] master d41489a: Debbugs code cleanup Lars Ingebrigtsen
@ 2020-09-08  8:54     ` Michael Albinus
  2020-09-08 19:36       ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2020-09-08  8:54 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

Lars Ingebrigtsen <larsi@gnus.org> writes:

Hi Lars,

>> +  (let ((id (debbugs-gnu-current-id)))
>> +    (if (memq id debbugs-gnu-local-tags)
>> +	(setq debbugs-gnu-local-tags (delq id debbugs-gnu-local-tags))
>> +      (add-to-list 'debbugs-gnu-local-tags id))
>> +    (debbugs-gnu--update-tag-mark-face id)
>> +    ;; FIXME: Use `debbugs-gnu-print-entry'?
>> +    (tabulated-list-init-header)
>> +    (tabulated-list-print)
>> +    (when id
>> +      (debbugs-gnu-goto id)))
>>    (debbugs-gnu-dump-persistency-file))
>
> Michael, `t' after this change rearranges the buffer and makes the
> command rather useless -- if you've sorted by tagging, and then untag
> something, it's then resorted according to the new tag state, and you
> lose your position in the list of bugs.

I see. I'll try to implement the FIXME instead.

;; FIXME: Use `debbugs-gnu-print-entry'?

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [elpa] master d41489a: Debbugs code cleanup
  2020-09-08  8:54     ` Michael Albinus
@ 2020-09-08 19:36       ` Michael Albinus
  2020-09-08 20:12         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2020-09-08 19:36 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

Michael Albinus <michael.albinus@gmx.de> writes:

Hi Lars,

>> Michael, `t' after this change rearranges the buffer and makes the
>> command rather useless -- if you've sorted by tagging, and then untag
>> something, it's then resorted according to the new tag state, and you
>> lose your position in the list of bugs.
>
> I see. I'll try to implement the FIXME instead.
>
> ;; FIXME: Use `debbugs-gnu-print-entry'?

I've pushed a fix to ELPA, which should fix it. Does it for you?

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [elpa] master d41489a: Debbugs code cleanup
  2020-09-08 19:36       ` Michael Albinus
@ 2020-09-08 20:12         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-08 20:12 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel

Michael Albinus <michael.albinus@gmx.de> writes:

> I've pushed a fix to ELPA, which should fix it. Does it for you?

Yes, thanks -- everything looks good to me now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-08 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20200823171107.16195.61191@vcs0.savannah.gnu.org>
     [not found] ` <20200823171108.EE3D220A10@vcs0.savannah.gnu.org>
2020-09-07 21:13   ` [elpa] master d41489a: Debbugs code cleanup Lars Ingebrigtsen
2020-09-08  8:54     ` Michael Albinus
2020-09-08 19:36       ` Michael Albinus
2020-09-08 20:12         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.