unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Subject: English usage bug in bytecomp.el
Date: Mon, 7 Mar 2005 20:17:28 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.3.96.1050307200413.426A-100000@acm.acm> (raw)

Mark a function obsolete with:

(make-obsolete 'foo 'bar "21.4")

Compile another function which calls `foo'.  The following warning
appears in the *Compile-Log*:

While compiling toplevel forms:
  ** `foo' is an obsolete function since 21.4; use
     `bar' instead.

.  This combination of "is" and "since" is incorrect English usage.
Correct is "`foo HAS BEEN an obsolete function since 21.4;".  The
following patch fixes this.

2005-03-07  Alan Mackenzie  <acm@muc.de>

        * bytecomp.el (byte-compile-obsolete): Correct an English Usage
        * bug.

*** bytecomp-2.161.el	Mon Mar  7 19:31:05 2005
--- bytecomp-2.161.acm.el	Mon Mar  7 20:02:28 2005
***************
*** 1038,1044 ****
  	 (when (nth 2 new)))
      (byte-compile-set-symbol-position (car form))
      (if (memq 'obsolete byte-compile-warnings)
! 	(byte-compile-warn "`%s' is an obsolete function%s; %s" (car form)
  			   (if when (concat " since " when) "")
  			   (if (stringp (car new))
  			       (car new)
--- 1038,1045 ----
  	 (when (nth 2 new)))
      (byte-compile-set-symbol-position (car form))
      (if (memq 'obsolete byte-compile-warnings)
! 	(byte-compile-warn "`%s' %s an obsolete function%s; %s" (car form)
! 			   (if when "has been" "is")
  			   (if when (concat " since " when) "")
  			   (if (stringp (car new))
  			       (car new)


-- 
Alan Mackenzie (Munich, Germany)

             reply	other threads:[~2005-03-07 20:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-07 20:17 Alan Mackenzie [this message]
2005-03-07 23:09 ` English usage bug in bytecomp.el Miles Bader
2005-03-08  8:02   ` Alan Mackenzie
2005-03-08  8:49     ` Nick Roberts
2005-03-08 10:24       ` David Kastrup
2005-03-08 11:45         ` Nick Roberts
2005-03-08  9:57     ` Miles Bader
2005-03-08 10:33       ` David Kastrup
2005-03-08 15:37         ` John S. Yates, Jr.
2005-03-08 16:08       ` Bill Wohler
2005-03-08 17:26         ` Andreas Schwab
2005-03-08 21:10         ` Nick Roberts
2005-03-08 22:15         ` Miles Bader
2005-03-08 22:36           ` Bill Wohler
2005-03-09 16:59           ` Richard Stallman
2005-03-09  3:12       ` Richard Stallman
2005-03-09  9:49         ` David Kastrup
2005-03-09 10:22           ` Miles Bader
2005-03-08 13:08     ` Stefan Monnier
2005-03-09  3:12     ` Richard Stallman

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=Pine.LNX.3.96.1050307200413.426A-100000@acm.acm \
    --to=acm@muc.de \
    /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).