emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/pkg 395c5d1c2f: Remove an invalid eassert


From: Gerd Moellmann
Subject: feature/pkg 395c5d1c2f: Remove an invalid eassert
Date: Sat, 22 Oct 2022 06:37:47 -0400 (EDT)

branch: feature/pkg
commit 395c5d1c2f2469b8125971c152bc606076031787
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    Remove an invalid eassert
    
    * src/pkg.c (pkg_emacs_intern): Don't assert that symbol names
    can never start with a colon.
---
 src/pkg.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/pkg.c b/src/pkg.c
index c295fabbc3..8a8ff4f227 100644
--- a/src/pkg.c
+++ b/src/pkg.c
@@ -542,7 +542,9 @@ pkg_emacs_intern (Lisp_Object name, Lisp_Object package)
       package = Vkeyword_package;
     }
 
-  eassert (SREF (name, 0) != ':');
+  /* The following assertion would be invalid because we might want to
+     intern '::' in the keyword package, and a test does that.  */
+  //eassert (SREF (name, 0) != ':');
 
   if (VECTORP (package))
     package = pkg_fake_me_an_obarray (package);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]