From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87386 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: registry and the gnus-summary-line-format Date: Tue, 21 Feb 2017 16:34:48 -0800 Message-ID: <87poibf4gn.fsf@ericabrahamsen.net> References: <87wpcl3lee.fsf@mat.ucm.es> <87fuj96589.fsf@ericabrahamsen.net> <87y3wzhhwi.fsf@mat.ucm.es> <878toztso2.fsf@ericabrahamsen.net> <87wpcjflnr.fsf@mat.ucm.es> <87o9xvs8ce.fsf@ericabrahamsen.net> <87fuj7z4qb.fsf@mat.ucm.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487723810 7643 195.159.176.226 (22 Feb 2017 00:36:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2017 00:36:50 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35607@lists.math.uh.edu Wed Feb 22 01:36:46 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 1cgKvG-0001XJ-4j for ding-account@gmane.org; Wed, 22 Feb 2017 01:36:46 +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 f33b6994-f896-11e6-b156-b499baabecb2; Wed, 22 Feb 2017 00:36:29 +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 1cgKu9-0001AJ-PG; Tue, 21 Feb 2017 18:35:37 -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 1cgKu7-00019i-5X for ding@lists.math.uh.edu; Tue, 21 Feb 2017 18:35:35 -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 1cgKu5-0002ng-Ak for ding@lists.math.uh.edu; Tue, 21 Feb 2017 18:35:35 -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 1cgKtY-0001FV-Nh for ding@gnus.org; Wed, 22 Feb 2017 01:35:06 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cgKtQ-0000R1-4m for ding@gnus.org; Wed, 22 Feb 2017 01:34:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:8iroFaUOalCLMBjYboRhoO9mNkA= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87386 Archived-At: Uwe Brauer writes: > > Uwe Brauer writes: > > > The `list' was supposed to go outside the plist-get. Here's a version that > > uses `char-to-string', which I think is more explicit: > > > (defun gnus-registry-article-marks-to-chars (headers) > > "Show the marks for an article by the :char property." > > (let* ((id (mail-header-message-id headers)) > > (marks (when id (gnus-registry-get-id-key id 'mark)))) > > (mapconcat (lambda (mark) > > (char-to-string > > (plist-get > > (cdr-safe > > (assoc mark gnus-registry-marks)) > > :char))) > > marks ""))) > > > > Great!!!! Thanks a lot now it works. You should push that to the git > repo (maybe other functions in gnus-registry are buggy as well?) Good! There's no longer a separate git repo for Gnus -- it is developed within the Emacs repository. Unfortunately this means that you won't get the fix until it's committed to Emacs and then comes back down whatever pipeline you use to install Emacs. It also means I'm a wee bit more hesitant about committing directly -- I have access, but would prefer to open a bug report and get more eyes. I'll do that in a bit. > BTW gnus-registry-article-marks-to-names works. > > Now I got really curious and would like to try gnorb with the registry. > For this the manual says to put > > Add ``%ug'' somewhere appropriate in your `gnus-summary-line-format' > > However it does not work for me, I obtain an error. I think I sent you > a report, I am not sure that we should discuss this here, but one the > other hand gnus seems a good place to me. I did get your other email, but I suppose this is a fine place to work it out. If you've loaded gnorb-gnus I don't see how `gnus-user-format-function-g' could be undefined. That file contains, at top-level, this form: (fset (intern (concat "gnus-user-format-function-" gnorb-gnus-summary-mark-format-letter)) (lambda (header) (gnorb-gnus-insert-format-letter-maybe header))) Which should do the trick. The various Gnorb pieces are usable independently, meaning you have to explicitly run (require 'gnorb-gnus). I'm assuming you've done that... If it still doesn't work, would you eval the snippet above? It will have to work then! Eric