mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Don't add useless kill ring entries
while describing snippet tables. This should also help users of packages like pbcopy.el (which creates a new process on every modification of the kill-ring, hence many `kill-region' calls at once cause Emacs to run out of file descriptors). * yasnippet.el (yas--create-snippet-xrefs): Use delete-region instead of kill-region. Copyright-paperwork-exempt: yes Close #675.
This commit is contained in:
parent
3e67b1bb7b
commit
87710827e9
@ -4375,8 +4375,8 @@ object satisfying `yas--field-p' to restrict the expansion to.")))
|
||||
'yasnippet)))
|
||||
(when template
|
||||
(help-xref-button 1 'help-snippet-def template)
|
||||
(kill-region (match-end 1) (match-end 0))
|
||||
(kill-region (match-beginning 0) (match-beginning 1)))))))
|
||||
(delete-region (match-end 1) (match-end 0))
|
||||
(delete-region (match-beginning 0) (match-beginning 1)))))))
|
||||
|
||||
;;; Utils
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user