]> git.eshelyaron.com Git - emacs.git/commitdiff
unintern: Drop support for obsolete calling convention
authorStefan Kangas <stefankangas@gmail.com>
Mon, 16 Dec 2024 22:58:34 +0000 (23:58 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:10:43 +0000 (16:10 +0100)
* lisp/subr.el (unintern):
* src/lread.c (Funintern): Drop support for old calling convention,
obsolete since 23.3.
* test/lisp/progmodes/elisp-mode-tests.el
(elisp-shorthand-escape): Don't use obsolete calling convention.

(cherry picked from commit 5a8adaeac81182f080b041a3a3840580c61213d2)

etc/NEWS
lisp/subr.el
src/lread.c
test/lisp/progmodes/elisp-mode-tests.el

index 85a202ee87c755c755d668247391e3c7e3633c8e..02b773d62247d6687269deaeb5fab2b5ac9f61fd 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -878,7 +878,7 @@ only continue the active repeating sequence.
 It offers a more concise way to create a completion table with metadata.
 
 +++
-** 'all-completions' no longer supports the old calling convention.
+** 'all-completions' and 'obarray' no longer support their old calling conventions.
 
 \f
 * Changes in Emacs 31.1 on Non-Free Operating Systems
index db05f1d6880c908f2ca876440f5c31243addba2c..8eec5dda89fbe455b739fb2007ab15dbd2f691ba 100644 (file)
@@ -1977,7 +1977,6 @@ be a list of the form returned by `event-start' and `event-end'."
            (side-effect-free t) (obsolete log "24.4"))
   (log x 10))
 
-(set-advertised-calling-convention 'unintern '(name obarray) "23.3")
 (set-advertised-calling-convention 'indirect-function '(object) "25.1")
 (set-advertised-calling-convention 'redirect-frame-focus '(frame focus-frame) "24.3")
 (set-advertised-calling-convention 'libxml-parse-xml-region '(&optional start end base-url) "27.1")
index 56e5522d27056690051116709e1a7d4da712e112..1da82e44c8e698c4ccfd10621324dcb52374ded6 100644 (file)
@@ -5085,13 +5085,12 @@ it defaults to the value of `obarray'.  */)
     }
 }
 \f
-DEFUN ("unintern", Funintern, Sunintern, 1, 2, 0,
+DEFUN ("unintern", Funintern, Sunintern, 2, 2, 0,
        doc: /* Delete the symbol named NAME, if any, from OBARRAY.
 The value is t if a symbol was found and deleted, nil otherwise.
 NAME may be a string or a symbol.  If it is a symbol, that symbol
 is deleted, if it belongs to OBARRAY--no other symbol is deleted.
-OBARRAY, if nil, defaults to the value of the variable `obarray'.
-usage: (unintern NAME OBARRAY)  */)
+OBARRAY, if nil, defaults to the value of the variable `obarray'.  */)
   (Lisp_Object name, Lisp_Object obarray)
 {
   register Lisp_Object tem;
index e8224db361324f6282099bbd6165a498a8dd8ad5..70cfc35b7bdbce562161b4e5d3066575e921d802 100644 (file)
@@ -1112,7 +1112,7 @@ evaluation of BODY."
     (should (intern-soft "f-test4---"))
     (should-not (intern-soft "elisp--foo-test4---"))
     (should (= 84 (funcall (intern-soft "f-test4---"))))
-    (should (unintern "f-test4---"))))
+    (should (unintern "f-test4---" obarray))))
 
 (ert-deftest elisp-dont-shadow-punctuation-only-symbols ()
   (let* ((shorthanded-form '(/= 42 (-foo 42)))