• How to make that tabs be tabs, blanks be blanks

    From Roderick@21:1/5 to Roderick on Sat Oct 3 08:42:33 2020
    Again: I want that emacs do not take any decision on indentetaion.
    Just put blank when I type blank, tab when I type tab.

    Is that to much to expect? Why it is so difficult to get it?!

    Rod.

    On Sat, 3 Oct 2020, Roderick wrote:


    I type tabs, emacs makes blanks. I dont want that software takes
    decisions for me that I did not ask for.

    Long ago I had to struggle with emacs in order that it do not do
    strange things and put:

    (setq-default indent-tabs-mode t)
    (electric-indent-mode -1)

    I not even remember what all this thing means. I just want an editor,
    a simple editor that inserts what I want and does not insert what I
    do not want. I do not want to continously struggle with it.

    Any hint? Or should I use an older version of emacs?

    I use emacs since decades, but if I were to decide today for an editor,
    I would not decide to use emacs.

    Thanks
    Rod.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roderick@21:1/5 to All on Sat Oct 3 08:32:17 2020
    I type tabs, emacs makes blanks. I dont want that software takes
    decisions for me that I did not ask for.

    Long ago I had to struggle with emacs in order that it do not do
    strange things and put:

    (setq-default indent-tabs-mode t)
    (electric-indent-mode -1)

    I not even remember what all this thing means. I just want an editor,
    a simple editor that inserts what I want and does not insert what I
    do not want. I do not want to continously struggle with it.

    Any hint? Or should I use an older version of emacs?

    I use emacs since decades, but if I were to decide today for an editor,
    I would not decide to use emacs.

    Thanks
    Rod.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Paffenholz@21:1/5 to Roderick on Sat Oct 3 12:42:39 2020
    Roderick <hruodr@gmail.com> writes:

    Again: I want that emacs do not take any decision on indentetaion.
    Just put blank when I type blank, tab when I type tab.

    Is that to much to expect? Why it is so difficult to get it?!

    Emacs behavior depends on current mode. For plain tabs type 'C-q <TAB>'
    an for plain spaces type 'C-q <SPC>>'. More information about
    indentation is in the manual. Type 'C-h r i indentation <RET>'

    On Sat, 3 Oct 2020, Roderick wrote:

    Long ago I had to struggle with emacs in order that it do not do
    strange things and put:

    (setq-default indent-tabs-mode t)

    Allows tabs with indentation.

    (electric-indent-mode -1)

    Switches off reindentation

    I use emacs since decades, but if I were to decide today for an editor,
    I would not decide to use emacs.

    I'm sad. Maybe it's better you try another one

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ben Bacarisse@21:1/5 to Roderick on Sat Oct 3 12:20:16 2020
    Roderick <hruodr@gmail.com> writes:

    Again: I want that emacs do not take any decision on indentetaion.
    Just put blank when I type blank, tab when I type tab.

    Try

    (global-set-key (kbd "C-i") 'self-insert-command)
    (setq electric-indent-mode nil)

    in your .emacs file.

    Is that to much to expect? Why it is so difficult to get it?!

    Tab, in particular, has been taken over by almost every Emacs mode. I
    don't mind (I usually want what tab does) so I just use C-q <tab> on the
    rare occasions when I want an actual inserted tab.

    --
    Ben.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roderick@21:1/5 to All on Sun Oct 4 14:49:12 2020
    Thanks Bernd and Ben!

    As far as I now understand, tab key does not mean print a tab,
    for that I must use C-q tab. One can get used to that.

    But is a space key a space key or there is the danger that it
    writes something else? Fo I really need to type C-q sp? That
    is different because one types much more spaces than tabs.

    I just want to turn off any automatism.

    R.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Paffenholz@21:1/5 to Roderick on Sun Oct 4 17:28:16 2020
    Roderick <hruodr@gmail.com> writes:

    ...

    But is a space key a space key or there is the danger that it
    writes something else? Fo I really need to type C-q sp? That
    is different because one types much more spaces than tabs.


    In most modes <SPC> is a space. You can type 'C-h k <SPC>' to see
    the real meaning of <SPC>. If it is self-insert-command, a space
    is inserted, when you type <SPC>. Then there is no need für 'C-q'.

    ...

    Bernd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Craig Finseth@21:1/5 to news-Bernd.P@ffenholz.de on Mon Oct 5 10:45:04 2020
    In article <m2y2knk2u8.fsf@pa.ffenholz.de>,
    Bernd Paffenholz <news-Bernd.P@ffenholz.de> wrote:
    Roderick <hruodr@gmail.com> writes:

    Again: I want that emacs do not take any decision on indentetaion.
    Just put blank when I type blank, tab when I type tab.

    Is that to much to expect? Why it is so difficult to get it?!

    Try:

    M-X fundamental-mode <CR>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)