Function: ibtypes::smerge
ibtypes::smerge is a byte-compiled function defined in hibtypes.el.
Signature
(ibtypes::smerge)
Documentation
Act on smerge-mode(var)/smerge-mode(fun) buffer conflicts.
On a merge conflict marker, keep either the upper, both or the lower version of the conflict.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hibtypes.el
;;; ========================================================================
;;; Follows Org mode links and radio targets and cycles Org heading views
;;; ========================================================================
;;; See `smart-org' in "hui-mouse.el"; this is higher priority than all ibtypes.
;; If you want to to disable ALL Hyperbole support within Org major
;; and minor modes, set the custom option `hsys-org-enable-smart-keys' to nil.
;;; ========================================================================
;;; Resolve merge conflicts in smerge-mode
;;; ========================================================================
(defib smerge ()
"Act on `smerge-mode' buffer conflicts.
On a merge conflict marker, keep either the upper, both or the lower
version of the conflict."
(when (bound-and-true-p smerge-mode)
(let ((op (save-excursion
(beginning-of-line)
(cond ((looking-at smerge-end-re) #'smerge-keep-lower)
((looking-at smerge-begin-re) #'smerge-keep-upper)
((looking-at smerge-lower-re) #'smerge-keep-all)))))
(when op
(save-excursion
(ibut:label-set (match-string-no-properties 0) (match-beginning 0) (match-end 0))
(hact op))))))