Function: smart-tar
smart-tar is an interactive and byte-compiled function defined in
hui-mouse.el.
Signature
(smart-tar)
Documentation
Use a single key or mouse key to manipulate tar file entries.
Invoked via a key press when in tar-mode. It assumes that its
caller has already checked that the key was pressed in an appropriate buffer
and has moved the cursor there.
If key is pressed:
(1) within an entry line, the selected file/directory is displayed for
editing in the other window;
(2) on or after the last line in the buffer, if any deletes are to be
performed, they are executed after user verification, otherwise, this
tar file browser is quit.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
;;; ************************************************************************
;;; smart-tar functions
;;; ************************************************************************
(defun smart-tar ()
"Use a single key or mouse key to manipulate tar file entries.
Invoked via a key press when in `tar-mode'. It assumes that its
caller has already checked that the key was pressed in an appropriate buffer
and has moved the cursor there.
If key is pressed:
(1) within an entry line, the selected file/directory is displayed for
editing in the other window;
(2) on or after the last line in the buffer, if any deletes are to be
performed, they are executed after user verification, otherwise, this
tar file browser is quit."
(interactive)
(cond ((last-line-p)
(let (flagged)
(save-excursion
(goto-char 1)
(setq flagged (re-search-forward "^D" nil t)))
(if flagged
(tar-expunge)
(kill-buffer nil))))
(t (tar-extract-other-window))))