Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"

2018-02-19 Thread Bob Newell
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.

___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"

2018-02-19 Thread Rud1ger Sch1erz
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
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"

2018-02-19 Thread Loris Bennett
"Loris Bennett"  writes:

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


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"

2018-02-19 Thread Loris Bennett
Bob Newell  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.benn...@fu-berlin.de
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english