[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 77907b2 03/11: Remove some compat code from prolog.el
From: |
Lars Ingebrigtsen |
Subject: |
master 77907b2 03/11: Remove some compat code from prolog.el |
Date: |
Wed, 12 Aug 2020 12:59:53 -0400 (EDT) |
branch: master
commit 77907b29e01113ddc66b7880e3ceae441b7289b5
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Remove some compat code from prolog.el
* lisp/progmodes/prolog.el (match-string): Remove alias to
function that always exists.
---
lisp/progmodes/prolog.el | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/lisp/progmodes/prolog.el b/lisp/progmodes/prolog.el
index bdb98a4..a209d21 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.
- master updated (6cddb73 -> 56a44a8), Lars Ingebrigtsen, 2020/08/12
- master 51ea541 01/11: Remove some compat code from ediff-init.el, Lars Ingebrigtsen, 2020/08/12
- master af6ea55 07/11: Remove some compat code from bubbles.el, Lars Ingebrigtsen, 2020/08/12
- master 74909e1 06/11: Fix a check for whether Emacs can play sounds in eudc-bob, Lars Ingebrigtsen, 2020/08/12
- master a459e52 02/11: Remove some compat code from idlwave.el, Lars Ingebrigtsen, 2020/08/12
- master 77907b2 03/11: Remove some compat code from prolog.el,
Lars Ingebrigtsen <=
- master e97d3e1 08/11: Remove some compat code from epa.el, Lars Ingebrigtsen, 2020/08/12
- master 9a929de 10/11: Remove some compat code from viper*.el, Lars Ingebrigtsen, 2020/08/12
- master 56a44a8 11/11: Remove some compat code from viper-cmd.el, Lars Ingebrigtsen, 2020/08/12
- master 6ac22bc 05/11: Remove some compat code from allout.el, Lars Ingebrigtsen, 2020/08/12
- master 67bd8a4 04/11: Remove some compat code from allout*.el, Lars Ingebrigtsen, 2020/08/12
- master 1dfb170 09/11: Mark some unused defaliases in semantic/fw.el obsolete, Lars Ingebrigtsen, 2020/08/12