Search Results
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 |
46
votes
Accepted
what does "let*" ( let asterisk) mean in elisp
It means that when there is more than one binding the variables are bound sequentially, so that each can depend on the values bound to those that are bound before it, i.e., those that come before it i …
13
votes
Is there any difference between '(let (var) ...)' and '(let ((var nil)) ...)'?
@amitp provided the answer. They do have the same behavior.
However, IMO they can indicate something slightly different to a human reader of the code -- at least according to an informal convention. …
4
votes
Accepted
Is it possible to use let-binding for setting keys?
You can let-bind the keymap variable (presumably tex-file-mode-map) to a new keymap:
(let ((tex-file-mode-map (make-sparse-keymap)))
...)
Its value before binding it is restored after the let. Afte …
2
votes
How to let-bind multiple variables conditional on X?
There is no idiomatic way to do it, IMO. Do what you like.
If you want to be sure to test the condition only once that you are currently retesting, then here is another possibility, where I've used f …
1
vote
How to set a variable name with a variable?
The variable needs to be a symbol, not a string: my/variable, not "my/variable".
(let ((myvar 'my/variable)
(myval "Some Value"))
(set myvar myval)
(message "MYVAR: %S" myvar))
Of course, i …
1
vote
Accepted
Bring setq variable into a (let ...) context of a elisp function?
The question isn't clear. What do you want the (lexical) scope of the variables to be? What code do you want to be inside the scope, and what code outside it? A wild guess is that you just want to use …
1
vote
Why does let binding sometimes seem to fail to override a value?
(You can just replace your (hs-minor-mode) to show the same effect, BTW.)
You're getting fooled by the echoing of the result of evaluation provided by a command such as C-x C-e or M-:.
Calls to messag …
0
votes
HTTP Error 400 returned when accessing MELPA package archive
This might be a start:
Your let-binding is probably not what you want. It just binds two variables to nil: tlsAvailable and gnutls-available-p.
I expect you really wanted this, which binds variable tl …
0
votes
Moving position of variable in a let clause
Yes, why not?
(let* ((last-ppss-pos (point))
(ppss (syntax-ppss)))
(while (> end (progn (skip-syntax-forward "^()" end) (point)))
(let* ((brace-pos (point))
(brace-stx …