Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* registry marks in gnus 5.13
@ 2009-01-12 17:05 emacsnews
  2009-01-16 22:20 ` Ted Zlatanov
  0 siblings, 1 reply; 4+ messages in thread
From: emacsnews @ 2009-01-12 17:05 UTC (permalink / raw)
  To: info-gnus-english

I am using gnus 5.13 with emacs 23.0.60.1 in Ubuntu Intrepid
I see no registry marks in my summary buffer.
I have the following lines in my .gnus.el file:

;; gnus registry 
(setq gnus-registry-cache-file "~/.emacs.d/.gnus.registry.eld"
      gnus-registry-max-entries 25000
      gnus-registry-use-long-group-names t
      gnus-registry-install t)
(gnus-registry-initialize)

I have not changed the value of gnus-registry-marks which is:

((Important :char 105 :image "summary_important")
 (Work :char 119 :image "summary_work")
 (Personal :char 112 :image "summary_personal")
 (To-Do :char 116 :image "summary_todo")
 (Later :char 108 :image "summary_later"))

I tried all the default registry marks, and checked with the
gnus-registry-get-article-marks function that the marks have indeed been
allocated.

I suspect it has something to do with the :image property, but this is
not documented in the info files.
Can anyone help me?

aleblanc

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

* Re: registry marks in gnus 5.13
  2009-01-12 17:05 registry marks in gnus 5.13 emacsnews
@ 2009-01-16 22:20 ` Ted Zlatanov
  2009-01-20 21:48   ` emacsnews
  0 siblings, 1 reply; 4+ messages in thread
From: Ted Zlatanov @ 2009-01-16 22:20 UTC (permalink / raw)
  To: info-gnus-english

On Mon, 12 Jan 2009 17:05:05 +0000 <emacsnews@aleblanc.cotse.net> wrote: 

> I am using gnus 5.13 with emacs 23.0.60.1 in Ubuntu Intrepid
> I see no registry marks in my summary buffer.
> I have the following lines in my .gnus.el file:

> ;; gnus registry 
> (setq gnus-registry-cache-file "~/.emacs.d/.gnus.registry.eld"
>       gnus-registry-max-entries 25000
>       gnus-registry-use-long-group-names t
>       gnus-registry-install t)
> (gnus-registry-initialize)

> I have not changed the value of gnus-registry-marks which is:

> ((Important :char 105 :image "summary_important")
>  (Work :char 119 :image "summary_work")
>  (Personal :char 112 :image "summary_personal")
>  (To-Do :char 116 :image "summary_todo")
>  (Later :char 108 :image "summary_later"))

> I tried all the default registry marks, and checked with the
> gnus-registry-get-article-marks function that the marks have indeed been
> allocated.

> I suspect it has something to do with the :image property, but this is
> not documented in the info files.

:image is for future expansion, we'll associate an image with each mark
eventually (suggestions for images are welcome).  The :char is all that
matters for now.  You can use any character.  I use:

(setq gnus-registry-marks  
      '((Important
     :char ?ι
     :image "summary_important")
    (Work
     :char ?ω
     :image "summary_work")
    (Personal
     :char ?π
     :image "summary_personal")
    (To-Do
     :char ?τ
     :image "summary_todo")
    (Later
     :char ?λ
     :image "summary_later")))

I display marks like this:

gnus-summary-line-format is a variable defined in `gnus.el'.
Its value is 
"%U%R %10&user-date; $%6uS [%6uM] %6k  %B %(%4L: %*%-25,25a%) %s \n"

(the "[%6uM]" part is what matters)

I set up the M user format like this:

(defalias 'gnus-user-format-function-M 'gnus-registry-user-format-function-M)

Let me know if you still have trouble.

Ted

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

* Re: registry marks in gnus 5.13
  2009-01-16 22:20 ` Ted Zlatanov
@ 2009-01-20 21:48   ` emacsnews
  2009-01-21 21:48     ` Ted Zlatanov
  0 siblings, 1 reply; 4+ messages in thread
From: emacsnews @ 2009-01-20 21:48 UTC (permalink / raw)
  To: info-gnus-english

Hi Ted,
        that did the trick :) 
        thanks alot.
Regards,

Aleblanc

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Mon, 12 Jan 2009 17:05:05 +0000 <emacsnews@aleblanc.cotse.net> wrote: 
>
>> I am using gnus 5.13 with emacs 23.0.60.1 in Ubuntu Intrepid
>> I see no registry marks in my summary buffer.
>> I have the following lines in my .gnus.el file:
>
>> ;; gnus registry 
>> (setq gnus-registry-cache-file "~/.emacs.d/.gnus.registry.eld"
>>       gnus-registry-max-entries 25000
>>       gnus-registry-use-long-group-names t
>>       gnus-registry-install t)
>> (gnus-registry-initialize)
>
>> I have not changed the value of gnus-registry-marks which is:
>
>> ((Important :char 105 :image "summary_important")
>>  (Work :char 119 :image "summary_work")
>>  (Personal :char 112 :image "summary_personal")
>>  (To-Do :char 116 :image "summary_todo")
>>  (Later :char 108 :image "summary_later"))
>
>> I tried all the default registry marks, and checked with the
>> gnus-registry-get-article-marks function that the marks have indeed been
>> allocated.
>
>> I suspect it has something to do with the :image property, but this is
>> not documented in the info files.
>
> :image is for future expansion, we'll associate an image with each mark
> eventually (suggestions for images are welcome).  The :char is all that
> matters for now.  You can use any character.  I use:
>
> (setq gnus-registry-marks  
>       '((Important
>      :char ?ι
>      :image "summary_important")
>     (Work
>      :char ?ω
>      :image "summary_work")
>     (Personal
>      :char ?π
>      :image "summary_personal")
>     (To-Do
>      :char ?τ
>      :image "summary_todo")
>     (Later
>      :char ?λ
>      :image "summary_later")))
>
> I display marks like this:
>
> gnus-summary-line-format is a variable defined in `gnus.el'.
> Its value is 
> "%U%R %10&user-date; $%6uS [%6uM] %6k  %B %(%4L: %*%-25,25a%) %s \n"
>
> (the "[%6uM]" part is what matters)
>
> I set up the M user format like this:
>
> (defalias 'gnus-user-format-function-M 'gnus-registry-user-format-function-M)
>
> Let me know if you still have trouble.
>
> Ted

-- 

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

* Re: registry marks in gnus 5.13
  2009-01-20 21:48   ` emacsnews
@ 2009-01-21 21:48     ` Ted Zlatanov
  0 siblings, 0 replies; 4+ messages in thread
From: Ted Zlatanov @ 2009-01-21 21:48 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 20 Jan 2009 21:48:54 +0000 <emacsnews@aleblanc.cotse.net> wrote: 

> Hi Ted,
>         that did the trick :) 
>         thanks alot.
> Regards,

> Aleblanc

Great.  Are there any other Gnus users who use the registry marks?  If
so, and there are no issues, I'll consider the marks done and write some
documentation.  If you have any comments or suggestions for
improvements, please let me know.

Thanks
Ted

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

end of thread, other threads:[~2009-01-21 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-12 17:05 registry marks in gnus 5.13 emacsnews
2009-01-16 22:20 ` Ted Zlatanov
2009-01-20 21:48   ` emacsnews
2009-01-21 21:48     ` Ted Zlatanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).