Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9982
3 votes

Backup a variable and store it back

Just use let. Write something like this: (let ((foo 323)) …) Where the ellipsis is, place whatever code you wanted to run with foo set to 323. Once that code finishes, foo will go back to having wh …
db48x's user avatar
  • 19.1k
1 vote

Avoiding code duplication with conditional code that uses let bindings

There are as many ways of writing this as there are people, but here is how I might do it: (defun my-func () (cl-multiple-value-bind (v1 v2) (if some-condition (cl-values 2 3) …
db48x's user avatar
  • 19.1k