Skip to main content
replaced http://emacs.stackexchange.com/ with https://emacs.stackexchange.com/
Source Link

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this problem when using whitespace-mode to show tab mark. The details can be found herehere.

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this problem when using whitespace-mode to show tab mark. The details can be found here.

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this problem when using whitespace-mode to show tab mark. The details can be found here.

Add link to another related question.
Source Link

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this problem when using whitespace-mode to show tab mark. The details can be found here.

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this problem when using whitespace-mode to show tab mark. The details can be found here.

Move edit to another question.
Source Link

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this issue when i set whitespace-style to (face tabs trailing tab-mark) and then turn on whitespace-mode.

When whitespace-mode is turned off, everything looks well:

[![before-turn-on-whitespace-mode][1]][1]

When whitespace-mode is turned on, it seems as if a tab mark » are actually inserted before tab char and the indentation looks strange:

[![after-turn-on-whitespace-mode][2]][2]

Is this a bug of whitespace-mode? [1]: https://i.sstatic.net/DjX3n.png [2]: https://i.sstatic.net/S0PlK.png

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Edit:

I encounter this issue when i set whitespace-style to (face tabs trailing tab-mark) and then turn on whitespace-mode.

When whitespace-mode is turned off, everything looks well:

[![before-turn-on-whitespace-mode][1]][1]

When whitespace-mode is turned on, it seems as if a tab mark » are actually inserted before tab char and the indentation looks strange:

[![after-turn-on-whitespace-mode][2]][2]

Is this a bug of whitespace-mode? [1]: https://i.sstatic.net/DjX3n.png [2]: https://i.sstatic.net/S0PlK.png

Launch Emacs with emacs -Q, insert a line contains only a \t (| represents the cursor):

\t|

M-x whitespace-mode, it should looks like (_ represents visual space):

»________$

Insert 2 spaces at the beginning of the line, it should now looks like:

··»______$

But what i want is:

··»________$

I'm a little confused why Emacs doesn't display the \t and 2 spaces before separately. Is the before 2 spaces really inserted? Can anyone help me?

Add example screenshots.
Source Link
Loading
Source Link
Loading