diff options
| author | Paul Eggert | 2016-03-22 11:04:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-03-22 11:04:36 -0700 |
| commit | f95bbe5a67e03fe6d05cbfb4d0c9151a754d6ccd (patch) | |
| tree | 770fbf699587d51ed3a374c6f01bdd655394c66c /lisp/progmodes | |
| parent | 4869e0d85a215e7fb0262430a48aa4d5804bf0a4 (diff) | |
| parent | b8ea08b037fb16395b90481162587706e71b487c (diff) | |
| download | emacs-f95bbe5a67e03fe6d05cbfb4d0c9151a754d6ccd.tar.gz emacs-f95bbe5a67e03fe6d05cbfb4d0c9151a754d6ccd.zip | |
-
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 11 |
3 files changed, 8 insertions, 9 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 7365f695f3b..ba15d7f13e0 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el | |||
| @@ -1409,7 +1409,7 @@ been put there by c-put-char-property. POINT remains unchanged." | |||
| 1409 | (c-state-cache-good-pos c-state-cache-good-pos) | 1409 | (c-state-cache-good-pos c-state-cache-good-pos) |
| 1410 | ;(c-state-nonlit-pos-cache (copy-tree c-state-nonlit-pos-cache)) | 1410 | ;(c-state-nonlit-pos-cache (copy-tree c-state-nonlit-pos-cache)) |
| 1411 | ;(c-state-nonlit-pos-cache-limit c-state-nonlit-pos-cache-limit) | 1411 | ;(c-state-nonlit-pos-cache-limit c-state-nonlit-pos-cache-limit) |
| 1412 | ;(c-state-semi-nonlit-pos-cache (copy-treec c-state-semi-nonlit-pos-cache)) | 1412 | ;(c-state-semi-nonlit-pos-cache (copy-tree c-state-semi-nonlit-pos-cache)) |
| 1413 | ;(c-state-semi-nonlit-pos-cache-limit c-state-semi-nonlit-pos-cache) | 1413 | ;(c-state-semi-nonlit-pos-cache-limit c-state-semi-nonlit-pos-cache) |
| 1414 | (c-state-brace-pair-desert (copy-tree c-state-brace-pair-desert)) | 1414 | (c-state-brace-pair-desert (copy-tree c-state-brace-pair-desert)) |
| 1415 | (c-state-point-min c-state-point-min) | 1415 | (c-state-point-min c-state-point-min) |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 2389f742937..972bf99145e 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2173,7 +2173,7 @@ See `font-lock-syntax-table'.") | |||
| 2173 | 'font-lock-string-face))) | 2173 | 'font-lock-string-face))) |
| 2174 | ;; Perl-ish keywords. | 2174 | ;; Perl-ish keywords. |
| 2175 | "\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$" | 2175 | "\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$" |
| 2176 | ;; Variables. | 2176 | ;; Singleton objects. |
| 2177 | (,(concat ruby-font-lock-keyword-beg-re | 2177 | (,(concat ruby-font-lock-keyword-beg-re |
| 2178 | "\\_<\\(nil\\|true\\|false\\)\\_>") | 2178 | "\\_<\\(nil\\|true\\|false\\)\\_>") |
| 2179 | 1 font-lock-constant-face) | 2179 | 1 font-lock-constant-face) |
| @@ -2181,7 +2181,7 @@ See `font-lock-syntax-table'.") | |||
| 2181 | ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" | 2181 | ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" |
| 2182 | (0 font-lock-builtin-face)) | 2182 | (0 font-lock-builtin-face)) |
| 2183 | ;; Symbols. | 2183 | ;; Symbols. |
| 2184 | ("\\(^\\|[^:]\\)\\(:@?\\(?:\\w\\|_\\)+\\)\\([!?=]\\)?" | 2184 | ("\\(^\\|[^:]\\)\\(:@\\{0,2\\}\\(?:\\sw\\|\\s_\\)+\\)" |
| 2185 | (2 font-lock-constant-face) | 2185 | (2 font-lock-constant-face) |
| 2186 | (3 (unless (and (eq (char-before (match-end 3)) ?=) | 2186 | (3 (unless (and (eq (char-before (match-end 3)) ?=) |
| 2187 | (eq (char-after (match-end 3)) ?>)) | 2187 | (eq (char-after (match-end 3)) ?>)) |
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 69e6a154ae5..feed0fb36d9 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -436,6 +436,8 @@ If SELECT is non-nil, select the target window." | |||
| 436 | ;;; XREF buffer (part of the UI) | 436 | ;;; XREF buffer (part of the UI) |
| 437 | 437 | ||
| 438 | ;; The xref buffer is used to display a set of xrefs. | 438 | ;; The xref buffer is used to display a set of xrefs. |
| 439 | (defconst xref-buffer-name "*xref*" | ||
| 440 | "The name of the buffer to show xrefs.") | ||
| 439 | 441 | ||
| 440 | (defmacro xref--with-dedicated-window (&rest body) | 442 | (defmacro xref--with-dedicated-window (&rest body) |
| 441 | `(let* ((xref-w (get-buffer-window xref-buffer-name)) | 443 | `(let* ((xref-w (get-buffer-window xref-buffer-name)) |
| @@ -470,6 +472,9 @@ If SELECT is non-nil, select the target window." | |||
| 470 | (xref--show-pos-in-buf marker buf select)) | 472 | (xref--show-pos-in-buf marker buf select)) |
| 471 | (user-error (message (error-message-string err))))) | 473 | (user-error (message (error-message-string err))))) |
| 472 | 474 | ||
| 475 | (defvar-local xref--window nil | ||
| 476 | "The original window this xref buffer was created from.") | ||
| 477 | |||
| 473 | (defun xref-show-location-at-point () | 478 | (defun xref-show-location-at-point () |
| 474 | "Display the source of xref at point in the appropriate window, if any." | 479 | "Display the source of xref at point in the appropriate window, if any." |
| 475 | (interactive) | 480 | (interactive) |
| @@ -500,9 +505,6 @@ If SELECT is non-nil, select the target window." | |||
| 500 | (back-to-indentation) | 505 | (back-to-indentation) |
| 501 | (get-text-property (point) 'xref-item))) | 506 | (get-text-property (point) 'xref-item))) |
| 502 | 507 | ||
| 503 | (defvar-local xref--window nil | ||
| 504 | "The original window this xref buffer was created from.") | ||
| 505 | |||
| 506 | (defun xref-goto-xref () | 508 | (defun xref-goto-xref () |
| 507 | "Jump to the xref on the current line and select its window." | 509 | "Jump to the xref on the current line and select its window." |
| 508 | (interactive) | 510 | (interactive) |
| @@ -624,9 +626,6 @@ references displayed in the current *xref* buffer." | |||
| 624 | (t | 626 | (t |
| 625 | (error "No %s xref" (if backward "previous" "next")))))) | 627 | (error "No %s xref" (if backward "previous" "next")))))) |
| 626 | 628 | ||
| 627 | (defconst xref-buffer-name "*xref*" | ||
| 628 | "The name of the buffer to show xrefs.") | ||
| 629 | |||
| 630 | (defvar xref--button-map | 629 | (defvar xref--button-map |
| 631 | (let ((map (make-sparse-keymap))) | 630 | (let ((map (make-sparse-keymap))) |
| 632 | (define-key map [(control ?m)] #'xref-goto-xref) | 631 | (define-key map [(control ?m)] #'xref-goto-xref) |