]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/dictionary.el: Prefer defsubst over defmacro
authorTorsten Hilbrich <torsten.hilbrich@gmx.net>
Mon, 14 Dec 2020 08:34:44 +0000 (09:34 +0100)
committerTorsten Hilbrich <torsten.hilbrich@gmx.net>
Mon, 14 Dec 2020 10:45:24 +0000 (11:45 +0100)
lisp/net/dictionary.el

index 624c1a40f55b2770d4decfaefd841f3a5fc88c10..782282c27cd14199b225a5907eb12dbc31b64f35 100644 (file)
@@ -422,17 +422,17 @@ is utf-8"
   (dictionary-pre-buffer)
   (dictionary-post-buffer))
 
-(defmacro dictionary-reply-code (reply)
+(defsubst dictionary-reply-code (reply)
   "Return the reply code stored in `reply'."
-  (list 'get reply ''reply-code))
+  (get reply 'reply-code))
 
-(defmacro dictionary-reply (reply)
+(defsubst dictionary-reply (reply)
   "Return the string reply stored in `reply'."
-  (list 'get reply ''reply))
+  (get reply 'reply))
 
-(defmacro dictionary-reply-list (reply)
+(defsubst dictionary-reply-list (reply)
   "Return the reply list stored in `reply'."
-  (list 'get reply ''reply-list))
+  (get reply 'reply-list))
 
 (defun dictionary-open-server (server)
   "Opens a new connection to this server"