Function: ibtypes::patch-msg
ibtypes::patch-msg is a byte-compiled function defined in hibtypes.el.
Signature
(ibtypes::patch-msg)
Documentation
Jump to source code associated with output from the patch program.
Patch applies diffs to source code.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Jumps to source associated with a line of output from `patch'.
;;; ========================================================================
(defib patch-msg ()
"Jump to source code associated with output from the `patch' program.
Patch applies diffs to source code."
(when (save-excursion
(beginning-of-line)
(looking-at "Patching \\|Hunk "))
(let ((opoint (point))
(file) line)
(beginning-of-line)
(cond ((looking-at "Hunk .+ at \\([0-9]+\\)")
(setq line (match-string-no-properties 1))
(ibut:label-set line (match-beginning 1) (match-end 1))
(if (re-search-backward "^Patching file \\(\\S +\\)" nil t)
(setq file (match-string-no-properties 1))))
((looking-at "Patching file \\(\\S +\\)")
(setq file (match-string-no-properties 1)
line "1")
(ibut:label-set file (match-beginning 1) (match-end 1))))
(goto-char opoint)
(when file
(setq line (string-to-number line))
(hact 'link-to-file-line file line)))))