From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Mysterious hidden end of line characters. Date: Sun, 27 Jan 2008 17:10:00 +1100 Organization: Rapt Technologies Message-ID: <87ir1fn6iv.fsf@lion.rapttech.com.au> References: <20080126171451.GB20762@univ-fcomte.fr> <87odb8wfyj.fsf@thievol.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201416078 10563 80.91.229.12 (27 Jan 2008 06:41:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 06:41:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 27 07:41:38 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 1JJ1Cy-00021h-Ko for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2008 07:41:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ1CY-0003Ux-2O for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Jan 2008 01:41:10 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!sn-xt-sjc-05!sn-xt-sjc-08!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:nFo09vGPg7wPHXJddsSIQGVsTYk= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 41 X-Original-Bytes: 2276 Original-Xref: shelby.stanford.edu gnu.emacs.help:155618 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:51001 Archived-At: David writes: > On Sat, Jan 26, 2008 at 08:21:24PM +0100, Thierry Volpiatto wrote: >> Did you try running delete-trailing-white-space or picture-mode on your >> files ? > > Hey hold on, my last post was wrong, the delete-trailing-white-space > function solves the problem of pasting multiple lines into the > shell. Awesome, nice one dude. > > I'll have to ask my colleage if he still has problems with the scripts > I send him after I use this funciton. > > Thanks for the solution Thierry, this turned out to be way simpler > than I feared. > Its good you have a solution, but you have only addressed the symptom and not the cause. this may be good enough, but I'd suggest that as this shouldn't happen, there is something else wrong and its likely to cause you subtle problems in other areas. What does emacs show on the mode line? For example, I have a u: at the left to indicate my script buffer is in UTF-8 as this is the default locale on my Debian system. What is the default locale setting on your Debian system and that of your colleagues? What major and minor modes do you have loaded? Do you get the same 'odd' cut and paste behavior with all terminals (i.e. gnome-terminal, xterm, rxvt and the linux console)? Are you using anything like CUA mode? If you open a buffer with VI in a terminal and paste from emacs into that buffer, do you get odd behavior, such as the text 'stepping'? Tim -- tcross (at) rapttech dot com dot au