branch: externals/cm-mode
commit 8939c7734ad8161cdcd8d843cc0f6792ccbf337f
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>

    Change cm-last1 into a function.
    
    mapcar complained about cm-last1 not being a function.
---
 cm-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cm-mode.el b/cm-mode.el
index 3ebe00f33e..43c67d06e5 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -84,9 +84,9 @@
 (require 'thingatpt)
 (require 'cl-macs)
 
-(defmacro cm-last1 (list)
+(defun cm-last1 (list)
   "Return the last element of LIST."
-  `(car (last ,list)))
+  (car (last list)))
 
 (defvar cm-follow-changes nil
   "Flag indicating whether follow changes mode is active.")

Reply via email to