* Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
[not found] <mailman.9363.1518975840.27995.info-gnus-english@gnu.org>
@ 2018-02-19 9:53 ` Loris Bennett
2018-02-19 10:36 ` Loris Bennett
[not found] ` <mailman.9398.1519036661.27995.info-gnus-english@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Loris Bennett @ 2018-02-19 9:53 UTC (permalink / raw)
To: info-gnus-english
Bob Newell <bobnewell@bobnewell.net> writes:
> Like this:
>
> (setq group-name-map
> '(("nnimap+imap.gmail.com:INBOX" . "Inbox")
> ("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
> etc.
> ))
This had no effect for me. However, here
https://www.emacswiki.org/emacs/GnusFormatting
it implies that you have to define
gnus-user-format-function-g
and then use 'ug%' rather than '%g' in 'gnus-group-line-format'.
Cheers,
Loris
--
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.bennett@fu-berlin.de
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
2018-02-19 9:53 ` how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox" Loris Bennett
@ 2018-02-19 10:36 ` Loris Bennett
2018-02-20 6:12 ` Bob Newell
[not found] ` <mailman.9398.1519036661.27995.info-gnus-english@gnu.org>
1 sibling, 1 reply; 6+ messages in thread
From: Loris Bennett @ 2018-02-19 10:36 UTC (permalink / raw)
To: info-gnus-english
"Loris Bennett" <loris.bennett@fu-berlin.de> writes:
> Bob Newell <bobnewell@bobnewell.net> writes:
>
>> Like this:
>>
>> (setq group-name-map
>> '(("nnimap+imap.gmail.com:INBOX" . "Inbox")
>> ("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
>> etc.
>> ))
>
> This had no effect for me. However, here
>
> https://www.emacswiki.org/emacs/GnusFormatting
>
> it implies that you have to define
>
> gnus-user-format-function-g
>
> and then use 'ug%' rather than '%g' in 'gnus-group-line-format'.
Fiddling around with this I managed to totally bork the display in the
Groups buffer, such that basically nothing was shown and the following
error was produced:
progn: Wrong type argument: char-or-string-p
Just reverting the changes in init.el was not enough and I had to roll
back to the versions of .newsrc and .newsrc.eld from this morning
(Thanks, Git!).
Cheers,
Loris
--
This signature is currently under construction.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
[not found] ` <mailman.9398.1519036661.27995.info-gnus-english@gnu.org>
@ 2018-02-19 19:07 ` Rud1ger Sch1erz
0 siblings, 0 replies; 6+ messages in thread
From: Rud1ger Sch1erz @ 2018-02-19 19:07 UTC (permalink / raw)
To: info-gnus-english
I settled down to a group buffer like this:
;;;;;;;;;;;;;;;;;;
;; Group Buffer ;;
;;;;;;;;;;;;;;;;;;
; Gruppen sollen hierarchisch sortiert werden können (topic-mode)
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
; Formatierung der group-line
; zunächst soll sich Gnus merken, wann eine Gruppe zuletzt besucht
; wurde
(add-hook 'gnus-select-group-hook 'gnus-group-set-timestamp)
; jetzt die eigentliche group-line
;; (setq gnus-group-line-format
;; "%M\%S\%p\%P\%5y: %(%-40,40g%) %d\n")
(setq gnus-group-line-format
"%M\%S\%p\%P\%5y: %(%-40,40G%) %ud\n")
; und die Zeitausgabe formitieren
(defun gnus-user-format-function-d (headers)
(let ((time (gnus-group-timestamp gnus-tmp-group)))
(if time
(format-time-string "%b %d %H:%M" time)
; (format-time-string "%d %H:%M" time)
"")))
--
HTH
Rüdiger
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
2018-02-19 10:36 ` Loris Bennett
@ 2018-02-20 6:12 ` Bob Newell
0 siblings, 0 replies; 6+ messages in thread
From: Bob Newell @ 2018-02-20 6:12 UTC (permalink / raw)
To: info-gnus-english
You're pretty much right. Will you allow me to blame an attack of
sciatica for posting incomplete code? (Okay, it was worth at try.)
Here's my whole setup:
(setq gnus-group-line-format "%M%S%5y: %uM %D\n")
(defun gnus-user-format-function-M (arg)
(let ((mapped-name (assoc gnus-tmp-group group-name-map)))
(if (null mapped-name)
gnus-tmp-group
(cdr mapped-name))))
(setq group-name-map '(("nnimap+imap.gmail.com:INBOX" . "Inbox")
("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
("nnimap+imap.gmail.com:[Gmail]/Sent Mail" . "Sent Mail")
("nnimap+imap.gmail.com:[Gmail]/Drafts" . "Drafts")
("nnimap+imap.gmail.com:teatrader" . "Tea Trader")
("nnimap+imap.gmail.com:gnusreader" . "GNUS Lists")
("nnimap+imap.gmail.com:help-gnu-emacs" .
"Emacs Help List")
("nnimap+imap.gmail.com:orgmode" . "Org-Mode List")
("nnimap+imap.gmail.com:emms-help" . "EMMS List")
("nnimap+imap.gmail.com:bbdb" . "BBDB List")
("nnimap+aol:INBOX" . "AOL")
("nnml:mail.misc" . "POP Mail")
))
My original reference:
https://stackoverflow.com/questions/22150745/changing-the-display-name-of-a-gnus-group
--
Bob Newell
Honolulu, Hawai`i
Sent via Linux Mint 17.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
@ 2018-02-18 17:43 Bob Newell
0 siblings, 0 replies; 6+ messages in thread
From: Bob Newell @ 2018-02-18 17:43 UTC (permalink / raw)
To: info-gnus-english
Like this:
(setq group-name-map
'(("nnimap+imap.gmail.com:INBOX" . "Inbox")
("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
etc.
))
--
Bob Newell
Honolulu, Hawai`i
* Via Gnus/BBDB/Org/Emacs/Linux *
^ permalink raw reply [flat|nested] 6+ messages in thread
* how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"
@ 2018-02-18 8:29 Gijs Hillenius
0 siblings, 0 replies; 6+ messages in thread
From: Gijs Hillenius @ 2018-02-18 8:29 UTC (permalink / raw)
To: info-gnus-english
I once read somewhere in the Gnus documentation that there was a trick,
that would allow as user to hide
"nnimap+$server:INBOX.$mailbox"
and only list
$mailbox
in, for example, the Group buffer.
I'd like to try that, but now I don't see how.
Hints appreciated
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-02-20 6:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.9363.1518975840.27995.info-gnus-english@gnu.org>
2018-02-19 9:53 ` how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox" Loris Bennett
2018-02-19 10:36 ` Loris Bennett
2018-02-20 6:12 ` Bob Newell
[not found] ` <mailman.9398.1519036661.27995.info-gnus-english@gnu.org>
2018-02-19 19:07 ` Rud1ger Sch1erz
2018-02-18 17:43 Bob Newell
-- strict thread matches above, loose matches on Subject: below --
2018-02-18 8:29 Gijs Hillenius
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).