|
|
Up |
|
|
  |
Author: ChristopherLChristopherL Date: Sep 10, 2008 08:48
Hello,
When I overwrite a character in a file containing blank characters
at the end my lines, Emacs takes them away on save! What can I do to
prevent the loss of the blank characters?
Thank you,
Chris
|
| |
|
| | 21 Comments |
|
  |
Author: David KastrupDavid Kastrup Date: Sep 10, 2008 14:21
ChristopherL aol.com> writes:
> Hello,
>
> When I overwrite a character in a file containing blank characters
> at the end my lines, Emacs takes them away on save! What can I do to
> prevent the loss of the blank characters?
Disable whatever stuff you put into your .emacs file in order to get
this behavior.
It is a good rule never to put anything into .emacs that you have not
understood, regardless what figure of authority suggested that it would
be a good idea to have.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
|
| |
|
| | no comments |
|
  |
Author: Chris GiroirChris Giroir Date: Sep 10, 2008 16:25
On Wed, Sep 10, 2008 at 5:21 PM, David Kastrup gnu.org> wrote:
> ChristopherL aol.com> writes:
>
>> Hello,
>>
>> When I overwrite a character in a file containing blank characters
>> at the end my lines, Emacs takes them away on save! What can I do to
>> prevent the loss of the blank characters?
>
> Disable whatever stuff you put into your .emacs file in order to get
> this behavior.
>
When I started my recent job this hit me when my cvs diffs were huge.
For me it was a ruby-on-rails help package that did it. Took me
forever to find it, but it's gone now!
> It is a good rule never to put anything into .emacs that you have not
> understood, regardless what figure of authority suggested that it would
> be a good idea to have.
Definitely good advice!
|
| Show full article (0.80Kb) |
| no comments |
|
  |
Author: Bernardo BacicBernardo Bacic Date: Sep 11, 2008 04:00
it was a dark and stormy night when ChristopherL said,
> Hello,
>
> When I overwrite a character in a file containing blank characters
> at the end my lines, Emacs takes them away on save! What can I do to
> prevent the loss of the blank characters?
>
'delete-trailing-whitespace' function has the effect you describe; check if
it's being hooked into something like 'before-save-hook in your .emacs file
|
| |
| no comments |
|
  |
Author: ChristopherLChristopherL Date: Sep 11, 2008 08:09
I'm using Windows XP and can't seem to find my .emacs file!
First, on windows filenames can't begin with a dot.
I went around trying to look for what in the Unix world is called a
home directory and discovered that it's in "Application Data" some
where.
I have many of these, but they contained nothing resembling a .emacs
file.
What to do.
Thanks,
Chris
|
| |
| no comments |
|
  |
Author: ChristopherLChristopherL Date: Sep 11, 2008 08:33
On Sep 11, 8:09Â am, ChristopherL aol.com> wrote:
> I'm using Windows XP and can't seem to find my .emacs file!
>
> First, on windows filenames can't begin with a dot.
I was unable to find "_emacs" on my PC.
Chris
|
| |
| no comments |
|
  |
Author: Charles SeboldCharles Sebold Date: Sep 11, 2008 08:33
Changing the subject line when you're changing the subject will help
more people see your question.
On 11 Sep 2008, ChristopherL wrote:
> I'm using Windows XP and can't seem to find my .emacs file!
>
> First, on windows filenames can't begin with a dot.
On modern Windows, they usually can. I used to use .emacs (and now
~/.emacs.d/init.el) without problems. You can also use _emacs instead
of .emacs.
From the Emacs manual (which came with Emacs, hit C-h r to get there):
,----[ ]
| The Windows equivalent of the `HOME' directory is the "user-specific
| application data directory". The actual location depends on your
| Windows version and system...
|
| Show full article (2.39Kb) |
| no comments |
|
  |
Author: Charles SeboldCharles Sebold Date: Sep 11, 2008 08:37
On 11 Sep 2008, ChristopherL wrote:
> I was unable to find "_emacs" on my PC.
You have to make it, or customize something (see the Options menu, for
example), for you to have one.
--
Charles Sebold 11th of September, 2008
|
| |
| no comments |
|
  |
Author: ChristopherLChristopherL Date: Sep 11, 2008 08:42
On Sep 11, 8:37Â am, Charles Sebold gmail.com> wrote:
> On 11 Sep 2008, ChristopherL wrote:
>
>> I was unable to find "_emacs" on my PC.
>
> You have to make it, or customize something (see the Options menu, for
> example), for you to have one.
> --
I do not want to make the _emacs file itself. Please see my first
post.
Thanks,
Chris
|
| |
| no comments |
|
  |
|
|
  |
Author: Charles SeboldCharles Sebold Date: Sep 11, 2008 09:10
On 11 Sep 2008, ChristopherL wrote:
> I do not want to make the _emacs file itself. Please see my first
> post.
Oh, your very first post. I didn't follow all the way back to the
beginning of the thread; sorry. You didn't quote anything, I got lost,
my fault.
If you don't have a .emacs (or _emacs) file, then that's not the
problem.
Are you using the EmacsW32 distribution of Emacs?
What about any directories called site-lisp? Anything there that might
match what Bernardo was talking about?
Failing those, you could try typing this into the scratch buffer and
hitting C-x C-e at the end of it, and posting the result:
(insert (format "\n\n%%S" before-save-hook))
That would tell us if something is hooking in there, then maybe we could
begin to track down how.
|
| Show full article (0.95Kb) |
| no comments |
|
|
|
|