1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-02-02 04:36:43 +01:00

- prevented crash when building the function bound to a keychord that is dadined as an anonymous function.

This commit is contained in:
cage 2022-04-16 12:13:03 +02:00
parent c9878b2ae4
commit dd78fd015f
2 changed files with 17 additions and 12 deletions

View File

@ -581,9 +581,11 @@
(defun copy-to-clipboard (window)
(ui:copy-link-to-clipboard window))
(define-key "C-c" (lambda ()
(copy-link-to-clipboard specials:*open-attach-window*))
*open-attach-keymap*)
(defun copy-from-attach-window-to-clipboard ()
"Copy the selected link to clipboard"
(copy-link-to-clipboard specials:*open-attach-window*))
(define-key "C-c" #'copy-from-attach-window-to-clipboard *open-attach-keymap*)
(define-key "C-J" #'open-message-attach-perform-opening *open-attach-keymap*)
@ -603,9 +605,11 @@
(define-key "C-J" #'open-message-link-perform-opening *open-message-link-keymap*)
(define-key "C-c" (lambda ()
(copy-link-to-clipboard specials:*open-message-link-window*))
*open-message-link-keymap*)
(defun copy-from-message-link-to-clipboard ()
"Copy the selected link to clipboard"
(copy-link-to-clipboard specials:*open-message-link-window*))
(define-key "C-c" #'copy-from-message-link-to-clipboard *open-message-link-keymap*)
(define-key "up" #'open-message-link-go-up *open-message-link-keymap*)

View File

@ -118,12 +118,13 @@
(defun function-name (data)
"Implementation dependent"
(assert (functionp data))
(multiple-value-bind (x y name)
(function-lambda-expression data)
(declare (ignore x y))
(if name
(string-downcase (symbol-name name))
data)))
(conditions:with-default-on-error ((_ "Anonymous function"))
(multiple-value-bind (x y name)
(function-lambda-expression data)
(declare (ignore x y))
(if name
(string-downcase (symbol-name name))
data))))
(defmacro fn-delay (a)
(if (symbolp a)