all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleh Krehel <oleh@oremacs.com>
To: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-25 b6d6304: Comment on last change to define-derived-mode
Date: Mon, 07 Mar 2016 16:26:00 +0100	[thread overview]
Message-ID: <874mcicnsn.fsf@oremacs.com> (raw)
In-Reply-To: <m2vb4ytk73.fsf@newartisans.com> (John Wiegley's message of "Mon,  07 Mar 2016 06:51:44 -0800")

John Wiegley <jwiegley@gmail.com> writes:

>>>>>> Oleh Krehel <oleh@oremacs.com> writes:
>
>> So I've added an indentation hint that 94% of the code already follows,
>> while 6% doesn't. It's up to you as the maintainer to decide if we want to
>> have a 94/6 split just to not ruffle any feathers. Or we want to enforce a
>> rule to make all code uniform - easier to read and contribute to.
>
> If we're formalizing what 94% of our code already does, that can helpful for
> setting expected standards.  However, that's 94% of our code, not 94% of
> everything that's out there.

Like I said, it's up to you to decide what to do.  You've already shown
favor to the testing and bug-squashing directions for the Emacs
development.

In my opinion, the coding style could be another useful direction. By
this I mean:

- Removing the ambiguity about `indent-tabs-mode'.

- Working on something like `pretty-print-buffer': a command to
  automatically eliminate hanging parens, consecutive spaces,
  multi-variable `setq'; and re-indent everything.
    
- Extending the checkdoc to find more warnings in the code style, like
  unresolved declarations etc.

- Formalizing the C code style, tutorials, contribution guidelines
  etc. Maybe we could have a linter for C.

I think it would be great if at some moment we could stop thinking how a
code looks, and only think about what it does. And ignoring how it looks
isn't really a great solution - it may work for some, doesn't work for
me at the moment.



  reply	other threads:[~2016-03-07 15:26 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160301035146.26012.60163@vcs.savannah.gnu.org>
     [not found] ` <E1aabLe-0006mA-65@vcs.savannah.gnu.org>
2016-03-01 14:24   ` [Emacs-diffs] emacs-25 b6d6304: Comment on last change to define-derived-mode Stefan Monnier
2016-03-03  1:36     ` Leo Liu
2016-03-03  8:19       ` Oleh Krehel
2016-03-03 14:55         ` Kaushal Modi
2016-03-04 14:26       ` Stefan Monnier
2016-03-04 16:10         ` Dmitry Gutov
2016-03-05  2:09           ` Leo Liu
2016-03-05  3:11             ` Dmitry Gutov
2016-03-05  9:48               ` Leo Liu
2016-03-05 13:32                 ` Dmitry Gutov
2016-03-05 14:41                   ` Leo Liu
2016-03-05 14:51                     ` Dmitry Gutov
     [not found]               ` <8760x16nag.fsf@oremacs.com>
2016-03-05 14:50                 ` Dmitry Gutov
2016-03-06  2:58             ` John Wiegley
2016-03-06  7:22               ` Oleh Krehel
2016-03-06 21:01                 ` John Wiegley
2016-03-07  4:10                   ` Leo Liu
2016-03-07  8:48                   ` Oleh Krehel
2016-03-07 14:51                     ` John Wiegley
2016-03-07 15:26                       ` Oleh Krehel [this message]
2016-03-07 15:43                         ` Clément Pit--Claudel
2016-03-07 15:59                           ` Oleh Krehel
2016-03-07 16:03                             ` Drew Adams
2016-03-07 16:11                               ` Clément Pit--Claudel
2016-03-07 17:00                                 ` Drew Adams
2016-03-07 16:03                           ` Drew Adams
2016-03-08 15:32                             ` Thierry Volpiatto
2016-03-07 15:44                         ` John Wiegley
2016-03-07 15:58                           ` Oleh Krehel
2016-03-07 16:01                             ` Dmitry Gutov
2016-03-08  4:35         ` Stefan Monnier
2016-03-08 12:33           ` Dmitry Gutov

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

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

  git send-email \
    --in-reply-to=874mcicnsn.fsf@oremacs.com \
    --to=oleh@oremacs.com \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.