unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs + donation
Date: Wed, 10 Jan 2018 17:07:59 +0100	[thread overview]
Message-ID: <20180110160759.GB17655@tuxteam.de> (raw)
In-Reply-To: <CAKs215DQHxN2itoUM=pbrF9CLLA+qO1o+CYaOBccCRFOren-7g@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jan 10, 2018 at 09:35:36AM -0500, d paddy wrote:
> Greetings...
> 
> I was initially pointed to info@fsf.org so as to get help with an emacs
> question and donate to fsf.
> A consequence of that interaction was my redirection to
> help-gnu-emacs@gnu.org...
> 
> QUESTION: How do I stop emacs from changing what I type?

I guess you are falling prey to "electric-indent-mode".

(I assume you are using fundamental-mode, but for most programming
modes this is similar)

To check this, re-run your experiment, but *before*, enter the
following command: "M-x electric-indent-mode" (M-x is the META
key, typically Alt on a PC keyboard). You should see the message
"Electric-Indent mode disabled" in the mode line (otherwise my
hunch is incorrect and you may stop reading here :)

Now retry.

You see, electric indent mode inserts spaces to indent a newly
entered line to match the insertion of the line above. To not
let lots of lines with just whitespaces in it, it helpfully
removes trailing whitespace when you leave the line with RET.

Possibly it was this humble minor mode who was stealing the
whitespace you entered.

If you *really* want to have control over non-visible stuff in
your buffer, you might enjoy whitespace-mode, which highlights
(among other things) those otherwise invisible critters.

And now keep those donations coming :-)

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlpWOl8ACgkQBcgs9XrR2kafhwCfY9F4EiGSUY8FaluzeMhPLEJ8
4CcAnixLCjB4/odrVf20anfs5KKCqtZQ
=PNUb
-----END PGP SIGNATURE-----



      parent reply	other threads:[~2018-01-10 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-10 14:35 emacs + donation d paddy
2018-01-10 16:00 ` Eli Zaretskii
2018-01-10 16:06 ` Robert Pluim
2018-01-10 16:07 ` tomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180110160759.GB17655@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).