From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75601 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-source (.authinfo.gpg) stopped working? Date: Wed, 05 Jan 2011 23:14:28 +0900 Message-ID: References: <84ipyjkcch.fsf@davestoy.home> <87vd2f2w2f.fsf@lifelogs.com> <8462ufjjya.fsf@davestoy.home> <84tyhyhs1q.fsf@davestoy.home> <84k4im3yak.fsf@davestoy.home> <84bp3y3x1i.fsf@davestoy.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294236899 18398 80.91.229.12 (5 Jan 2011 14:14:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 14:14:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23952@lists.math.uh.edu Wed Jan 05 15:14:55 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaU8d-0001os-19 for ding-account@gmane.org; Wed, 05 Jan 2011 15:14:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PaU8V-0008Iu-UW; Wed, 05 Jan 2011 08:14:47 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PaU8U-0008Ih-TQ for ding@lists.math.uh.edu; Wed, 05 Jan 2011 08:14:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PaU8O-0004Gq-NL for ding@lists.math.uh.edu; Wed, 05 Jan 2011 08:14:41 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PaU8N-00010s-GA for ding@gnus.org; Wed, 05 Jan 2011 15:14:39 +0100 Original-Received: from softbank218118002006.bbtec.net ([218.118.2.6]:54975 helo=) by washington.hostforweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PaU8D-0004Hj-Vg for ding@gnus.org; Wed, 05 Jan 2011 08:14:30 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:GvXVh08O8ELafMTbK6WfKilUCK4= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75601 Archived-At: Ueno-san wrote: [...] > XEmacs does not have rot13-string and dgnushack.el defines rot13-string > as a macro: > (defmacro rot13-string (string) > "Return ROT13 encryption of STRING." > `(with-temp-buffer > (insert ,string) > (translate-region (point-min) (point-max) ,rot13-display-table) > (buffer-string))) > netrc-parse uses it as to save the contents: > (setq netrc-cache ... (rot13-string (base64-encode-string (buffer-string)))) > Guess what will happen. Since buffer-string is called from the buffer > created by rot13-string, it will always return "". Oops, I see the macro I added to dgnushack.el was designed badly. > I'm attaching a patch. Thanks. But when XEmacs' rot13.el follows Emacs' someday, it will get needless. So, I rewrote the macro instead: (defmacro rot13-string (string) "Return ROT13 encryption of STRING." `(let ((string ,string)) (with-temp-buffer (insert string) (translate-region (point-min) (point-max) ,rot13-display-table) (buffer-string))))