diff options
| author | Stefan Monnier | 2015-04-20 21:55:00 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-04-20 21:55:00 -0400 |
| commit | c9a75a4030a556d700fd95222ec0bf4c1a9f67b5 (patch) | |
| tree | 6983e7d01dabf1995a709f568e59f2499bda1551 /lisp/info.el | |
| parent | e3bfb5191f6144c9ac96772fea9f40c2e988c75b (diff) | |
| download | emacs-c9a75a4030a556d700fd95222ec0bf4c1a9f67b5.tar.gz emacs-c9a75a4030a556d700fd95222ec0bf4c1a9f67b5.zip | |
Fix byte-compiler warnings about looking-back.
* lisp/vc/log-view.el (log-view-end-of-defun-1):
* lisp/textmodes/tex-mode.el (latex-forward-sexp-1):
* lisp/textmodes/reftex-ref.el (reftex-goto-label):
* lisp/textmodes/bibtex.el (bibtex-insert-kill):
* lisp/progmodes/sh-script.el (sh--maybe-here-document):
* lisp/progmodes/ruby-mode.el (ruby-end-of-defun):
* lisp/progmodes/ada-mode.el (ada-in-numeric-literal-p):
* lisp/org/org.el (org-insert-heading, org-sort-entries):
* lisp/org/org-mouse.el (org-mouse-end-headline)
(org-mouse-context-menu):
* lisp/org/org-clock.el (org-clock-cancel):
* lisp/man.el (Man-default-man-entry):
* lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text)
(rmail-ensure-blank-line):
* lisp/mail/footnote.el (Footnote-delete-footnote):
* lisp/mail/emacsbug.el (report-emacs-bug):
* lisp/info.el (Info-follow-reference, Info-fontify-node):
* lisp/info-look.el (info-lookup-guess-custom-symbol):
* lisp/help-fns.el (help-fns--key-bindings):
* lisp/files.el (hack-local-variables):
* lisp/emulation/viper-ex.el (viper-get-ex-token, ex-cmd-complete)
(viper-get-ex-pat, ex-expand-filsyms, viper-get-ex-file)
(viper-complete-filename-or-exit):
* lisp/emulation/viper-cmd.el (viper-backward-indent):
* lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent):
* lisp/emacs-lisp/elint.el (elint-get-top-forms):
* lisp/cus-edit.el (custom-face-edit-value-create):
* lisp/calendar/todo-mode.el (todo-set-item-priority)
(todo-filter-items-1, todo-convert-legacy-files)
(todo-prefix-overlays): Add explicit second arg to looking-back.
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/info.el b/lisp/info.el index 01596619476..057bd77ba16 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2577,7 +2577,9 @@ new buffer." | |||
| 2577 | (save-excursion | 2577 | (save-excursion |
| 2578 | ;; Move point to the beginning of reference if point is on reference | 2578 | ;; Move point to the beginning of reference if point is on reference |
| 2579 | (or (looking-at "\\*note[ \n\t]+") | 2579 | (or (looking-at "\\*note[ \n\t]+") |
| 2580 | (and (looking-back "\\*note[ \n\t]+") | 2580 | (and (looking-back "\\*note[ \n\t]+" |
| 2581 | (save-excursion (skip-chars-backward " \n\t") | ||
| 2582 | (line-beginning-position))) | ||
| 2581 | (goto-char (match-beginning 0))) | 2583 | (goto-char (match-beginning 0))) |
| 2582 | (if (and (save-excursion | 2584 | (if (and (save-excursion |
| 2583 | (goto-char (+ (point) 5)) ; skip a possible *note | 2585 | (goto-char (+ (point) 5)) ; skip a possible *note |
| @@ -4738,9 +4740,11 @@ first line or header line, and for breadcrumb links.") | |||
| 4738 | ;; an end of sentence | 4740 | ;; an end of sentence |
| 4739 | (skip-syntax-backward " (")) | 4741 | (skip-syntax-backward " (")) |
| 4740 | (setq other-tag | 4742 | (setq other-tag |
| 4741 | (cond ((save-match-data (looking-back "\\<see")) | 4743 | (cond ((save-match-data (looking-back "\\<see" |
| 4744 | (- (point) 3))) | ||
| 4742 | "") | 4745 | "") |
| 4743 | ((save-match-data (looking-back "\\<in")) | 4746 | ((save-match-data (looking-back "\\<in" |
| 4747 | (- (point) 2))) | ||
| 4744 | "") | 4748 | "") |
| 4745 | ((memq (char-before) '(nil ?\. ?! ??)) | 4749 | ((memq (char-before) '(nil ?\. ?! ??)) |
| 4746 | "See ") | 4750 | "See ") |