From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edward Dodge Newsgroups: gmane.emacs.help Subject: Re: emacs and texshop as LaTeX editors together on mac os x Date: Tue, 07 Oct 2003 14:42:03 -0500 Organization: Confabulation Consulting Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065556142 19877 80.91.224.253 (7 Oct 2003 19:49:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2003 19:49:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 21:48:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6xpG-000850-01 for ; Tue, 07 Oct 2003 21:48:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6xmi-0000uG-28 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2003 15:46:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:/S5kZ41Y6agTiGfivvoH+oXp/bw= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 61 Original-Xref: shelby.stanford.edu gnu.emacs.help:117113 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13040 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13040 e.maier@phil.kun.nl (Emar Maier) writes: > Hi list, I use a finked (X11 on Mac OS X) emacs 21 with auctex as my > default LaTex editor. But I cannot properly read other people's and > my own TeXshop created .tex files. In Texshop and textedit and M$ > Word the files look ok, linebreaks and all, but in emacs most of the > text disappears under a "..." sign (looks like three dots, but if > you delete one, a line of text suddenl;y appears, very weird, have > not been able to find any posts about it though). If I copy and > paste around through various editors, I can get a file filled with > ^M's instead of linebreaks and ...'s (so I think an ugly solution > might be replacing ^M's with linebreaks (but how do you input a > linebreak in emacs?) > > Hope someone can help, because I don't want to be stuck with TeXshop > since emacs+auctex is so much better. I'm really late to this thread, but I figured it would do a "good deed" by letting you know what the problem (and thus the solution) is. THE ISSUE: Essentially, it boils down to the fact that DOS (and later Windows), Macintosh, and UNIX all use different EOL ("end-of-line") characters. These are the invisible codes that say: "go to the next line." HOW EMACS HANDLES THE ISSUE: You are seeing "..." because EMACS is telling you that there is more to the line, but that you aren't seeing it because EMACS is not seeing an /UNIX/ EOL character there. ONE OF THE FIXES: To be able to edit the file and see it correctly in (English) EMACS use this command: M-x set-buffer-file-coding-system When it asks for the "coding system for saving file," type "undecided-unix" and hit enter. Test and see if this causes problems with the other editors, and if it does, you should use the same command and type in "undecided-dos" or "undecided-mac" (depending on what editor is going to be used on it next) when you are finished using EMACS on the file(s). THE "BEST" SOLUTION: You should be able to set up EMACS so that it automatically converts these "foreign" (Mac, DOS) EOL characters to something EMACS *uses in the buffer*, but still *saves to disk* the file in whatever was the *original* encoding-format. I've seen this discussed on the board later, so I'm sure the way to do it is in the EMACS Info system or on Google groups. -- Edward Dodge /GNU Emacs 21.3.50.1 (powerpc-apple-darwin5.5) of 2002-10-11 on G3/