Skip to content

Commit

Permalink
ocamldebug: change obsolete functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Sep 7, 2017
1 parent 5ff821b commit 459f05c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocamldebug.el
Expand Up @@ -80,7 +80,7 @@
(unless (face-differs-from-default-p 'ocamldebug-event)
(invert-face 'ocamldebug-event))
(unless (face-differs-from-default-p 'ocamldebug-underline)
(set-face-underline-p 'ocamldebug-underline t))
(set-face-underline 'ocamldebug-underline t))
(setq ocamldebug-overlay-event (make-overlay 1 1))
(overlay-put ocamldebug-overlay-event 'face 'ocamldebug-event)
(setq ocamldebug-overlay-under (make-overlay 1 1))
Expand Down Expand Up @@ -430,9 +430,9 @@ around point."
(interactive)
(let* ((capf-data (ocamldebug-capf))
(command-word (buffer-substring (nth 0 capf-data) (nth 1 capf-data))))
(comint-dynamic-simple-complete
command-word (sort (all-completions command-word (nth 2 capf-data))
#'string-lessp))))
(completion-in-region (nth 0 capf-data) (nth 1 capf-data)
(sort (all-completions command-word (nth 2 capf-data))
#'string-lessp))))

(when (fboundp 'completion-at-point)
(make-obsolete 'ocamldebug-complete 'completion-at-point "24.1"))
Expand Down

0 comments on commit 459f05c

Please sign in to comment.