unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* (doc-view.el) Tabs or spaces convention?
@ 2022-01-19 13:22 dalanicolai
  2022-01-19 14:03 ` Robert Pluim
  2022-01-19 14:41 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: dalanicolai @ 2022-01-19 13:22 UTC (permalink / raw)
  To: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

It seems that doc-view.el is (still) full of tabs (I only discovered when I
wanted to make a commit,
and git errored). I will just convert all tabs to spaces unless that would
make me deviate from
some 'hidden' convention. In that case, please inform me about it. I wasn't
able to find any info
about it.

Thanks!

[-- Attachment #2: Type: text/html, Size: 417 bytes --]

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

* Re: (doc-view.el) Tabs or spaces convention?
  2022-01-19 13:22 (doc-view.el) Tabs or spaces convention? dalanicolai
@ 2022-01-19 14:03 ` Robert Pluim
  2022-01-19 14:41 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Pluim @ 2022-01-19 14:03 UTC (permalink / raw)
  To: dalanicolai; +Cc: Emacs Devel

>>>>> On Wed, 19 Jan 2022 14:22:48 +0100, dalanicolai <dalanicolai@gmail.com> said:

    dalanicolai> It seems that doc-view.el is (still) full of tabs (I only discovered when I
    dalanicolai> wanted to make a commit,
    dalanicolai> and git errored).

I think the Emacs git hooks only trigger on trailing whitespace, but
of course git also checks stuff like that.

    dalanicolai> I will just convert all tabs to spaces unless that would
    dalanicolai> make me deviate from
    dalanicolai> some 'hidden' convention. In that case, please inform me about it. I wasn't
    dalanicolai> able to find any info
    dalanicolai> about it.

If itʼs on lines that youʼre changing anyway, itʼs not an issue, just
donʼt mass replace tabs with spaces in the whole file.

Robert
-- 



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

* Re: (doc-view.el) Tabs or spaces convention?
  2022-01-19 13:22 (doc-view.el) Tabs or spaces convention? dalanicolai
  2022-01-19 14:03 ` Robert Pluim
@ 2022-01-19 14:41 ` Stefan Monnier
  2022-01-19 21:41   ` Stefan Kangas
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2022-01-19 14:41 UTC (permalink / raw)
  To: dalanicolai; +Cc: Emacs Devel

> It seems that doc-view.el is (still) full of tabs (I only discovered
> when I wanted to make a commit, and git errored). I will just convert
> all tabs to spaces unless that would make me deviate from some
> 'hidden' convention. In that case, please inform me about it. I wasn't
> able to find any info about it.

Lots and lots of Emacs files are full of TABs.  We don't want to change
all of that just because some coders are hang up on such largely
irrelevant details: SPCs are not clearly superiors and (more
importantly) the change would introduce painful merge conflicts.

Feel free to use whichever mix of SPC and TABs you prefer in the lines
that you do change for other reasons, but please don't change only the
TAB/SPC part.

Instead of worrying about TABs-vs-SPCs I recommend throwing snowballs or
cooking lentils (tho I'm sure you can come up with better options),


        Stefan




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

* Re: (doc-view.el) Tabs or spaces convention?
  2022-01-19 14:41 ` Stefan Monnier
@ 2022-01-19 21:41   ` Stefan Kangas
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2022-01-19 21:41 UTC (permalink / raw)
  To: Stefan Monnier, dalanicolai; +Cc: Emacs Devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Feel free to use whichever mix of SPC and TABs you prefer in the lines
> that you do change for other reasons, but please don't change only the
> TAB/SPC part.

I recommend the ws-butler package (on NonGNU ELPA), which automatically
fixes spaces and tabs to follow the project settings, but only on the
lines you have changed.



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

end of thread, other threads:[~2022-01-19 21:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-19 13:22 (doc-view.el) Tabs or spaces convention? dalanicolai
2022-01-19 14:03 ` Robert Pluim
2022-01-19 14:41 ` Stefan Monnier
2022-01-19 21:41   ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).