unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* English usage bug in bytecomp.el
@ 2005-03-07 20:17 Alan Mackenzie
  2005-03-07 23:09 ` Miles Bader
  0 siblings, 1 reply; 20+ messages in thread
From: Alan Mackenzie @ 2005-03-07 20:17 UTC (permalink / 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)

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-03-09 16:59 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 20:17 English usage bug in bytecomp.el Alan Mackenzie
2005-03-07 23:09 ` 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

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).