From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: indenting
Date: Tue, 26 Oct 2004 20:35:41 GMT [thread overview]
Message-ID: <jwvk6tdi5tm.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: clm3ju$gio$1@home.itg.ti.com
>>>>> "Billy" == Billy N Patton <b-patton@ti.com> writes:
> Stefan Monnier wrote:
>>> I do not want tab characters.
>> Your (setq-default indent-tabs-mode nil) does that.
>>
>>> I want to be able to hit the tab key after I type int and i1. but the int
>>> indents and follows the tab. What I end up with is
>>> int i1 = 0;
>>> THis is no more readable than having everything shifted to the left.
>>> How can I stop this behavior?
>> Your (setq c-tab-always-indent nil) should have done that. Can you
>> describe
>> very pedantically precisely every little itsy bitsy detail of what you do,
>> what you expect, and what happens instead, as if you were talking to
>> a complete and total idiot ?
> I want to type:
> int<tab><tab>i1<tab><tab><tab><tab>= 0;
> char*<tab>a_pointer<tab><tab> = null;
> to end with
> int i = 0;
> char* a_pointer = null;
> but what I get now is:
> int i = 0;
> char* a_pointer = null;
I understand this part, but you left out tons of details, like:\
- how do you start Emacs?
- what version of Emacs?
- what buffer do you type this in (file name? how do you open it?)?
- what is the major mode of that buffer (C-h m tells you)?
- what's the value of c-tab-always-indent in that buffer?
...
When I do:
% emacs-21.2 -q --no-site-file --eval '(setq c-tab-always-indent nil)' ~/tmp/foo.c
int<tab><tab>i1<tab><tab><tab><tab>= 0;
I get a line like:
int i1 = 0;
which seems pretty close to what you want (except you'll probably want to
hit TAB a bit less often).
I suspect that your (setq c-tab-always-indent nil) is not executed (because
of an error earlier in your .emacs) or it is overruled by something.
Stefan
prev parent reply other threads:[~2004-10-26 20:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-26 14:53 indenting Billy N. Patton
2004-10-26 17:14 ` indenting Stefan Monnier
2004-10-26 18:04 ` indenting Billy N. Patton
2004-10-26 20:35 ` Stefan Monnier [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvk6tdi5tm.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.