From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bigfaceworm Newsgroups: gmane.emacs.help Subject: folding-mode and loading .emacs Date: Mon, 19 May 2008 11:19:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2a064bd4-a70d-47ae-9913-118625f6d53c@1g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211250892 31264 80.91.229.12 (20 May 2008 02:34:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 May 2008 02:34:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 04:35:29 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JyHhG-00005u-2P for geh-help-gnu-emacs@m.gmane.org; Tue, 20 May 2008 04:35:26 +0200 Original-Received: from localhost ([127.0.0.1]:38210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyHgV-0003Cm-SG for geh-help-gnu-emacs@m.gmane.org; Mon, 19 May 2008 22:34:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!1g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 192.94.38.34 Original-X-Trace: posting.google.com 1211221186 28671 127.0.0.1 (19 May 2008 18:19:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 19 May 2008 18:19:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 1g2000prg.googlegroups.com; posting-host=192.94.38.34; posting-account=xcyrUAoAAAC_aahLDV9Q6wj_lVQEuFNf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:158769 X-Mailman-Approved-At: Mon, 19 May 2008 22:32:36 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54145 Archived-At: All, Long time user of folding mode, but recently came across an annoying behavior I wondered if others had seen (and worked around). I'm using Emacs version 22.1 Folding 3.42 (2007.0506) and Folding 2.97 both. My .emacs is folded. Sometimes when I save my .emacs the lines are "folded" and have ^M characters on them, essentially turning each of the folds into one big comment - and preventing Emacs from evaluating any of the elisp contained within. Other times the .emacs is saved w/ out the ^M (I presume) because my Emacs will start up just fine. So, two questions. Any idea what might be causing this? It started when I upgraded to Emacs 22.1 (built my own after changing jobs). And, why must files be saved folded? I don't understand why the file can't be saved as a regular file (w/out ^M), and just folded upon loading it. I see the write file hook turns on folding. tia, TJ