unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@online.de>
To: emacs-devel@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Useless change in lisp.el?
Date: Mon, 26 Nov 2007 20:58:24 +0100	[thread overview]
Message-ID: <200711262058.25592.andreas.roehler@online.de> (raw)
In-Reply-To: <jwvprxwajza.fsf-monnier+emacs@gnu.org>

Am Montag, 26. November 2007 20:26 schrieb Stefan Monnier:
> > Should you not cling to much to that disputed change
> > and no one else defends it, I would appreciate much
> > seeing it reverted.
>
> Rather than argue abuot the change itself, just give us some use
> case where the new behavior is problematic.
>

Can't see any new behaviour with this change, that's
it.  AFAIU you introduced more lines of code and provision
for possible bugs not to fear before.

 ;; In case the beginning-of-defun-function uses the old calling
      ;; convention, fallback on the old implementation.
      (wrong-number-of-arguments
       (if (> arg 0)
           (dotimes (i arg)
             (funcall beginning-of-defun-function))
         ;; Better not call end-of-defun-function directly, in case
         ;; it's not defined.
         (end-of-defun (- arg))))))


Now you have the old implementation, called if
`(wrong-number-of-arguments'--what wasn't at the table
before--new implementation and the default as always:
Three instead of two items to watch.

If you want Emacs as extendable, it matters, how
the code is written. If you introduce things without
valid reason--that's my view still--it will be less readable,
people need more time to dig through.

Andreas Röhler

      reply	other threads:[~2007-11-26 19:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 16:55 Useless change in lisp.el? Andreas Röhler
2007-11-26 15:09 ` Stefan Monnier
2007-11-26 18:14   ` Andreas Röhler
2007-11-26 18:33     ` Andreas Röhler
2007-11-26 19:26     ` Stefan Monnier
2007-11-26 19:58       ` Andreas Röhler [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=200711262058.25592.andreas.roehler@online.de \
    --to=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 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).