From: Noam Postavsky <npostavs@gmail.com>
To: Shyam Nath <shyam@shyam.id.au>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Is this a bug, the esoteric Elisp way?
Date: Tue, 10 Sep 2019 15:10:52 -0400 [thread overview]
Message-ID: <CAM-tV--5jvQWQXkbvhWHHvT4WRbT97m8Xz=LjomPXsTONHm0NA@mail.gmail.com> (raw)
In-Reply-To: <16d1c7b33db.e1bef1ec686755.5085069733670395488@shyam.id.au>
On Tue, 10 Sep 2019 at 14:42, Shyam Nath <shyam@shyam.id.au> wrote:
> So `(setq electric-indent-mode nil)` disables it, and I thought it also disables all tabbing; this seems disabled in Elisp, but not plain text files, and http://ergoemacs.org/emacs/emacs_tabs_space_indentation_setup.html patches it. The documentation for electric-indent-mode says "If called from Lisp, enable the mode if ARG is omitted or nil.", but nil disables it; /implementation|typographical/ bug.
The documentation you refer to is about the function, i.e.,
`(electric-indent-mode)` or `(electric-indent-mode nil)` will enable
the mode. Use `(electric-indent-mode -1)` to disable it.
Using setq on the variable won't do the right thing, as mentioned in
its documentation:
Setting this variable directly does not take effect;
either customize it (see the info node ‘Easy Customization’)
or call the function ‘electric-indent-mode’.
next prev parent reply other threads:[~2019-09-10 19:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-10 17:36 Is this a bug, the esoteric Elisp way? Shyam Nath
2019-09-10 18:06 ` Eli Zaretskii
2019-09-10 18:22 ` Noam Postavsky
2019-09-10 18:44 ` Shyam Nath
2019-09-10 18:41 ` Shyam Nath
2019-09-10 19:10 ` Noam Postavsky [this message]
2019-09-10 19:43 ` Shyam Nath
2019-09-10 19:48 ` Noam Postavsky
2019-09-11 5:18 ` shyam
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='CAM-tV--5jvQWQXkbvhWHHvT4WRbT97m8Xz=LjomPXsTONHm0NA@mail.gmail.com' \
--to=npostavs@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=shyam@shyam.id.au \
/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).