[Top][All Lists]

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

Quoted function in `define-key'

From: Narendra Joshi
Subject: Quoted function in `define-key'
Date: Sat, 04 Feb 2017 15:50:05 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

The following piece of code is confusing me. It is from `rinari-minor-mode'.

(dolist (el (append (mapcar
                     (lambda (el)
                       (cons (concat "f" (second el))
                             (read (format "'rinari-find-%S"
                                           (first el)))))
  (eval `(define-key rinari-prefix-map ,(car el) ,(cdr el))))

If I replace the last expression with:

(define-key rinari-prefix-map (car el) (cdr el))

why does it fail?

(cdr el) is (quote function-name) which is exactly the same as

Narendra Joshi

reply via email to

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