Bug#381346: emacs-snapshot: fundamental mode converts tabs to spaces
Romain Francoise wrote: Adrian Bunk [EMAIL PROTECTED] writes: emacs21 correctly preserves the tab, while emacs-snapshot converts it to spaces. There is no tab in the initial file, so a more accurate way to put it is emacs21 inserts a tab, and emacs-snapshot inserts spaces. Whether or not that is a bug, I don't know... (tab-width is 8 by default) It is a misunderstanding that pressing TAB inserts a tab character in Emacs; rather, that key runs the command indent-for-tab-command which in turn calls the function pointed to by indent-line-function. See section 31.3.1 of the Emacs Manual (in emacs-snapshot). If you want to insert a tab character, you should press C-q TAB. That being said, I agree that it would be better if indent-for-tab-command would indent with a tab rather than with spaces in fundamental mode; unfortunately, there is apparently no option to enable this. Cheers, Sven -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#381346: emacs-snapshot: fundamental mode converts tabs to spaces
On Fri, Aug 04, 2006 at 11:21:00PM +0200, Romain Francoise wrote: Hi Adrian, Hi Romain, Thanks for the report. Adrian Bunk [EMAIL PROTECTED] writes: Please look at the three attachments: - test-before: initial file - test-after-{emacs21,snapshot}: pressed tab in the depends line You mean at the beginning of the line (column 0)? ... Yes. cu Adrian -- Is there not promise of rain? Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. Only a promise, Lao Er said. Pearl S. Buck - Dragon Seed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#381346: emacs-snapshot: fundamental mode converts tabs to spaces
On Sat, Aug 05, 2006 at 10:16:26AM +0200, Sven Joachim wrote: Romain Francoise wrote: Adrian Bunk [EMAIL PROTECTED] writes: emacs21 correctly preserves the tab, while emacs-snapshot converts it to spaces. There is no tab in the initial file, so a more accurate way to put it is emacs21 inserts a tab, and emacs-snapshot inserts spaces. Whether or not that is a bug, I don't know... (tab-width is 8 by default) It is a misunderstanding that pressing TAB inserts a tab character in Emacs; rather, that key runs the command indent-for-tab-command which in turn calls the function pointed to by indent-line-function. See section 31.3.1 of the Emacs Manual (in emacs-snapshot). If you want to insert a tab character, you should press C-q TAB. ... No, the bug seems to be different from what you are thinking. If I press TAB in at the beginning of the first line of test-before, Emacs correctly inserts a TAB. But this doesn't work in the line where I observe the problem. Cheers, Sven cu Adrian -- Is there not promise of rain? Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. Only a promise, Lao Er said. Pearl S. Buck - Dragon Seed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#381346: emacs-snapshot: fundamental mode converts tabs to spaces
Sven Joachim [EMAIL PROTECTED] writes: That being said, I agree that it would be better if indent-for-tab-command would indent with a tab rather than with spaces in fundamental mode; unfortunately, there is apparently no option to enable this. Uh? No, as noted in my initial message it's because the offset in the example file is 5 spaces and `tab-width' is 8 by default. Replace the word ``menu'' by ``menufoo'' and Emacs will insert a tab, because the indentation offset becomes 8 spaces, i.e. 1 tab. -- ,''`. : :' :Romain Francoise [EMAIL PROTECTED] `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#381346: emacs-snapshot: fundamental mode converts tabs to spaces
Hi Adrian, Thanks for the report. Adrian Bunk [EMAIL PROTECTED] writes: Please look at the three attachments: - test-before: initial file - test-after-{emacs21,snapshot}: pressed tab in the depends line You mean at the beginning of the line (column 0)? This is using the fundamental mode with both Emacs versions. emacs21 correctly preserves the tab, while emacs-snapshot converts it to spaces. There is no tab in the initial file, so a more accurate way to put it is emacs21 inserts a tab, and emacs-snapshot inserts spaces. Whether or not that is a bug, I don't know... (tab-width is 8 by default) -- ,''`. : :' :Romain Francoise [EMAIL PROTECTED] `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#381346: emacs-snapshot: fundamental mode converts tabs to spaces
Package: emacs-snapshot Version: 1:20060730-1 Severity: normal Please look at the three attachments: - test-before: initial file - test-after-{emacs21,snapshot}: pressed tab in the depends line This is using the fundamental mode with both Emacs versions. emacs21 correctly preserves the tab, while emacs-snapshot converts it to spaces. cu Adrian -- Is there not promise of rain? Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. Only a promise, Lao Er said. Pearl S. Buck - Dragon Seed # ALSA PCI drivers menu PCI devices depends on SND!=n PCI # ALSA PCI drivers menu PCI devices depends on SND!=n PCI # ALSA PCI drivers menu PCI devices depends on SND!=n PCI