Questions tagged [scope]

7 questions
2
votes
1 answer

Are there other ways of introducing local variables other than `let`

I am new to Emacs-Lisp and I was surprised to learn a curious variable scoping rule in Emacs that any variables which are intended to be used locally must be explicitly declared with let. Otherwise variables set with setq get global scope. to be…
smilingbuddha
  • 1,201
  • 10
  • 26
0
votes
1 answer

How create custom function access only from ONE el file?

Emacs 26.1 In my file custom_functions.el (defun increment-number-by-one-at-point() (interactive) (increment-number-at-point-private 1)) ;; Increment number at point (defun increment-number-at-point(number) (interactive (list (read-number…
a_subscriber
  • 4,062
  • 1
  • 18
  • 56