Git Product home page Git Product logo

Comments (8)

bbatsov avatar bbatsov commented on July 24, 2024

Mix of tabs and spaces? That's almost never a good idea. I think that in the last few years almost all indentation styles have converged upon the "spaces only for indentation" style. Enforcing the style is a good idea, though.

from helm.

thierryvolpiatto avatar thierryvolpiatto commented on July 24, 2024

Jonas Bernoulli
[email protected]
writes:

I just noticed that you indent using spaces only.

My preference is to spaces only.
I think Le fixed this with a local variable.
Otherwise, please just untabify when you make changes

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

from helm.

lewang avatar lewang commented on July 24, 2024

@thierryvolpiatto I did fix it. In my commit message I mentioned fixes #5. That's why see the commit in this thread. See github issues for details.

from helm.

tarsius avatar tarsius commented on July 24, 2024

I have no problem with spaces-only if it is enforced; like it is now. But

Otherwise, please just untabify when you make changes

caused a lot of problems in the past, I think.

The indentation is messed up a lot in helm-config.el. These problems have nothing to do with whether one prefers tabs or spaces or both - but I have a feeling that they might result from carelessly converting from one to the other. Anyways, that should no longer be a problem as the preferred style is now enforced. I will send a new pull request with the cleanup.

from helm.

thierryvolpiatto avatar thierryvolpiatto commented on July 24, 2024

Jonas Bernoulli
[email protected]
writes:

I have no problem with spaces-only if it is enforced; like it is now. But

Otherwise, please just untabify when you make changes

caused a lot of problems in the past, I think.

The indentation is messed up a lot in helm-config.el.

Mostly the result of renaming anything to helm e.g with &key arguments
in many functions like helm-comp-read.

These problems have nothing to do with whether one prefers tabs or
spaces or both - but I have a feeling that they might result from
carelessly converting from one to the other. Anyways, that should no
longer be a problem as the preferred style is now enforced. I will
send a new pull request with the cleanup.


Reply to this email directly or view it on GitHub:
#5 (comment)

Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

from helm.

tarsius avatar tarsius commented on July 24, 2024

Didn't think about this :-)

from helm.

tarsius avatar tarsius commented on July 24, 2024

While I am at it... do you want to keep:

(defface helm-apt-deinstalled
....'((t (:foreground "DimGray")))
.."*Face used for apt deinstalled candidates."
..:group 'helm)

instead of

(defface helm-apt-deinstalled
..'((t (:foreground "DimGray")))
.."*Face used for apt deinstalled candidates."
..:group 'helm)

from helm.

tarsius avatar tarsius commented on July 24, 2024

What about:

(flet ((some-function (args)
.........fn-code))
..using-fn)

which indent-region "corrects" to:

(flet ((some-function (args)
......................fn-code))
..using-fn)

I like the former better too, but usually just use:

(flet ((some-function
.........(args)
.........fn-code))
..using-fn)

so that I and indent-region agree on how this is supposed to be indented.

from helm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.