This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: backslash whitespace newline


On Tue, Oct 25, 2005 at 11:50:00AM -0700, Eric Christopher wrote:
> 
> On Oct 25, 2005, at 8:54 AM, Joe Buck wrote:
> >Often when I cut and paste a program example from Firefox into  
> >Emacs, I
> >wind up with extra whitespace.
> 
> I've got an elisp file that removes trailing whitespace if you'd like  
> it...

Not needed; the following sequence removes trailing whitespace in Emacs:

ESC-x picture-mode NL
CTL-c CTL-c

(picture-mode cleans up trailing whitespace on exit).

The problem, though, is the program behavior is affected by something that
is invisible (the trailing whitespace).

If it's an issue that different compilers handle this differently and that
the standard does not specify the behavior, the answer, I think, is to
warn when trailing whitespace affects the behavior of the program.
I think that the only case is when the last character is a \ but there
may be others.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]