all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: string-to-unibyte in image-jpeg-p
Date: Fri, 25 May 2018 16:39:06 -0400	[thread overview]
Message-ID: <jwva7snmqav.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83603ba6rb.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 May 2018 22:13:12 +0300")

>> >> > +(make-obsolete 'image-jpeg-p nil "27.1")
>> >> Nowadays I'd recommend the use of (declare (obsolete nil "27.1"))
>> > Why?  What are the factors to consider?
>> My recommendation?
> I was hoping to hear some of the reasons why you recommend that,

I know, but I must admit that it's largely a question of taste.
I wrote the code that makes it possible, so I'm biased.  Still,
regarding my motivation for writing this code:
- I like the fact that it avoids duplicating the function name.
- It makes it possible for C-M-x to work correctly (e.g. remove the
  obsolescence if you remove the `obsolete` from the `declare`
  (or if you C-M-x on a completely different definition which happens to
  have the same name) tho admittedly the current implementation doesn't
  actually do it).
- More generally, it attaches the declaration to the function's
  *definition* rather than to its *name*, which I think is TRT (even
  tho, again, the underlying implementation still ends up associating
  the two via the name).
- I guess it's more declarative (tho this word tends to be used in
  programming languages a bit like "goodness" in cereal packages or
  the way "GT" was used in cars (back when I was interested in them)).


-- Stefan



  reply	other threads:[~2018-05-25 20:39 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-23 10:21 string-to-unibyte in image-jpeg-p Thien-Thi Nguyen
2018-05-23 19:43 ` Stefan Monnier
2018-05-23 20:01 ` Eli Zaretskii
2018-05-23 20:17 ` Andreas Schwab
2018-05-23 20:29   ` Stefan Monnier
2018-05-23 20:46     ` Paul Eggert
2018-05-24  8:51       ` Robert Pluim
2018-05-24 15:19         ` Eli Zaretskii
2018-05-24 15:31           ` Robert Pluim
2018-05-24 17:09             ` Eli Zaretskii
2018-05-24 19:51             ` Stefan Monnier
2018-05-25  6:10               ` Eli Zaretskii
2018-05-25 18:01                 ` Stefan Monnier
2018-05-25 19:13                   ` Eli Zaretskii
2018-05-25 20:39                     ` Stefan Monnier [this message]
2018-05-26  8:27                       ` Eli Zaretskii
2018-05-31 10:40               ` Robert Pluim
2018-05-31 14:50                 ` Eli Zaretskii
2018-05-31 15:17                   ` Robert Pluim
2018-05-24 15:59           ` Stefan Monnier
2018-05-24 17:00             ` Eli Zaretskii
2018-05-24 19:51               ` Stefan Monnier
2018-05-25  6:10                 ` Eli Zaretskii
2018-05-26 21:02                   ` Stefan Monnier
2018-05-24 16:57           ` Eli Zaretskii

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=jwva7snmqav.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --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.