diff options
| author | Glenn Morris | 2010-11-06 18:50:52 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-11-06 18:50:52 -0700 |
| commit | 3ba6b2ee6aa77f5a05dc91e8a46ac559f352fee7 (patch) | |
| tree | 7e902b5b04507bc639e966b1a3f3ca4e7ebe8e0f /lisp/progmodes | |
| parent | 76fc02b654eda5dfa1e83b0b9909b097a105785d (diff) | |
| download | emacs-3ba6b2ee6aa77f5a05dc91e8a46ac559f352fee7.tar.gz emacs-3ba6b2ee6aa77f5a05dc91e8a46ac559f352fee7.zip | |
Replace unneeded compatibility definitions with point-at-bol, point-at-eol.
* lisp/progmodes/verilog-mode.el (verilog-get-beg-of-line)
(verilog-get-end-of-line): Remove.
(verilog-within-string, verilog-re-search-forward-substr)
(verilog-re-search-backward-substr, verilog-set-auto-endcomments)
(verilog-surelint-off, verilog-getopt-file, verilog-highlight-region):
Use point-at-bol, point-at-eol.
* lisp/progmodes/pascal.el (pascal-get-beg-of-line, pascal-get-end-of-line):
Remove.
(pascal-declaration-end, pascal-declaration-beg, pascal-within-string)
(electric-pascal-terminate-line, pascal-set-auto-comments)
(pascal-indent-paramlist, pascal-indent-declaration)
(pascal-get-lineup-indent, pascal-func-completion)
(pascal-get-completion-decl, pascal-var-completion, pascal-completion):
Use point-at-bol, point-at-eol.
* lisp/progmodes/flymake.el (flymake-line-beginning-position)
(flymake-line-end-position): Remove.
(flymake-highlight-line): Use point-at-bol, point-at-eol.
* lisp/eshell/esh-util.el (line-end-position, line-beginning-position):
Remove compat definitions.
* net/tramp/tramp-compat.el: Comment.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/flymake.el | 15 | ||||
| -rw-r--r-- | lisp/progmodes/pascal.el | 48 | ||||
| -rw-r--r-- | lisp/progmodes/verilog-mode.el | 29 |
3 files changed, 27 insertions, 65 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 712af6fd288..ef2efca514c 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -106,16 +106,6 @@ Zero-length substrings at the beginning and end of the list are omitted." | |||
| 106 | 'temp-directory | 106 | 'temp-directory |
| 107 | (lambda () temporary-file-directory))) | 107 | (lambda () temporary-file-directory))) |
| 108 | 108 | ||
| 109 | (defalias 'flymake-line-beginning-position | ||
| 110 | (if (fboundp 'line-beginning-position) | ||
| 111 | 'line-beginning-position | ||
| 112 | (lambda (&optional arg) (save-excursion (beginning-of-line arg) (point))))) | ||
| 113 | |||
| 114 | (defalias 'flymake-line-end-position | ||
| 115 | (if (fboundp 'line-end-position) | ||
| 116 | 'line-end-position | ||
| 117 | (lambda (&optional arg) (save-excursion (end-of-line arg) (point))))) | ||
| 118 | |||
| 119 | (defun flymake-posn-at-point-as-event (&optional position window dx dy) | 109 | (defun flymake-posn-at-point-as-event (&optional position window dx dy) |
| 120 | "Return pixel position of top left corner of glyph at POSITION, | 110 | "Return pixel position of top left corner of glyph at POSITION, |
| 121 | relative to top left corner of WINDOW, as a mouse-1 click | 111 | relative to top left corner of WINDOW, as a mouse-1 click |
| @@ -808,8 +798,8 @@ Return t if it has at least one flymake overlay, nil if no overlay." | |||
| 808 | Perhaps use text from LINE-ERR-INFO-LIST to enhance highlighting." | 798 | Perhaps use text from LINE-ERR-INFO-LIST to enhance highlighting." |
| 809 | (goto-char (point-min)) | 799 | (goto-char (point-min)) |
| 810 | (forward-line (1- line-no)) | 800 | (forward-line (1- line-no)) |
| 811 | (let* ((line-beg (flymake-line-beginning-position)) | 801 | (let* ((line-beg (point-at-bol)) |
| 812 | (line-end (flymake-line-end-position)) | 802 | (line-end (poin-at-eol)) |
| 813 | (beg line-beg) | 803 | (beg line-beg) |
| 814 | (end line-end) | 804 | (end line-end) |
| 815 | (tooltip-text (flymake-ler-text (nth 0 line-err-info-list))) | 805 | (tooltip-text (flymake-ler-text (nth 0 line-err-info-list))) |
| @@ -1764,5 +1754,4 @@ Use CREATE-TEMP-F for creating temp copy." | |||
| 1764 | 1754 | ||
| 1765 | (provide 'flymake) | 1755 | (provide 'flymake) |
| 1766 | 1756 | ||
| 1767 | ;; arch-tag: 8f0d6090-061d-4cac-8862-7c151c4a02dd | ||
| 1768 | ;;; flymake.el ends here | 1757 | ;;; flymake.el ends here |
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index acd49e71dd8..a93e97efed9 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | ;;; pascal.el --- major mode for editing pascal source in Emacs | 1 | ;;; pascal.el --- major mode for editing pascal source in Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 | 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
| 4 | ;; 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 4 | ;; 2002 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | ;; Free Software Foundation, Inc. | 5 | ;; Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Espen Skoglund <esk@gnu.org> | 7 | ;; Author: Espen Skoglund <esk@gnu.org> |
| 8 | ;; Keywords: languages | 8 | ;; Keywords: languages |
| @@ -274,22 +274,12 @@ are handled in another way, and should not be added to this list." | |||
| 274 | ;;; Macros | 274 | ;;; Macros |
| 275 | ;;; | 275 | ;;; |
| 276 | 276 | ||
| 277 | (defsubst pascal-get-beg-of-line (&optional arg) | ||
| 278 | (save-excursion | ||
| 279 | (beginning-of-line arg) | ||
| 280 | (point))) | ||
| 281 | |||
| 282 | (defsubst pascal-get-end-of-line (&optional arg) | ||
| 283 | (save-excursion | ||
| 284 | (end-of-line arg) | ||
| 285 | (point))) | ||
| 286 | |||
| 287 | (defun pascal-declaration-end () | 277 | (defun pascal-declaration-end () |
| 288 | (let ((nest 1)) | 278 | (let ((nest 1)) |
| 289 | (while (and (> nest 0) | 279 | (while (and (> nest 0) |
| 290 | (re-search-forward | 280 | (re-search-forward |
| 291 | "[:=]\\|\\(\\<record\\>\\)\\|\\(\\<end\\>\\)" | 281 | "[:=]\\|\\(\\<record\\>\\)\\|\\(\\<end\\>\\)" |
| 292 | (save-excursion (end-of-line 2) (point)) t)) | 282 | (point-at-eol 2) t)) |
| 293 | (cond ((match-beginning 1) (setq nest (1+ nest))) | 283 | (cond ((match-beginning 1) (setq nest (1+ nest))) |
| 294 | ((match-beginning 2) (setq nest (1- nest))) | 284 | ((match-beginning 2) (setq nest (1- nest))) |
| 295 | ((looking-at "[^(\n]+)") (setq nest 0)))))) | 285 | ((looking-at "[^(\n]+)") (setq nest 0)))))) |
| @@ -298,7 +288,7 @@ are handled in another way, and should not be added to this list." | |||
| 298 | (defun pascal-declaration-beg () | 288 | (defun pascal-declaration-beg () |
| 299 | (let ((nest 1)) | 289 | (let ((nest 1)) |
| 300 | (while (and (> nest 0) | 290 | (while (and (> nest 0) |
| 301 | (re-search-backward "[:=]\\|\\<\\(type\\|var\\|label\\|const\\)\\>\\|\\(\\<record\\>\\)\\|\\(\\<end\\>\\)" (pascal-get-beg-of-line 0) t)) | 291 | (re-search-backward "[:=]\\|\\<\\(type\\|var\\|label\\|const\\)\\>\\|\\(\\<record\\>\\)\\|\\(\\<end\\>\\)" (point-at-bol 0) t)) |
| 302 | (cond ((match-beginning 1) (setq nest 0)) | 292 | (cond ((match-beginning 1) (setq nest 0)) |
| 303 | ((match-beginning 2) (setq nest (1- nest))) | 293 | ((match-beginning 2) (setq nest (1- nest))) |
| 304 | ((match-beginning 3) (setq nest (1+ nest))))) | 294 | ((match-beginning 3) (setq nest (1+ nest))))) |
| @@ -306,8 +296,7 @@ are handled in another way, and should not be added to this list." | |||
| 306 | 296 | ||
| 307 | 297 | ||
| 308 | (defsubst pascal-within-string () | 298 | (defsubst pascal-within-string () |
| 309 | (save-excursion | 299 | (nth 3 (parse-partial-sexp (point-at-bol) (point)))) |
| 310 | (nth 3 (parse-partial-sexp (pascal-get-beg-of-line) (point))))) | ||
| 311 | 300 | ||
| 312 | 301 | ||
| 313 | ;;;###autoload | 302 | ;;;###autoload |
| @@ -407,8 +396,7 @@ no args, if that value is non-nil." | |||
| 407 | (forward-char 1) | 396 | (forward-char 1) |
| 408 | (delete-horizontal-space)) | 397 | (delete-horizontal-space)) |
| 409 | ((and (looking-at "(\\*\\|\\*[^)]") | 398 | ((and (looking-at "(\\*\\|\\*[^)]") |
| 410 | (not (save-excursion | 399 | (not (save-excursion (search-forward "*)" (point-at-eol) t)))) |
| 411 | (search-forward "*)" (pascal-get-end-of-line) t)))) | ||
| 412 | (setq setstar t)))) | 400 | (setq setstar t)))) |
| 413 | ;; If last line was a star comment line then this one shall be too. | 401 | ;; If last line was a star comment line then this one shall be too. |
| 414 | (if (null setstar) | 402 | (if (null setstar) |
| @@ -727,7 +715,7 @@ on the line which ends a function or procedure named NAME." | |||
| 727 | (if (and (looking-at "\\<end;") | 715 | (if (and (looking-at "\\<end;") |
| 728 | (not (save-excursion | 716 | (not (save-excursion |
| 729 | (end-of-line) | 717 | (end-of-line) |
| 730 | (search-backward "{" (pascal-get-beg-of-line) t)))) | 718 | (search-backward "{" (point-at-bol) t)))) |
| 731 | (let ((type (car (pascal-calculate-indent)))) | 719 | (let ((type (car (pascal-calculate-indent)))) |
| 732 | (if (eq type 'declaration) | 720 | (if (eq type 'declaration) |
| 733 | () | 721 | () |
| @@ -999,7 +987,7 @@ indent of the current line in parameterlist." | |||
| 999 | (stpos (progn (goto-char (scan-lists (point) -1 1)) (point))) | 987 | (stpos (progn (goto-char (scan-lists (point) -1 1)) (point))) |
| 1000 | (stcol (1+ (current-column))) | 988 | (stcol (1+ (current-column))) |
| 1001 | (edpos (progn (pascal-declaration-end) | 989 | (edpos (progn (pascal-declaration-end) |
| 1002 | (search-backward ")" (pascal-get-beg-of-line) t) | 990 | (search-backward ")" (point-at-bol) t) |
| 1003 | (point))) | 991 | (point))) |
| 1004 | (usevar (re-search-backward "\\<var\\>" stpos t))) | 992 | (usevar (re-search-backward "\\<var\\>" stpos t))) |
| 1005 | (if arg (progn | 993 | (if arg (progn |
| @@ -1046,7 +1034,7 @@ indent of the current line in parameterlist." | |||
| 1046 | (setq ind (pascal-get-lineup-indent stpos edpos lineup)) | 1034 | (setq ind (pascal-get-lineup-indent stpos edpos lineup)) |
| 1047 | (goto-char stpos) | 1035 | (goto-char stpos) |
| 1048 | (while (and (<= (point) edpos) (not (eobp))) | 1036 | (while (and (<= (point) edpos) (not (eobp))) |
| 1049 | (if (search-forward lineup (pascal-get-end-of-line) 'move) | 1037 | (if (search-forward lineup (point-at-eol) 'move) |
| 1050 | (forward-char -1)) | 1038 | (forward-char -1)) |
| 1051 | (delete-horizontal-space) | 1039 | (delete-horizontal-space) |
| 1052 | (indent-to ind) | 1040 | (indent-to ind) |
| @@ -1073,7 +1061,7 @@ indent of the current line in parameterlist." | |||
| 1073 | (goto-char b) | 1061 | (goto-char b) |
| 1074 | ;; Get rightmost position | 1062 | ;; Get rightmost position |
| 1075 | (while (< (point) e) | 1063 | (while (< (point) e) |
| 1076 | (and (re-search-forward reg (min e (pascal-get-end-of-line 2)) 'move) | 1064 | (and (re-search-forward reg (min e (point-at-eol 2)) 'move) |
| 1077 | (cond ((match-beginning 1) | 1065 | (cond ((match-beginning 1) |
| 1078 | ;; Skip record blocks | 1066 | ;; Skip record blocks |
| 1079 | (pascal-declaration-end)) | 1067 | (pascal-declaration-end)) |
| @@ -1137,7 +1125,7 @@ indent of the current line in parameterlist." | |||
| 1137 | 1125 | ||
| 1138 | ;; Search through all reachable functions | 1126 | ;; Search through all reachable functions |
| 1139 | (while (pascal-beg-of-defun) | 1127 | (while (pascal-beg-of-defun) |
| 1140 | (if (re-search-forward pascal-str (pascal-get-end-of-line) t) | 1128 | (if (re-search-forward pascal-str (point-at-eol) t) |
| 1141 | (progn (setq match (buffer-substring (match-beginning 2) | 1129 | (progn (setq match (buffer-substring (match-beginning 2) |
| 1142 | (match-end 2))) | 1130 | (match-end 2))) |
| 1143 | (push match pascal-all))) | 1131 | (push match pascal-all))) |
| @@ -1154,17 +1142,17 @@ indent of the current line in parameterlist." | |||
| 1154 | match) | 1142 | match) |
| 1155 | ;; Traverse lines | 1143 | ;; Traverse lines |
| 1156 | (while (< (point) end) | 1144 | (while (< (point) end) |
| 1157 | (if (re-search-forward "[:=]" (pascal-get-end-of-line) t) | 1145 | (if (re-search-forward "[:=]" (point-at-eol) t) |
| 1158 | ;; Traverse current line | 1146 | ;; Traverse current line |
| 1159 | (while (and (re-search-backward | 1147 | (while (and (re-search-backward |
| 1160 | (concat "\\((\\|\\<\\(var\\|type\\|const\\)\\>\\)\\|" | 1148 | (concat "\\((\\|\\<\\(var\\|type\\|const\\)\\>\\)\\|" |
| 1161 | pascal-symbol-re) | 1149 | pascal-symbol-re) |
| 1162 | (pascal-get-beg-of-line) t) | 1150 | (point-at-bol) t) |
| 1163 | (not (match-end 1))) | 1151 | (not (match-end 1))) |
| 1164 | (setq match (buffer-substring (match-beginning 0) (match-end 0))) | 1152 | (setq match (buffer-substring (match-beginning 0) (match-end 0))) |
| 1165 | (if (string-match (concat "\\<" pascal-str) match) | 1153 | (if (string-match (concat "\\<" pascal-str) match) |
| 1166 | (push match pascal-all)))) | 1154 | (push match pascal-all)))) |
| 1167 | (if (re-search-forward "\\<record\\>" (pascal-get-end-of-line) t) | 1155 | (if (re-search-forward "\\<record\\>" (point-at-eol) t) |
| 1168 | (pascal-declaration-end) | 1156 | (pascal-declaration-end) |
| 1169 | (forward-line 1))) | 1157 | (forward-line 1))) |
| 1170 | 1158 | ||
| @@ -1206,7 +1194,7 @@ indent of the current line in parameterlist." | |||
| 1206 | (if (> start (prog1 (save-excursion (pascal-end-of-defun) | 1194 | (if (> start (prog1 (save-excursion (pascal-end-of-defun) |
| 1207 | (point)))) | 1195 | (point)))) |
| 1208 | () ; Declarations not reachable | 1196 | () ; Declarations not reachable |
| 1209 | (if (search-forward "(" (pascal-get-end-of-line) t) | 1197 | (if (search-forward "(" (point-at-eol) t) |
| 1210 | ;; Check parameterlist | 1198 | ;; Check parameterlist |
| 1211 | ;; FIXME: pascal-get-completion-decl doesn't understand | 1199 | ;; FIXME: pascal-get-completion-decl doesn't understand |
| 1212 | ;; the var declarations in parameter lists :-( | 1200 | ;; the var declarations in parameter lists :-( |
| @@ -1264,8 +1252,7 @@ indent of the current line in parameterlist." | |||
| 1264 | (or (eq state 'declaration) (eq state 'paramlist) | 1252 | (or (eq state 'declaration) (eq state 'paramlist) |
| 1265 | (and (eq state 'defun) | 1253 | (and (eq state 'defun) |
| 1266 | (save-excursion | 1254 | (save-excursion |
| 1267 | (re-search-backward ")[ \t]*:" | 1255 | (re-search-backward ")[ \t]*:" (point-at-bol) t)))) |
| 1268 | (pascal-get-beg-of-line) t)))) | ||
| 1269 | (if (or (eq state 'paramlist) (eq state 'defun)) | 1256 | (if (or (eq state 'paramlist) (eq state 'defun)) |
| 1270 | (pascal-beg-of-defun)) | 1257 | (pascal-beg-of-defun)) |
| 1271 | (nconc | 1258 | (nconc |
| @@ -1554,5 +1541,4 @@ Pascal Outline mode provides some additional commands. | |||
| 1554 | 1541 | ||
| 1555 | (provide 'pascal) | 1542 | (provide 'pascal) |
| 1556 | 1543 | ||
| 1557 | ;; arch-tag: 04535136-fd93-40b4-a505-c9bebdc051f5 | ||
| 1558 | ;;; pascal.el ends here | 1544 | ;;; pascal.el ends here |
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index b565e9aeff4..2bd4021a85f 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el | |||
| @@ -1378,19 +1378,8 @@ If set will become buffer local.") | |||
| 1378 | ;; Macros | 1378 | ;; Macros |
| 1379 | ;; | 1379 | ;; |
| 1380 | 1380 | ||
| 1381 | (defsubst verilog-get-beg-of-line (&optional arg) | ||
| 1382 | (save-excursion | ||
| 1383 | (beginning-of-line arg) | ||
| 1384 | (point))) | ||
| 1385 | |||
| 1386 | (defsubst verilog-get-end-of-line (&optional arg) | ||
| 1387 | (save-excursion | ||
| 1388 | (end-of-line arg) | ||
| 1389 | (point))) | ||
| 1390 | |||
| 1391 | (defsubst verilog-within-string () | 1381 | (defsubst verilog-within-string () |
| 1392 | (save-excursion | 1382 | (nth 3 (parse-partial-sexp (point-at-bol) (point)))) |
| 1393 | (nth 3 (parse-partial-sexp (verilog-get-beg-of-line) (point))))) | ||
| 1394 | 1383 | ||
| 1395 | (defsubst verilog-string-replace-matches (from-string to-string fixedcase literal string) | 1384 | (defsubst verilog-string-replace-matches (from-string to-string fixedcase literal string) |
| 1396 | "Replace occurrences of FROM-STRING with TO-STRING. | 1385 | "Replace occurrences of FROM-STRING with TO-STRING. |
| @@ -1480,7 +1469,7 @@ This speeds up complicated regexp matches." | |||
| 1480 | (search-forward substr bound noerror)) | 1469 | (search-forward substr bound noerror)) |
| 1481 | (save-excursion | 1470 | (save-excursion |
| 1482 | (beginning-of-line) | 1471 | (beginning-of-line) |
| 1483 | (setq done (re-search-forward regexp (verilog-get-end-of-line) noerror))) | 1472 | (setq done (re-search-forward regexp (point-at-eol) noerror))) |
| 1484 | (unless (and (<= (match-beginning 0) (point)) | 1473 | (unless (and (<= (match-beginning 0) (point)) |
| 1485 | (>= (match-end 0) (point))) | 1474 | (>= (match-end 0) (point))) |
| 1486 | (setq done nil))) | 1475 | (setq done nil))) |
| @@ -1500,7 +1489,7 @@ This speeds up complicated regexp matches." | |||
| 1500 | (search-backward substr bound noerror)) | 1489 | (search-backward substr bound noerror)) |
| 1501 | (save-excursion | 1490 | (save-excursion |
| 1502 | (end-of-line) | 1491 | (end-of-line) |
| 1503 | (setq done (re-search-backward regexp (verilog-get-beg-of-line) noerror))) | 1492 | (setq done (re-search-backward regexp (point-at-bol) noerror))) |
| 1504 | (unless (and (<= (match-beginning 0) (point)) | 1493 | (unless (and (<= (match-beginning 0) (point)) |
| 1505 | (>= (match-end 0) (point))) | 1494 | (>= (match-end 0) (point))) |
| 1506 | (setq done nil))) | 1495 | (setq done nil))) |
| @@ -3925,7 +3914,7 @@ primitive or interface named NAME." | |||
| 3925 | (or kill-existing-comment | 3914 | (or kill-existing-comment |
| 3926 | (not (save-excursion | 3915 | (not (save-excursion |
| 3927 | (end-of-line) | 3916 | (end-of-line) |
| 3928 | (search-backward "//" (verilog-get-beg-of-line) t))))) | 3917 | (search-backward "//" (point-at-bol) t))))) |
| 3929 | (let ((nest 1) b e | 3918 | (let ((nest 1) b e |
| 3930 | m | 3919 | m |
| 3931 | (else (if (match-end 2) "!" " "))) | 3920 | (else (if (match-end 2) "!" " "))) |
| @@ -3978,7 +3967,7 @@ primitive or interface named NAME." | |||
| 3978 | (or kill-existing-comment | 3967 | (or kill-existing-comment |
| 3979 | (not (save-excursion | 3968 | (not (save-excursion |
| 3980 | (end-of-line) | 3969 | (end-of-line) |
| 3981 | (search-backward "//" (verilog-get-beg-of-line) t))))) | 3970 | (search-backward "//" (point-at-bol) t))))) |
| 3982 | (let ((type (car indent-str))) | 3971 | (let ((type (car indent-str))) |
| 3983 | (unless (eq type 'declaration) | 3972 | (unless (eq type 'declaration) |
| 3984 | (unless (looking-at (concat "\\(" verilog-end-block-ordered-re "\\)[ \t]*:")) ;; ignore named ends | 3973 | (unless (looking-at (concat "\\(" verilog-end-block-ordered-re "\\)[ \t]*:")) ;; ignore named ends |
| @@ -4512,7 +4501,7 @@ becomes: | |||
| 4512 | (cond | 4501 | (cond |
| 4513 | ((looking-at "// surefire lint_off_line ") | 4502 | ((looking-at "// surefire lint_off_line ") |
| 4514 | (goto-char (match-end 0)) | 4503 | (goto-char (match-end 0)) |
| 4515 | (let ((lim (save-excursion (end-of-line) (point)))) | 4504 | (let ((lim (point-at-eol))) |
| 4516 | (if (re-search-forward code lim 'move) | 4505 | (if (re-search-forward code lim 'move) |
| 4517 | (throw 'already t) | 4506 | (throw 'already t) |
| 4518 | (insert (concat " " code))))) | 4507 | (insert (concat " " code))))) |
| @@ -8272,8 +8261,7 @@ Some macros and such are also found and included. For dinotrace.el." | |||
| 8272 | ": Can't find verilog-getopt-file -f file: " filename))) | 8261 | ": Can't find verilog-getopt-file -f file: " filename))) |
| 8273 | (goto-char (point-min)) | 8262 | (goto-char (point-min)) |
| 8274 | (while (not (eobp)) | 8263 | (while (not (eobp)) |
| 8275 | (setq line (buffer-substring (point) | 8264 | (setq line (buffer-substring (point) (point-at-eol))) |
| 8276 | (save-excursion (end-of-line) (point)))) | ||
| 8277 | (forward-line 1) | 8265 | (forward-line 1) |
| 8278 | (when (string-match "//" line) | 8266 | (when (string-match "//" line) |
| 8279 | (setq line (substring line 0 (match-beginning 0)))) | 8267 | (setq line (substring line 0 (match-beginning 0)))) |
| @@ -11898,7 +11886,7 @@ Clicking on the middle-mouse button loads them in a buffer (as in dired)." | |||
| 11898 | (verilog-save-scan-cache | 11886 | (verilog-save-scan-cache |
| 11899 | (let (end-point) | 11887 | (let (end-point) |
| 11900 | (goto-char end) | 11888 | (goto-char end) |
| 11901 | (setq end-point (verilog-get-end-of-line)) | 11889 | (setq end-point (point-at-eol)) |
| 11902 | (goto-char beg) | 11890 | (goto-char beg) |
| 11903 | (beginning-of-line) ; scan entire line | 11891 | (beginning-of-line) ; scan entire line |
| 11904 | ;; delete overlays existing on this line | 11892 | ;; delete overlays existing on this line |
| @@ -12122,5 +12110,4 @@ but instead, [[Fill in here]] happens!. | |||
| 12122 | ;; checkdoc-force-docstrings-flag:nil | 12110 | ;; checkdoc-force-docstrings-flag:nil |
| 12123 | ;; End: | 12111 | ;; End: |
| 12124 | 12112 | ||
| 12125 | ;; arch-tag: 87923725-57b3-41b5-9494-be21118c6a6f | ||
| 12126 | ;;; verilog-mode.el ends here | 12113 | ;;; verilog-mode.el ends here |