Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.82k stars 253 forks source link

define-obsolete-function-alias needs a third argument #1408

Closed seelabs closed 3 years ago

seelabs commented 3 years ago

Describe the bug

In emacs 28, the when argument of the function define-obsolete-function-alias is no longer optional. When loading rtags, it fails with wrong-number-of-arguments (3 . 4), 2

To Reproduce Steps to reproduce the behavior:

  1. Use a development version of emacs (emacs 28)
  2. Load the rtags library with "m-x load-library rtags"
  3. See the error

Environment (please complete the following information):

Additional context

If I modify the file rtags.el and change line 4694 so it reads: (define-obsolete-function-alias 'rtags-start-process-maybe 'rtags-start-process-unless-running "xxx") then things work correctly. I don't know what the correct value for "xxx" should be, but any string seems to get past the error.

zflat commented 3 years ago

The 'when' argument of make-obsolete and related functions is mandatory since https://emba.gnu.org/emacs/emacs/-/commit/32c6732d16385f242b1109517f25e9aefd6caa5c

Andersbakken commented 3 years ago

Should be fixed now. Thanks.