From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87379 Path: news.gmane.org!.POSTED!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: Re: registry and the gnus-summary-line-format Date: Tue, 21 Feb 2017 12:01:33 +0000 Message-ID: <87y3wzhhwi.fsf@mat.ucm.es> References: <87wpcl3lee.fsf@mat.ucm.es> <87fuj96589.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1487678563 4693 195.159.176.226 (21 Feb 2017 12:02:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 12:02:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35600@lists.math.uh.edu Tue Feb 21 13:02:38 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cg99R-0000ge-P9 for ding-account@gmane.org; Tue, 21 Feb 2017 13:02:37 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id a475439b-f82d-11e6-b156-b499baabecb2; Tue, 21 Feb 2017 12:02:40 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cg98k-00038R-8K; Tue, 21 Feb 2017 06:01:54 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cg98i-00037w-SR for ding@lists.math.uh.edu; Tue, 21 Feb 2017 06:01:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cg98g-0004Fu-Vs for ding@lists.math.uh.edu; Tue, 21 Feb 2017 06:01:52 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cg98f-000139-J4 for ding@gnus.org; Tue, 21 Feb 2017 13:01:49 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cg98U-0004Q5-J1 for ding@gnus.org; Tue, 21 Feb 2017 13:01:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 74 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:ssUViuSh1lv8tpwugQ9jlk7zIAo= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87379 Archived-At: --=-=-= Content-Type: text/plain > Uwe Brauer writes: > I'm not entirely sure what you're asking, but you have two options here: > set a global gnus-summary-line-format variable, that applies to all > groups, and also set a per-group (ie "group local") summary line that > only applies to that one group, and overrides the global value. > In the customization "screenshots" above, the top entry is specific to > one group. The second is the value that applies to all groups. > If that doesn't clear things up, you might need to rephrase your > question! Ok, I was mistaken. I want gnus-summary-line-format to be different for my mail and the newsgroup. That is why I use topic groups, so all my mail is organized like [ Mail 809073 ] * 0: nnimap+gmail:[Gmail]/Starred * 0: UCM-Flags-Starred [ Imap_UCM_Gmail 809073 ] * 0: nnimap+UCMgmail:INBOX * 0: nnimap+UCMgmail:Maria * 0: nnimap+UCMgmail:MBOX Etc etc. So when I customize the gnus-summary-line-format variable in [ Mail 809073 ] all the subgroups have the same line format. However the registry does not work that is I set Variables: Set variables local to the group you are entering. More INS DEL Variable: gnus-summary-line-format Value: "[%uM]%U%R%z%I%N %(%[ %-10,10uB%]%) %-10,10~(form (rfc2047-decode-string (gnus-extra-header 'To)))@ [%-25,25s%] %D %k %L \n" INS Note the [] then the messages after restart are displayed such as []O 36485 [ Uwe Braue] Uwe Brauer [courier ] Mon, 20 Feb 2017 23:04:28 +0000 9k 21 But when I want to add a registry label I obtain that error: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=regist-bug.txt Debugger entered--Lisp error: (wrong-type-argument sequencep 116) mapconcat(#[(mark) "\302\303 \"\243\304\"\207" [mark gnus-registry-marks plist-get assoc :char] 4] (To-Do) "") gnus-user-format-function-M([36485 "courier" "Uwe Brauer " #("Mon, 20 Feb 2017 23:04:28 +0000" 0 1 (gnus-time (22699 30204))) "<58AB75FC.3090705@mat.ucm.es>" nil 10127 21 nil ((To . "Uwe Brauer "))]) (format "[%s]%c%c%c%s%d " (gnus-user-format-function-M gnus-tmp-header) gnus-tmp-unread gnus-tmp-replied gnus-tmp-score-char gnus-tmp-indentation (aref gnus-tmp-header 0)) (insert (format "[%s]%c%c%c%s%d " (gnus-user-format-function-M gnus-tmp-header) gnus-tmp-unread gnus-tmp-replied gnus-tmp-score-char gnus-tmp-indentation (aref gnus-tmp-header 0))) (progn (insert (format "[%s]%c%c%c%s%d " (gnus-user-format-function-M gnus-tmp-header) gnus-tmp-unread gnus-tmp-replied gnus-tmp-score-char gnus-tmp-indentation (aref gnus-tmp-header 0))) (put-text-property (point) (progn (insert (format "%c %-10s%c" gnus-tmp-opening-bracket (let* ((val ...) (need ...)) (if (> need 0) (concat nil val ...) val)) gnus-tmp-closing-bracket)) (point)) (quote mouse-face) gnus-mouse-face) (insert (format " %-10s [%-25s%c %s %s %s \n" (let* ((val (eval (let ... ...))) (need (- 10 (string-width val)))) (if (> need 0) (concat nil val (make-string need 32)) val)) (let* ((val (eval (if ... ... gnus-tmp-subject-or-nil))) (need (- 25 (string-width val)))) (if (> need 0) (concat nil val (make-string need 32)) val)) gnus-tmp-closing-bracket (aref gnus-tmp-header 3) ( gnus-summary-line-message-size gnus-tmp-header) gnus-tmp-lines))) eval((progn (insert (format "[%s]%c%c%c%s%d " (gnus-user-format-function-M gnus-tmp-header) gnus-tmp-unread gnus-tmp-replied gnus-tmp-score-char gnus-tmp-indentation (aref gnus-tmp-header 0))) (put-text-property (point) (progn (insert (format "%c %-10s%c" gnus-tmp-opening-bracket (let* ((val ...) (need ...)) (if (> need 0) (concat nil val ...) val)) gnus-tmp-closing-bracket)) (point)) (quote mouse-face) gnus-mouse-face) (insert (format " %-10s [%-25s%c %s %s %s \n" (let* ((val (eval (let ... ...))) (need (- 10 (string-width val)))) (if (> need 0) (concat nil val (make-string need 32)) val)) (let* ((val (eval (if ... ... gnus-tmp-subject-or-nil))) (need (- 25 (string-width val)))) (if (> need 0) (concat nil val (make-string need 32)) val)) gnus-tmp-closing-bracket (aref gnus-tmp-header 3) (gnus-summary-line-message-size gnus-tmp-header) gnus-tmp-lines)))) gnus-summary-prepare-threads((([36485 "courier" "Uwe Brauer " #("Mon, 20 Feb 2017 23:04:28 +0000" 0 1 (gnus-time (22699 30204))) "<58AB75FC.3090705@mat.ucm.es>" nil 10127 21 nil ((To . "Uwe Brauer "))]))) gnus-rebuild-thread("<58AB75FC.3090705@mat.ucm.es>" nil) gnus-summary-insert-subject("<58AB75FC.3090705@mat.ucm.es>" [36485 "courier" "Uwe Brauer " #("Mon, 20 Feb 2017 23:04:28 +0000" 0 1 (gnus-time (22699 30204))) "<58AB75FC.3090705@mat.ucm.es>" nil 10127 21 nil ((To . "Uwe Brauer "))]) gnus-summary-update-article(36485 (36485 79 7726 [36485 "courier" "Uwe Brauer " #("Mon, 20 Feb 2017 23:04:28 +0000" 0 1 (gnus-time (22699 30204))) "<58AB75FC.3090705@mat.ucm.es>" nil 10127 21 nil ((To . "Uwe Brauer "))] 0)) gnus-registry--set/remove-mark(To-Do nil (36485)) gnus-registry-set-article-To-Do-mark(36485) funcall-interactively(gnus-registry-set-article-To-Do-mark 36485) call-interactively(gnus-registry-set-article-To-Do-mark nil nil) command-execute(gnus-registry-set-article-To-Do-mark) --=-=-=--