From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10297 Path: news.gmane.org!not-for-mail From: Slackrat Newsgroups: gmane.emacs.gnus.user Subject: Re: message-signature-file toggled to nil locally Date: Mon, 04 Feb 2008 11:42:51 +0100 Organization: Not very much! Message-ID: <87odaxroic.fsf@azurservers.com> References: <87hcgqov0y.fsf@patagonia.sebmags.homelinux.org> <87ejbt3ord.fsf@patagonia.sebmags.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1202125259 13266 80.91.229.12 (4 Feb 2008 11:40:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 11:40:59 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Feb 04 12:41:20 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLzhN-00039y-6R for gegu-info-gnus-english@m.gmane.org; Mon, 04 Feb 2008 12:41:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLzgv-0007Gu-0W for gegu-info-gnus-english@m.gmane.org; Mon, 04 Feb 2008 06:40:49 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed4-a.proxad.net!nnrp18-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-Operating-System: Kernel=Intel-Linux, Programmes=GNU, Integration=Slackware X-Homepage: http://azurservers.com X-Guarantee: This email is certified to have been free of UCE and any other Malicious, Harmful or Annoying Content when originally sent by @azurservers.com - Azurservers post SPF records and do not condone SPAM type emails X-Azurservers-AuthNo: Registered as AZSV bghkd8332277 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEWRko+3t7RiV1A6JSJg h7nIAAACBElEQVQokSXSQWsTQRQH8P/uJlKyYBS799BTSCSLelERu6iHNIqGdCbU9iNE6EdwKeSS HhSh4DHNzdni5pjmsBsqudST32B7EOJGTNpTsgn7nE0OA/Pjz3tvHgwiGlO4qRaKQjQRTcb/Lnwa ZY58A31nfLkwab5l9wDR6YTRMf0Roi3hhOHMpEs/VixETjT6QtTyp6eAR4uZTvR1MuQc27QIHKKT Pb5GyyUaGAk+0k1BEF3f3awymQRiTOP5g4ro4GkJBYcMz49ECKsg3HiZcX0SMSxVVhAtfhLF4Fz2 6tss9EOxRinNn7uThYRPFJ7y16GI14j7nJ1XUxLbst5M84rBJQ5joqOA174xiZr/joJ8I4yTpE62 G/Wu2CgBo0GN3CvrVwLuRh0y29qqAT+MXIpzZb5CY2leewqShKUbS3+owwLAC/nO3FNe2vIO1qzd RMGr7Ap1o1pcpJWHowT7rKwvre4Piu8Ae8zSlzUnO9WHHDssd48yZ/0Zzjnec1sjZxr8RdZIoNLk YvAd2gA79dktamn2IyBA2QoydKZjC+hi/4Wdp98VbNh4jFoKcIcH2GjjPuqfoZgnB3x3KsHko0x7 11BtlMBzUI8DrckUdhs8g7fOVB2kON7A0sK22pYzFP4BHHqySleeJ2AWPPk3nkn0IMdAtL1PNtQg 2Q+qGxVHyA7+A58cF4sUszMTAAAAAElFTkSuQmCC Cancel-Lock: sha1:m0XHpsOUNAN/2Pqp5D5CAv+GeL0= Original-Lines: 175 Original-NNTP-Posting-Date: 04 Feb 2008 11:42:53 MET Original-NNTP-Posting-Host: 82.242.110.54 Original-X-Trace: 1202121773 news-4.free.fr 24857 82.242.110.54:36582 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80508 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10297 Archived-At: "Sebastian P. Luque" a écrit profondement: | On Sun, 03 Feb 2008 11:59:02 -0600, | Sebastian P. Luque wrote: | | > The problem is that if I want to change the signature, say through | > 'C-c C-w' (message-insert-signature), or gnus-personalities, then any | > reference to this variable doesn't do what's expected. | | So how can one use these variables (message-signature, | message-signature-file), or function message-insert-signature when in | writing a message? Anybody using gnus-pers.el got it successfully | switching personalities? | Did you ever contemplate using randomsig.el ? You can put sigs to go with whatever personality you happen to be using as defined by your posting profiles in /home/inconnu/.signature/ to use as a standard and still randomly override it with a different random signature which is either truly random or selectable from your signature list As you will observe, I have 160 available and my sig on this message is a sample [cite .gnus posting profiles signature] (setq gnus-posting-styles '((".*" ;; STANDARD ;;========= (name mail-user-name) ("X-Guarantee" "This email is certified to have been free of UCE and any other Malicious, Harmful or Annoying Content when originally sent by @azurservers.com - Azurservers post SPF records and do not condone SPAM type emails") (signature-file "~/.signature/DEFAULTSIGNATURE") ("X-Homepage" "http://azurservers.com") ("X-Operating-System" "Kernel=Intel-Linux, Programmes=GNU, Integration=Slackware") ("X-Azurservers-AuthNo" "Registered as AZSV bghkd8332277") (organization "Not very much!")) ;; USENET ;;======= ("alt.test*" (signature-file "~/.signature/TESTERSIGNATURE") (name "Tester-Tester Tester") (address "alttest@azurservers.com") ("Fcc" "~/Mail/sent-alt-test") ) ("rec*" (signature-file "~/.signature/RECSIGNATURE") (name "Davey Crockett") (address "rec@azurservers.com") ("Fcc" "~/Mail/sent-rec") ) ("gnu.emacs*" (signature-file "~/.signature/GNUSIGNATURE") (name "Slackrat") (address "gnus4Q@azurservers.com") ("Fcc" "~/Mail/sent-gnu")) ;; MAILING LISTS ;;============== ("england-first" ("To" "Press Media ") (signature-file "~/.signature/ENGLANDFIRSTSIGNATURE") (name "YOUR-PSEUDONYM") (address "efp@azurservers.com") ("Fcc" "~/Mail/sent-england-first") ("Bcc" "inconnu") ) [snip about 200 others here] )) [/cite .gnus posting profiles signature] [cite .gnus random signature] ;;################################# ;; IMPLEMENT RANDOM SIGNATURES ## ;;################################# ;; First put randomsig.el in site-lisp dir ;; ####################################### ;; TO MAKE IT WORK, put the following lines into your ~/.gnus: (require 'randomsig) (define-key message-mode-map (kbd "C-c s") 'randomsig-replace-sig) (define-key message-mode-map (kbd "C-c S") 'randomsig-select-sig) (require 'gnus-sum) ; probably required for `gnus-summary-save-map' (define-key gnus-summary-save-map "-" 'gnus/randomsig-summary-read-sig) (setq randomsig-dir "/home/USERNAME/.signature/random-signature") (setq randomsig-files '( "001" "002" "003" "004" "005" "006" "007" "008" "009" "010" "011" "012" "013" "014" "015" "016" "017" "018" "019" "020" "021" "022" "023" "024" "025" "026" "027" "028" "029" "030" "031" "032" "033" "034" "035" "036" "037" "038" "039" "040" "041" "042" "043" "044" "045" "046" "047" "048" "049" "050" "051" "052" "053" "054" "055" "056" "057" "058" "059" "060" "061" "062" "063" "064" "065" "066" "067" "068" "069" "070" "071" "072" "073" "074" "075" "076" "077" "078" "079" "080" "081" "082" "083" "084" "085" "086" "087" "088" "089" "090" "091" "092" "093" "094" "095" "096" "097" "098" "099" "100" "101" "102" "103" "104" "105" "106" "107" "108" "109" "110" "111" "112" "113" "114" "115" "116" "117" "118" "119" "120" "121" "122" "123" "124" "125" "126" "127" "128" "129" "130" "131" "132" "133" "134" "135" "136" "137" "138" "139" "140" "141" "142" "143" "144" "145" "146" "147" "148" "149" "114" "151" "152" "153" "154" "155" "156" "157" "158" "159" "160" ) ) ;; or (setq randomsig-files (randomsig-search-sigfiles)) ;; or (setq randomsig-files 'randomsig-search-sigfiles) (setq message-signature 'randomsig-signature) ;; This will also define the shortcut `C-c s' in message-mode to ;; change the signature, `C-c S' in message-mode to interactively ;; select the signature to replace the current signature, and `O -' in ;; gnus-summary-mode to read the signature from the selected mail. ;; `randomsig-files' must be a list of existing files, an existing ;; file, or a function returning a list of existing files. If these ;; don't have absolute paths, they are located in `randomsig-dir'. ;; File format: Each file must contain at least one signature. ;; Signatures are separated with `randomsig-delimiter-pattern'. If ;; there is only one signature in the file, the delimiter can be ;; omitted, so real .signature-files can be used. ;; `randomsig-delimiter' is used when inserting new signatures with ;; `randomsig-message-read-sig' into the signature file. So ;; `randomsig-delimiter' should match `randomsig-delimiter-pattern'. ;; `randomsig-static-string' is put in front of every random signature ;; if non-`nil'. ;; The *-read-sig functions read the signature of a message, or use ;; the marked text, and write it to a signature-file, for which the ;; name is asked. If the file does not exist, it will be generated. ;; When called with any prefix, the signatures will be offered to edit ;; before saving. ;; if `randomsig-replace-sig' is called with any prefix, it will ask ;; for a file to get the signature from. ;; `randomsig-select-sig' will offer a list of signatures to select ;; from in an extra buffer. n will jump to the next signature, p to ;; the previous, RET will insert the selected signature, q will exit ;; the selection buffer without replacing the current signature, R ;; will reload the signature-files, and e will open a buffer for ;; editing the signature at the point. When called with any prefix, it ;; will ask for a file to get the signatures from ;; `randomsig-search-sigfiles' will search for regular files in ;; `randomsig-dir', which do not match `randomsig-search-unwanted'. A ;; subdirectory of `randomsig-dir' can be given as optional argument. ;; Completion will only work for files in `randomsig-files', though ;; others files can be used, too. [/cite .gnus] -- SlackRat - 4Q to Reply -- . To the Thieving Cowardly Traitor Bush, the "war on terror" is the ruling mantra of his politics of fear. Since 9/11 gave a prop to his weakening presidency, his language has scaled new heights of alarmist rhetoric. It has validated every internal repression and every external war. "He who is not with us is against us," he cries ... This so-called war on terror has filled the pockets of those profiting from it. It has killed thousands, immiserated millions and infringed the liberty of hundreds of millions. The only rough justice it has delivered is to ruin the careers of those who propagated it. Tony Blair was driven to early resignation. Bush has been humiliated and Musharraf's wretched rule brought close to an overdue end.