Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
69 views

A way to check if "(current-kill 0)" will run onto an error before it happens

I have an Elisp part involving (current-kill 0) to copy the current clipboard content into a variable. This works flawlessly as long as the kill-ring has content. However, if I just started the ...
Phoenix's user avatar
  • 361
0 votes
1 answer
73 views

How to invoke another function only if there is some error with a given function?

Assume that I have two functions, say function1 and function2. I would like to execute function2 only if there is some error during the execution of function1. So far, I have tried the below code (...
Name's user avatar
  • 8,037