;;;###autoload
(defun calc-info-goto-node (node)
"Go to a node in the Calculator info documentation."
- (interactive)
(select-window (get-largest-window))
(info (concat "(Calc)" node)))
(defun calc-edit-macro-finish-edit (cmdname key)
"Finish editing a Calc macro.
Redefine the corresponding command."
- (interactive)
(let ((cmd (intern cmdname)))
(calc-edit-macro-pre-finish-edit)
(let* ((str (buffer-substring calc-edit-top (point-max)))
(calculator-update-display t))
(defun calculator-saved-move (n)
- "Go N elements up the list of saved values."
- (interactive)
+ "Go N elements up the list of saved values.
+Interactively, N is the prefix numeric argument and defaults to 1."
+ (interactive "p")
(when (and calculator-saved-list
(or (null calculator-stack) calculator-display-fragile))
(setq calculator-saved-ptr
(defun backtrace-expand-ellipsis (button)
"Expand display of the elided form at BUTTON."
- (interactive)
(goto-char (button-start button))
(unless (get-text-property (point) 'cl-print-ellipsis)
(if (and (> (point) (point-min))
(defun filesets-convert-patterns (name)
"Change fileset NAME's mode from :pattern to :files."
- (interactive)
(let ((entry (assoc name filesets-data)))
(if entry
(let ((pattern (filesets-entry-get-pattern entry))
"Save the current state and start a new search based on ARGS.
The parameter ARGS is a cons cell where car is the word to search
and cdr is the dictionary where to search the word in."
- (interactive)
(dictionary-store-positions)
(let ((word (car args))
(dictionary (cdr args)))
:version "28.1")
(defun dictionary-definition (word &optional dictionary)
- (interactive)
(unwind-protect
(let ((dictionary (or dictionary dictionary-default-dictionary)))
(dictionary-do-search word dictionary 'dictionary-read-definition t))
variable `dictionary-tooltip-mode' to decide if some action must be
taken. When disabling the tooltip mode the value of this variable
will be set to nil."
- (interactive)
(tooltip-mode on)
(if on
(add-hook 'tooltip-functions #'dictionary-display-tooltip)
DOMAIN is a NT domain. USER can include a NT domain part as in
user@domain where the string after @ is used as the domain if DOMAIN
is not given."
- (interactive)
(let ((request-ident (concat "NTLMSSP" (make-string 1 0)))
(request-msgType (concat (make-string 1 1) (make-string 3 0)))
;0x01 0x00 0x00 0x00
(advice-add 'open-network-stream :around #'socks--open-network-stream))
(defun socks-open-connection (server-info)
- (interactive)
(save-excursion
(let ((proc
(let ((socks-override-functions nil))
;;;-------------------------------------------------------------------------
(defun dcl-indent-to (col &optional minimum)
"Like `indent-to', but only indents if indentation would change."
- (interactive)
+ (interactive "NIndent to column: ")
(let (cur-indent collapsed indent)
(save-excursion
(skip-chars-forward " \t")
(defun ebrowse-redraw-marks (start end)
"Display class marker signs in the tree between START and END."
- (interactive)
+ (interactive "r")
(save-excursion
(with-silent-modifications
(catch 'end
(defun ebrowse-view-file-other-frame (file)
- "View a file FILE in another frame.
+ "View FILE in another frame.
The new frame is deleted when you quit viewing the file in that frame."
- (interactive)
+ (interactive "fIn other frame view file: ")
(let ((old-frame-configuration (current-frame-configuration))
(had-a-buf (get-file-buffer file))
(buf-to-view (find-file-noselect file)))
(defun gud-basic-call (command)
"Invoke the debugger COMMAND displaying source in other window."
- (interactive)
+ (interactive "sInvoke debugger command: ")
(gud-set-buffer)
(let ((proc (get-buffer-process gud-comint-buffer)))
(or proc (error "Current buffer has no process"))
"Toggle FLAG in `speedbar-fetch-etags-arguments'.
FLAG then becomes a member of etags command line arguments. If flag
is \"sort\", then toggle the value of `speedbar-sort-tags'. If its
-value is \"show\" then toggle the value of
-`speedbar-show-unknown-files'."
- (interactive)
+value is \"show\" then toggle the value of `speedbar-show-unknown-files'."
(cond
((equal flag "sort")
(setq speedbar-sort-tags (not speedbar-sort-tags)))
(defun treesit--explorer-jump (button)
"Mark the original text corresponding to BUTTON."
- (interactive)
(when (and (derived-mode-p 'treesit--explorer-tree-mode)
(buffer-live-p treesit--explorer-source-buffer))
(with-current-buffer treesit--explorer-source-buffer
(defun woman-reset-emulation (value)
"Reset `woman-emulation' to VALUE and reformat, for menu use."
- (interactive)
(setq woman-emulation value)
(woman-reformat-last-file))