diff options
| author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-12 18:31:50 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-12 18:31:50 +0200 |
| commit | 77907b29e01113ddc66b7880e3ceae441b7289b5 (patch) | |
| tree | 245da48dbfa4e3ad7b9f784cad32bf4468bbe9a6 /lisp | |
| parent | a459e5256c2cf2a313db503c2b3f565b03694332 (diff) | |
| download | emacs-77907b29e01113ddc66b7880e3ceae441b7289b5.tar.gz | |
Remove some compat code from prolog.el
* lisp/progmodes/prolog.el (match-string): Remove alias to
function that always exists.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/prolog.el | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el index bdb98a47fa9..a209d21807f 100644 --- a/lisp/progmodes/prolog.el +++ b/lisp/progmodes/prolog.el @@ -2748,20 +2748,6 @@ When called with prefix argument ARG, disable zipping instead." (nth 1 state))) )))) -;; For backward compatibility. Stolen from custom.el. -(or (fboundp 'match-string) - ;; Introduced in Emacs 19.29. - (defun match-string (num &optional string) - "Return string of text matched by last search. -NUM specifies which parenthesized expression in the last regexp. - Value is nil if NUMth pair didn't match, or there were less than NUM pairs. -Zero means the entire text matched by the whole regexp or whole string. -STRING should be given if the last search was by `string-match' on STRING." - (if (match-beginning num) - (if string - (substring string (match-beginning num) (match-end num)) - (buffer-substring (match-beginning num) (match-end num)))))) - (defun prolog-pred-start () "Return the starting point of the first clause of the current predicate." ;; FIXME: Use SMIE. |
