unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: carlmarcos--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Emanuel Berg <incal@dataswamp.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: [External] : Tab completion and electric-indent-mode
Date: Sat, 18 Jun 2022 06:20:43 +0200 (CEST)	[thread overview]
Message-ID: <N4p1elN--3-2@tutanota.com> (raw)
In-Reply-To: <87mtebi3vk.fsf@dataswamp.org>


Jun 17, 2022, 17:41 by incal@dataswamp.org:

> Drew Adams wrote:
>
>>> `electric-indent-mode` says that in does "On-the-fly
>>> Reindentation". What does that mean, and how is it
>>> different to normal indentation?
>>>
>>
>> What's "normal indentation"?
>>
>
> I was thinking the same! Capable programmers think the
> same ...
>

There seems to be some basic initial indentation (call it normal).  This could be followed be
a subsequent reindent.

> Isn't there a PhD thesis in CS on this where they have
> subdivided it into categories with pros and cons?
>
> In this thread we have encountered
>
> 0. languages that demand indentation to be a certain way (e.g. Python)
>
> 0. situations where TABs are mandatory (e.g. a Makefile for
>  GNU make), i.e. SPC doesn't work
>
> 0. indentation that is done "on the fly" (I agree with whoever
>  just said it isn't clear what that's supposed to mean?)
>

Right.  Confusing what it is doing.

> Note 0:
>  Indenting the code your way, which often is just one or two
>  cases, the rest is the same as everyone else does it - this
>  can be a way to "get into" a bunch of code you originally
>  didn't write, rather it was handed over to you, be it from
>  some intelligence agency, maybe Mossad or the FSB ...
>

Isn't working with the code your way a basic premise of free software?
When emacs is the flagship of the Gnu System, working with the code
your way should actually be supported.


> Note 0:
>  "May I indent your code?", one should be careful saying to
>  a fellow programmer, perhaps.
>
> Note 0:
>  With some languages (e.g. Haskell) you often get stuck doing
>  indentation manually for ages, and after changing some
>  thing, it "has to" be adjusted for that, all of it; I don't
>  know if that is because of Haskell's formal approach and
>  style that resembles math, or Haskell's inherent
>  neuroticism, or if it is some feature of the language, be it
>  the support for and focus on pattern matching often and
>  a lot, the function arguments not the least ...
>
> - HEY, why aren't the digits increasing?!
>
> Because ... these are technical details,
> implementation-specific solutions, as well as general hacker
> lore & legend, what I look for is rather styles of the
> indentation itself. Like "this indentation style is called
> 'leap-and-return' and what characterizes it is its focus on
> [etc etc]"
>
> - Ah, there you go. Thanks for the answer!
>
> np :)
>
> -- 
> underground experts united
> https://dataswamp.org/~incal
>



      reply	other threads:[~2022-06-18  4:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-17 11:59 Tab completion and electric-indent-mode carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-17 14:10 ` [External] : " Drew Adams
2022-06-17 14:14   ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-17 15:33   ` Eli Zaretskii
2022-06-18  3:45     ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-18  6:44       ` Eli Zaretskii
2022-06-18  8:05         ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-18  8:17           ` Eli Zaretskii
2022-06-18 15:35             ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-18 16:20               ` Eli Zaretskii
2022-06-18  9:15       ` Eric S Fraga
2022-06-19  2:26         ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-22 10:46           ` Eric S Fraga
2022-06-18 23:10       ` Drew Adams
2022-06-18 23:19         ` Drew Adams
2022-06-17 17:41   ` Emanuel Berg
2022-06-18  4:20     ` carlmarcos--- via Users list for the GNU Emacs text editor [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=N4p1elN--3-2@tutanota.com \
    --to=help-gnu-emacs@gnu.org \
    --cc=carlmarcos@tutanota.com \
    --cc=incal@dataswamp.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).