* tab-always-indent
@ 2006-12-12 16:23 Robert Thorpe
2006-12-13 13:14 ` tab-always-indent Johan Bockgård
0 siblings, 1 reply; 4+ messages in thread
From: Robert Thorpe @ 2006-12-12 16:23 UTC (permalink / raw)
The documentation to tab-always-indent seems confusing to me.
It says:-
"*Controls the operation of the TAB key.
If t, hitting TAB always just indents the current line.
If nil, hitting TAB indents the current line if point is at the left margin
or in the line's indentation, otherwise it insert a `real' tab character."
This is the behaviour in text modes, it's very often not the behaviour
in program modes.
In many progmodes there are analogous variables to
tab-always-indent like c-tab-always-indent. In other progmodes
the feature more-or-less isn't there (eg lisp, scheme, prolog).
I think the doc should mention that it isn't a progmode feature.
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tab-always-indent
@ 2006-12-15 17:03 Robert Thorpe
0 siblings, 0 replies; 4+ messages in thread
From: Robert Thorpe @ 2006-12-15 17:03 UTC (permalink / raw)
> I think that modes should set `indent-line-function' and *not* rebind
> the TAB key!
>
> Maybe you are right, but rebinding TAB has been our standard practice
> since the beginning. I don't think we should consider changing this
> now.
How about just adding a couple of lines to the docs, that should clear up
some confusion.
*** indent.el Fri Dec 15 16:53:48 2006
--- indent1.el Fri Dec 15 16:56:35 2006
***************
*** 50,56 ****
"*Controls the operation of the TAB key.
If t, hitting TAB always just indents the current line.
If nil, hitting TAB indents the current line if point is at the left margin
! or in the line's indentation, otherwise it insert a \"real\" tab character."
:group 'indent
:type '(choice (const nil) (const t) (const always)))
--- 50,58 ----
"*Controls the operation of the TAB key.
If t, hitting TAB always just indents the current line.
If nil, hitting TAB indents the current line if point is at the left margin
! or in the line's indentation, otherwise it insert a \"real\" tab character.
! Most programming language modes have an equivalent variable, e.g.
! c-tab-always-indent, and do not respect this variable."
:group 'indent
:type '(choice (const nil) (const t) (const always)))
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-15 17:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 16:23 tab-always-indent Robert Thorpe
2006-12-13 13:14 ` tab-always-indent Johan Bockgård
2006-12-14 5:29 ` tab-always-indent Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2006-12-15 17:03 tab-always-indent Robert Thorpe
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.