From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79825 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: must remove gnus-format-specs from .newsrc.eld to start gnus Date: Sun, 04 Sep 2011 20:36:21 -0400 Message-ID: <87r53vn7ui.fsf@uwo.ca> References: <87liuc2t9e.fsf@jidanni.org> <87k49wwagh.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315183216 408 80.91.229.12 (5 Sep 2011 00:40:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Sep 2011 00:40:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28119@lists.math.uh.edu Mon Sep 05 02:40:12 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 1R0NES-0004WA-D2 for ding-account@gmane.org; Mon, 05 Sep 2011 02:40:12 +0200 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 1R0NEP-0003ey-8U; Sun, 04 Sep 2011 19:40:09 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R0NEO-0003eh-3P for ding@lists.math.uh.edu; Sun, 04 Sep 2011 19:40:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R0NEN-00040s-55 for ding@lists.math.uh.edu; Sun, 04 Sep 2011 19:40:08 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R0NEL-0005NW-PH for ding@gnus.org; Mon, 05 Sep 2011 02:40:05 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R0NEL-0004UQ-E6 for ding@gnus.org; Mon, 05 Sep 2011 02:40:05 +0200 Original-Received: from cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com ([99.249.62.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Sep 2011 02:40:05 +0200 Original-Received: from jdc by cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Sep 2011 02:40:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:287H/xQCtQ8A/kbDBUSFDdY+9ok= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79825 Archived-At: jidanni@jidanni.org writes: > Oh, I see, it was > (defun rs-gnus-save-newsrc-with-whitespace-1 () > "Save ~/.newsrc.eld with extra whitespace." > (gnus-message 5 "Adding whitespace to .newsrc.eld") > (save-excursion > (goto-char (point-min)) > (while (re-search-forward "(\\\"\\| ((\\| (nn" nil t) > (replace-match "\n \\&" t)) > (delete-trailing-whitespace))) > (add-hook 'gnus-save-quick-newsrc-hook 'rs-gnus-save-newsrc-with-whitespace-1) > That was messing me up. The version below (with #? added to the beginning of the regexp) seems to fix the problem for me. Dan (defun rs-gnus-save-newsrc-with-whitespace-1 () "Save ~/.newsrc.eld with extra whitespace." (gnus-message 9 "Adding whitespace to .newsrc.eld") (save-excursion (goto-char (point-min)) (while (re-search-forward "#?(\\\"\\| ((\\| (nn" nil t) (replace-match "\n \\&" t)) (delete-trailing-whitespace)))