Questions tagged [cl-lib]

Common Lisp extensions for Emacs

2 questions
1
vote
1 answer

How to implement `cl-print-object`?

I am using 'eieio and 'cl-lib and I'm trying to define the object-print method for my class as described here: https://www.gnu.org/software/emacs/manual/html_mono/eieio.html#Basic-Methods (cl-defmethod object-print ((this data-object) &optional…
gdonald
  • 984
  • 2
  • 12
  • 23
0
votes
1 answer

How to add a new specializer to cl-defmethod apply to multiple major-modes?

How can I extend a cl-defmethod to match on multiple major-modes? There is a little documentation in cl-generic, but I don't understand what is going on with the generalizer macros. As an example, (cl-defgeneric my-gen-fun (arg) (message "%S"…
Rorschach
  • 31,301
  • 5
  • 78
  • 129