Skip to main content

Questions tagged [let-binding]

2 votes
2 answers
81 views

(First time poster here; I tried to follow guidelines, but please tell me if I should do something differently.) How does one go about "let-binding" a function as to temporarily replace a ...
mmctl's user avatar
  • 23
0 votes
1 answer
37 views

I'm learning about generalized variables (the setf place argument) and have a hypothetical question: Can a generalized variable be passed as an argument to a function, allowing the function to mutate ...
Richard Hansen's user avatar
0 votes
0 answers
50 views

I have tried: (defun winnie-set-relative (step) (cl-letf ((window-state-change-functions nil)) (my-function))) This is my package: https://github.com/QiangF/emacs-winnie. It can be improved if ...
godblessfq's user avatar
  • 1,311
1 vote
1 answer
134 views

On my way learning emacs and doing some first steps in elisp programming, I'm trying to adapt the LaTeX output of org-export. It's a lot learning by doing and that's a good thing since it improves my ...
lukeflo's user avatar
  • 265
0 votes
1 answer
55 views

How can I store the selected value in a let variable when using completing-read ? (let ( (selc '("Lower-Skeleton" "Upper-Skeleton")) ) (completing-read "Vista: " selc ...
Dilna's user avatar
  • 1,473
2 votes
1 answer
369 views

(Please see what is letrec first.) The following code is obviously fine and self-explanatory: ;; -*- lexical-binding: t; -*- (setq post-self-insert-hook `(,@(when (boundp 'post-self-insert-hook) ...
shynur's user avatar
  • 6,200
0 votes
0 answers
43 views

Old code (lexical-let ((beg -1) (end -1) (prev-mid -1)) (defun forward-binary () (interactive) (if (/= prev-mid (point)) (setq beg -1 end -1) (setq beg prev-mid)) (if ...
ychaouche's user avatar
  • 229
0 votes
2 answers
254 views

I need to retrieve a local, lexical, runtime variable from a function, but I'm unable to modify the function to return it because it is from an external library. The variable I'm unable to reach is ...
sextrism's user avatar

15 30 50 per page
1
2 3 4 5