diff options
| author | Vibhav Pant | 2017-02-13 17:07:36 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2017-02-13 17:07:36 +0530 |
| commit | cb410433e069b5bb450193353c3fea8593a643a9 (patch) | |
| tree | d2f4269781b4841e5a0c27ec57a5a4fbcec386c0 /lisp/emacs-lisp | |
| parent | e742450427007cdde242c11380dfe32a950fab61 (diff) | |
| parent | 4b18ef7ba3dd8aae4f3c3bf931365ef7da883baf (diff) | |
| download | emacs-feature/byte-switch.tar.gz emacs-feature/byte-switch.zip | |
Merge branch 'master' into feature/byte-switchfeature/byte-switch
Diffstat (limited to 'lisp/emacs-lisp')
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 16 | ||||
| -rw-r--r-- | lisp/emacs-lisp/elint.el | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index ca1d75176dc..1b7ff36f422 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -748,7 +748,7 @@ FILE's modification time." | |||
| 748 | (setq output-start (autoload--setup-output | 748 | (setq output-start (autoload--setup-output |
| 749 | otherbuf outbuf absfile load-name))) | 749 | otherbuf outbuf absfile load-name))) |
| 750 | (autoload--print-cookie-text output-start load-name file)) | 750 | (autoload--print-cookie-text output-start load-name file)) |
| 751 | ((looking-at ";") | 751 | ((= (following-char) ?\;) |
| 752 | ;; Don't read the comment. | 752 | ;; Don't read the comment. |
| 753 | (forward-line 1)) | 753 | (forward-line 1)) |
| 754 | (t | 754 | (t |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 6e8442291f8..75e6b904aa6 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -2013,7 +2013,7 @@ With argument ARG, insert value in current buffer after the form." | |||
| 2013 | ;; Compile the forms from the input buffer. | 2013 | ;; Compile the forms from the input buffer. |
| 2014 | (while (progn | 2014 | (while (progn |
| 2015 | (while (progn (skip-chars-forward " \t\n\^l") | 2015 | (while (progn (skip-chars-forward " \t\n\^l") |
| 2016 | (looking-at ";")) | 2016 | (= (following-char) ?\;)) |
| 2017 | (forward-line 1)) | 2017 | (forward-line 1)) |
| 2018 | (not (eobp))) | 2018 | (not (eobp))) |
| 2019 | (setq byte-compile-read-position (point) | 2019 | (setq byte-compile-read-position (point) |
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 59edbe100e1..1d6fdfa4e87 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -603,7 +603,7 @@ style." | |||
| 603 | (checkdoc-overlay-put cdo 'face 'highlight) | 603 | (checkdoc-overlay-put cdo 'face 'highlight) |
| 604 | ;; Make sure the whole doc string is visible if possible. | 604 | ;; Make sure the whole doc string is visible if possible. |
| 605 | (sit-for 0) | 605 | (sit-for 0) |
| 606 | (if (and (looking-at "\"") | 606 | (if (and (= (following-char) ?\") |
| 607 | (not (pos-visible-in-window-p | 607 | (not (pos-visible-in-window-p |
| 608 | (save-excursion (forward-sexp 1) (point)) | 608 | (save-excursion (forward-sexp 1) (point)) |
| 609 | (selected-window)))) | 609 | (selected-window)))) |
| @@ -743,9 +743,9 @@ buffer, otherwise searching starts at START-HERE." | |||
| 743 | (while (checkdoc-next-docstring) | 743 | (while (checkdoc-next-docstring) |
| 744 | (message "Searching for doc string spell error...%d%%" | 744 | (message "Searching for doc string spell error...%d%%" |
| 745 | (floor (* 100.0 (point)) (point-max))) | 745 | (floor (* 100.0 (point)) (point-max))) |
| 746 | (if (looking-at "\"") | 746 | (when (= (following-char) ?\") |
| 747 | (checkdoc-ispell-docstring-engine | 747 | (checkdoc-ispell-docstring-engine |
| 748 | (save-excursion (forward-sexp 1) (point-marker))))) | 748 | (save-excursion (forward-sexp 1) (point-marker))))) |
| 749 | (message "Checkdoc: Done.")))) | 749 | (message "Checkdoc: Done.")))) |
| 750 | 750 | ||
| 751 | (defun checkdoc-message-interactive-ispell-loop (start-here) | 751 | (defun checkdoc-message-interactive-ispell-loop (start-here) |
| @@ -763,7 +763,7 @@ buffer, otherwise searching starts at START-HERE." | |||
| 763 | (while (checkdoc-message-text-next-string (point-max)) | 763 | (while (checkdoc-message-text-next-string (point-max)) |
| 764 | (message "Searching for message string spell error...%d%%" | 764 | (message "Searching for message string spell error...%d%%" |
| 765 | (floor (* 100.0 (point)) (point-max))) | 765 | (floor (* 100.0 (point)) (point-max))) |
| 766 | (if (looking-at "\"") | 766 | (if (= (following-char) ?\") |
| 767 | (checkdoc-ispell-docstring-engine | 767 | (checkdoc-ispell-docstring-engine |
| 768 | (save-excursion (forward-sexp 1) (point-marker))))) | 768 | (save-excursion (forward-sexp 1) (point-marker))))) |
| 769 | (message "Checkdoc: Done.")))) | 769 | (message "Checkdoc: Done.")))) |
| @@ -1381,7 +1381,7 @@ See the style guide in the Emacs Lisp manual for more details." | |||
| 1381 | "All variables and subroutines might as well have a \ | 1381 | "All variables and subroutines might as well have a \ |
| 1382 | documentation string") | 1382 | documentation string") |
| 1383 | (point) (+ (point) 1) t))))) | 1383 | (point) (+ (point) 1) t))))) |
| 1384 | (if (and (not err) (looking-at "\"")) | 1384 | (if (and (not err) (= (following-char) ?\")) |
| 1385 | (with-syntax-table checkdoc-syntax-table | 1385 | (with-syntax-table checkdoc-syntax-table |
| 1386 | (checkdoc-this-string-valid-engine fp)) | 1386 | (checkdoc-this-string-valid-engine fp)) |
| 1387 | err))) | 1387 | err))) |
| @@ -1395,7 +1395,7 @@ regexp short cuts work. FP is the function defun information." | |||
| 1395 | ;; we won't accidentally lose our place. This could cause | 1395 | ;; we won't accidentally lose our place. This could cause |
| 1396 | ;; end-of doc string whitespace to also delete the " char. | 1396 | ;; end-of doc string whitespace to also delete the " char. |
| 1397 | (s (point)) | 1397 | (s (point)) |
| 1398 | (e (if (looking-at "\"") | 1398 | (e (if (= (following-char) ?\") |
| 1399 | (save-excursion (forward-sexp 1) (point-marker)) | 1399 | (save-excursion (forward-sexp 1) (point-marker)) |
| 1400 | (point)))) | 1400 | (point)))) |
| 1401 | (or | 1401 | (or |
| @@ -1475,7 +1475,7 @@ regexp short cuts work. FP is the function defun information." | |||
| 1475 | ((looking-at "[\\!?;:.)]") | 1475 | ((looking-at "[\\!?;:.)]") |
| 1476 | ;; These are ok | 1476 | ;; These are ok |
| 1477 | nil) | 1477 | nil) |
| 1478 | ((and checkdoc-permit-comma-termination-flag (looking-at ",")) | 1478 | ((and checkdoc-permit-comma-termination-flag (= (following-char) ?,)) |
| 1479 | nil) | 1479 | nil) |
| 1480 | (t | 1480 | (t |
| 1481 | ;; If it is not a complete sentence, let's see if we can | 1481 | ;; If it is not a complete sentence, let's see if we can |
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index d68e49fa4b2..f5e10a24d37 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el | |||
| @@ -372,7 +372,7 @@ Returns the forms." | |||
| 372 | (let ((elint-current-pos (point))) | 372 | (let ((elint-current-pos (point))) |
| 373 | ;; non-list check could be here too. errors may be out of seq. | 373 | ;; non-list check could be here too. errors may be out of seq. |
| 374 | ;; quoted check cannot be elsewhere, since quotes skipped. | 374 | ;; quoted check cannot be elsewhere, since quotes skipped. |
| 375 | (if (looking-back "'" (1- (point))) | 375 | (if (= (preceding-char) ?\') |
| 376 | ;; Eg cust-print.el uses ' as a comment syntax. | 376 | ;; Eg cust-print.el uses ' as a comment syntax. |
| 377 | (elint-warning "Skipping quoted form `%c%.20s...'" ?\' | 377 | (elint-warning "Skipping quoted form `%c%.20s...'" ?\' |
| 378 | (read (current-buffer))) | 378 | (read (current-buffer))) |