New answers tagged

2

Mostly your problem was misplaces parens: too many ) here: (let ((tmp (car kill-ring)))) Use paren-mode to see which parens balances which parens. Standard function kill-new replaces the head of the kill-ring if you give it a second arg of non-nil. So (kill-new "xxx" t) replaces the head of the kill-ring with xxx. So try this: (defun foo () (...


1

See C-hig (elisp)Buffer Contents In short, use one of the following: buffer-string buffer-substring buffer-substring-no-properties


Top 50 recent answers are included