From: Reuben Thomas <rrt@sc3d.org>
To: bug-emacs@gnu.org
Subject: bug#1368: Confusing documentation for c-tab-always-indent
Date: Tue, 18 Nov 2008 12:48:15 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.00.0811181244140.16393@drom> (raw)
The docstring says:
Note: The value of `indent-tabs-mode' will determine whether a real
tab character will be inserted, or the equivalent number of spaces.
When inserting a tab, actually the function stored in the variable
`c-insert-tab-function' is called.
But this is not quite true. As far as I can tell from the code,
indent-tabs-mode is not tested before calling c-insert-tab-function. What
the documentation seems to mean is that if c-insert-tab-function has its
default definition, insert-tab, then the first sentence applies. I suggest
therefore the following paragraph in place of the above:
The function stored in the variable `c-insert-tab-function' is called
when a tab is to be inserted. By default, this function is `insert-tab',
which uses the value of `indent-tabs-mode' to determine whether a real
tab character will be inserted, or the equivalent number of spaces.
--
http://rrt.sc3d.org/ | fantasize, a. the largest you can imagine
next reply other threads:[~2008-11-18 11:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d3fxl7w8jw.fsf@fencepost.gnu.org>
2008-11-18 11:48 ` Reuben Thomas [this message]
2008-12-02 3:45 ` bug#1368: marked as done (Confusing documentation for c-tab-always-indent) Emacs bug Tracking System
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.00.0811181244140.16393@drom \
--to=rrt@sc3d.org \
--cc=1368@emacsbugs.donarmstrong.com \
--cc=bug-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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.