From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5078 invoked from network); 9 Oct 2022 06:07:20 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 9 Oct 2022 06:07:20 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ohPT2-00GfOd-Vl for ml@inbox.vuxu.org; Sun, 09 Oct 2022 01:07:17 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1ohPT2-001z79-20 for ml@inbox.vuxu.org; Sun, 09 Oct 2022 01:07:16 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1ohPSv-001z70-1R for ding@lists.math.uh.edu; Sun, 09 Oct 2022 01:07:09 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ohPSq-00FfVy-VQ for ding@lists.math.uh.edu; Sun, 09 Oct 2022 01:07:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oL0/dImVWflsO9zGQaf4DeeOAeLZ+NJSatqfsSBQHBg=; b=BUzuIXH1xA3XfiGYRUhs3l1kb9 eBBthGpfyM6E4c7l5w+MGvV0whEC4uVFTvnDy+DgOjcSnDYKcX2vkID4gSMw03/0jmenpppsYXo2R yOFmBjWlW7EIrYqfA/q2luZ35qKPXyIk8BqHxlSrX7GXHZi4NPJmRJeLziCeEB2AFvTY=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohPSg-0007iZ-Sb for ding@gnus.org; Sun, 09 Oct 2022 08:06:58 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ohPSe-0009oE-4t for ding@gnus.org; Sun, 09 Oct 2022 08:06:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Emanuel Berg Subject: Re: Add to gnus-visible-headers Date: Sun, 09 Oct 2022 08:06:43 +0200 Message-ID: <87tu4djzt8.fsf@dataswamp.org> References: <875ygyeiof.fsf@yandex.com> <871qrjoain.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:HWx5Ls2Y76rqnJeyGyo7UwZBBa4= Mail-Copies-To: never List-ID: Precedence: bulk Adam Sjøgren wrote: >> (setq gnus-visible-headers "existing\\|new"). >> >> That works, but is there a simpler way (and shorter) of >> just appending the new headers? > > You could do: > > (setq gnus-visible-headers (concat gnus-visible-headers "\\|new")) You (the OP) can also use this method which really is cool (setq auto-mode-alist `( ("\\.bal\\'" . balance-mode) ("\\.cl\\'" . common-lisp-mode) ("\\.dat\\'" . gnuplot-mode) ("\\.gpi\\'" . gnuplot-mode) ("\\.grm\\'" . sml-mode) ("\\.lu\\'" . lua-mode) ("\\.nqp\\'" . perl-mode) ("\\.php\\'" . html-mode) ("\\.pic\\'" . nroff-mode) ("\\.pl\\'" . prolog-mode) ("\\.sed\\'" . conf-mode) ("\\.service\\'" . conf-mode) ("\\.tap\\'" . gcode-mode) ("\\.tex\\'" . latex-mode) ("\\.xr\\'" . conf-xdefaults-mode) ("keys\\'" . conf-mode) ("*" . text-mode) ,@auto-mode-alist) ) > but if it's simpler and shorter, I'm not sure. At least you > aren't hardcoding the existing value :-) You mean like this? What's wrong with that? :) (setq gnus-visible-headers '( "^Bcc:" "^Cc:" "^Date:" "^From:" "^Subject:" "^To:" )) -- underground experts united https://dataswamp.org/~incal