Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1 vote

reusing text (to give feedback to students)

Here are two solutions, both inspired by duthen's answer (binding c to the desired functionality within the *Occur buffer): Solution 1 (using a single function) (defun select-and-copy-comment-for-...
SaMeji's user avatar
  • 128
1 vote
Accepted

reusing text (to give feedback to students)

I don't know how to tell the function to "pause" running while I search for the relevant comment, and to resume once I have put the cursor on the comment I need and have pressed enter. ...
duthen's user avatar
  • 156
1 vote

reusing text (to give feedback to students)

I usually do something like: (let ((enable-recursive-minibuffers t) ;; https://emacs.stackexchange.com/q/80307/15606 (set-message-function nil)) (occur "regexp") (read-...
Gabriele's user avatar
  • 1,618
1 vote
Accepted

Passing arguments to functions invoked via a keymap?

I tried: (defun interactive-func (&rest args) (message "%s" args)) (defvar my-keymap (make-keymap) "Keymap") (define-key my-keymap (kbd "C-c a") (lambda () (...
Gabriele's user avatar
  • 1,618
1 vote
Accepted

let* equivalent for interactive

If you need a let* in the interactive form just use it: (defun build-car (make model owner) (interactive (let* ((make (make-prompt)) (model (model-prompt make))) ...
Tobias's user avatar
  • 33.3k
1 vote

How can I pass arguments to a function called interactively?

In addition to specifying the arglist of the function, you have to declare where the args come from when it is called interactively. (interactive) alone declares that an interactive call should supply ...
db48x's user avatar
  • 18.3k

Only top scored, non community-wiki answers of a minimum length are eligible