unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How do you say "I know it is obsolete"
@ 2010-01-12  4:00 Lennart Borgman
  2010-01-12 14:10 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2010-01-12  4:00 UTC (permalink / raw)
  To: Emacs-Devel devel

How do you say to the byte compiler "yes, I know the function is
obsolete but I must call it for older versions"?

And how do you say "yes, ok, call the new function instead then"?




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

* Re: How do you say "I know it is obsolete"
  2010-01-12  4:00 How do you say "I know it is obsolete" Lennart Borgman
@ 2010-01-12 14:10 ` Stefan Monnier
  2010-01-12 15:21   ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2010-01-12 14:10 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs-Devel devel

> How do you say to the byte compiler "yes, I know the function is
> obsolete but I must call it for older versions"?

There's with-no-warnings, if you care enough.

> And how do you say "yes, ok, call the new function instead then"?

By editing the source.  It can't be made automatic, because all too
often the new function doesn't work exactly in the same way.


        Stefan




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

* RE: How do you say "I know it is obsolete"
  2010-01-12 14:10 ` Stefan Monnier
@ 2010-01-12 15:21   ` Drew Adams
  2010-01-12 15:57     ` Lennart Borgman
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2010-01-12 15:21 UTC (permalink / raw)
  To: 'Stefan Monnier', 'Lennart Borgman'
  Cc: 'Emacs-Devel devel'

> > How do you say to the byte compiler "yes, I know the function is
> > obsolete but I must call it for older versions"?
> 
> There's with-no-warnings, if you care enough.

`with-no-warnings' is not defined in versions prior to Emacs 22.





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

* Re: How do you say "I know it is obsolete"
  2010-01-12 15:21   ` Drew Adams
@ 2010-01-12 15:57     ` Lennart Borgman
  0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-01-12 15:57 UTC (permalink / raw)
  To: Drew Adams; +Cc: Stefan Monnier, Emacs-Devel devel

On Tue, Jan 12, 2010 at 4:21 PM, Drew Adams <drew.adams@oracle.com> wrote:
>> > How do you say to the byte compiler "yes, I know the function is
>> > obsolete but I must call it for older versions"?
>>
>> There's with-no-warnings, if you care enough.
>
> `with-no-warnings' is not defined in versions prior to Emacs 22.

Thanks Stefan and Drew.




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

end of thread, other threads:[~2010-01-12 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12  4:00 How do you say "I know it is obsolete" Lennart Borgman
2010-01-12 14:10 ` Stefan Monnier
2010-01-12 15:21   ` Drew Adams
2010-01-12 15:57     ` Lennart Borgman

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