all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Inconsistent Indenting/Spacing
@ 2013-01-03 23:47 Ari King
  2013-01-04  0:16 ` Bob Proulx
       [not found] ` <mailman.16642.1357258592.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Ari King @ 2013-01-03 23:47 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Does anyone know why when I press the "tab" key more then once, the subsequently inserted spaces increase two fold? For example, if I press "tab" twice I will get 6 (2 + 4) rather than 4 (2 + 2) spaces.

I'm using Emacs 24 on Ubuntu 12.10 and I've added the following to my init.el 

(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)

Thanks.

-Ari


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inconsistent Indenting/Spacing
  2013-01-03 23:47 Inconsistent Indenting/Spacing Ari King
@ 2013-01-04  0:16 ` Bob Proulx
       [not found] ` <mailman.16642.1357258592.855.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Bob Proulx @ 2013-01-04  0:16 UTC (permalink / raw)
  To: Ari King; +Cc: help-gnu-emacs

Ari King wrote:
> Does anyone know why when I press the "tab" key more then once, the
> subsequently inserted spaces increase two fold? For example, if I
> press "tab" twice I will get 6 (2 + 4) rather than 4 (2 + 2) spaces.

What is TAB bound to in the file mode that you are asking about?  This
could be a file mode specific binding.  Use this command to find out
what a key is bound to:

  C-h c TAB
  TAB runs the command ??

Bob



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inconsistent Indenting/Spacing
       [not found] ` <mailman.16642.1357258592.855.help-gnu-emacs@gnu.org>
@ 2013-01-04 21:20   ` Ari King
  2013-01-05  0:28     ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Ari King @ 2013-01-04 21:20 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: help-gnu-emacs, Ari King

> What is TAB bound to in the file mode that you are asking about?  This
> 
> could be a file mode specific binding.  Use this command to find out
> 
> what a key is bound to:
> 
> 
> 
>   C-h c TAB
> 
>   TAB runs the command ??
> 

TAB runs the command indent-for-tab-command

Which I believe is the default, correct? Thanks.

-Ari



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Inconsistent Indenting/Spacing
  2013-01-04 21:20   ` Ari King
@ 2013-01-05  0:28     ` Dmitry Gutov
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2013-01-05  0:28 UTC (permalink / raw)
  To: Ari King; +Cc: help-gnu-emacs

Ari King <ari.brandeis.king@gmail.com> writes:

>> What is TAB bound to in the file mode that you are asking about?  This
>> 
>> could be a file mode specific binding.  Use this command to find out
>> 
>> what a key is bound to:
>> 
>> 
>> 
>>   C-h c TAB
>> 
>>   TAB runs the command ??
>> 
>
> TAB runs the command indent-for-tab-command
>
> Which I believe is the default, correct? Thanks.

Yes. If you look at the command's description (C-h k TAB), you'll see
that it delegates to the indirect value of `indent-line-function'.
What value does this variable have in the problematic buffer(s)?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-05  0:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 23:47 Inconsistent Indenting/Spacing Ari King
2013-01-04  0:16 ` Bob Proulx
     [not found] ` <mailman.16642.1357258592.855.help-gnu-emacs@gnu.org>
2013-01-04 21:20   ` Ari King
2013-01-05  0:28     ` Dmitry Gutov

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.