Skip to content

Commit

Permalink
Fix use of `telega-chat-attach-commands' in contrib packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zevlg committed Nov 8, 2023
1 parent 4f08c83 commit 3e7bc49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions contrib/telega-live-location.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ Return live location from geo module, otherwise fallback to
;; For `C-c C-a live-geo-location RET'
(unless (assoc "live-geo-location" telega-chat-attach-commands)
(add-to-list 'telega-chat-attach-commands
(list "live-geo-location" #'geo-last-location
#'telega-live-location-attach-live-geo-location)
'("live-geo-location"
(eval (geo-last-location))
#'telega-live-location-attach-live-geo-location)
'append))

;; Update location on start
Expand Down
2 changes: 1 addition & 1 deletion contrib/telega-mnz.el
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ ARG is passed directly to function `telega-mnz-mode'."
;; For `C-c C-a code RET'
(unless (assoc "code" telega-chat-attach-commands)
(add-to-list 'telega-chat-attach-commands
(list "code" nil #'telega-mnz-chatbuf-attach-code) 'append))
'("code" (return t) #'telega-mnz-chatbuf-attach-code) 'append))

(provide 'telega-mnz)

Expand Down

0 comments on commit 3e7bc49

Please sign in to comment.