summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2020-07-04 16:35:47 +0000
committerAlan Mackenzie <acm@muc.de>2020-07-04 16:35:47 +0000
commit1560c92c9c205901d822a3ab3fba00ad6bf9805c (patch)
tree038ec11aa6ee29669bae73bdeec9b7a210968d27 /lisp
parenteae028b9e2c23f84dbd130d49da65f9db1db932f (diff)
downloademacs-1560c92c9c205901d822a3ab3fba00ad6bf9805c.tar.gz
emacs-1560c92c9c205901d822a3ab3fba00ad6bf9805c.tar.bz2
emacs-1560c92c9c205901d822a3ab3fba00ad6bf9805c.zip
Remove long obsolete c-looking-at-bos. Make c-at-expression-start-p obsolete
* lisp/progmodes/cc-engine.el (c-looking-at-bos): Remove. (c-at-expression-start-p): Make obsolete, with no alternative function.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cc-engine.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index fec1065fe16..784a6c7d679 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -1582,6 +1582,7 @@ comment at the start of cc-engine.el for more info."
(save-excursion (backward-char)
(looking-at "\\s("))
(c-crosses-statement-barrier-p (point) end)))))
+(make-obsolete 'c-at-expression-start-p nil "5.35")
;; A set of functions that covers various idiosyncrasies in
@@ -11895,17 +11896,6 @@ comment at the start of cc-engine.el for more info."
(cons (list beg) type)))))
(error nil))))
-(defun c-looking-at-bos (&optional _lim)
- ;; Return non-nil if between two statements or declarations, assuming
- ;; point is not inside a literal or comment.
- ;;
- ;; Obsolete - `c-at-statement-start-p' or `c-at-expression-start-p'
- ;; are recommended instead.
- ;;
- ;; This function might do hidden buffer changes.
- (c-at-statement-start-p))
-(make-obsolete 'c-looking-at-bos 'c-at-statement-start-p "22.1")
-
(defun c-looking-at-statement-block ()
;; Point is at an opening brace. If this is a statement block (i.e. the
;; elements in the block are terminated by semicolons, or the block is