|
From: | Stefan Monnier |
Subject: | Re: [elpa] scratch/prose-mode 9b83489: [prose-mode] Initial commit |
Date: | Sat, 02 Jun 2018 22:33:46 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> + (advice-add > + 'kill-region > + :after > + #'prose-mode-add-yank-handler)) Hmm... could you use filter-buffer-substring-function to add the yank-handler? > + (start-marker (set-marker (make-marker) (car bounds))) > + (end-marker (set-marker (make-marker) (nth 1 bounds)))) I recommend `copy-marker`. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |