diff options
| author | David Engster | 2014-01-13 21:04:08 +0100 |
|---|---|---|
| committer | David Engster | 2014-01-13 21:04:08 +0100 |
| commit | 0aa9ec078e7ae5b3c9fdbb0a5e61513bec6aeed2 (patch) | |
| tree | b7bb23027a7b0129b4c13363c38f8a79b7b669a3 | |
| parent | 76a0368a4f45fccd6e1eae9b98453fc7fd4f44ad (diff) | |
| download | emacs-0aa9ec078e7ae5b3c9fdbb0a5e61513bec6aeed2.tar.gz emacs-0aa9ec078e7ae5b3c9fdbb0a5e61513bec6aeed2.zip | |
Merge bug fixes from CEDET upstream.
* semantic/analyze/refs.el (semantic-analyze-refs-impl): Fix Typo
in a doc string.
* semantic/ia.el (semantic-ia-complete-symbol): Ignore case if
prefix is all lower case.
(semantic-ia-fast-jump): Push mark before jumping to an include
file.
* semantic/complete.el (semantic-displayor-point-position):
Calculate if the toolbar is on the left when calculating point
position.
| -rw-r--r-- | lisp/cedet/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/cedet/semantic/analyze/refs.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/complete.el | 11 | ||||
| -rw-r--r-- | lisp/cedet/semantic/ia.el | 10 |
4 files changed, 30 insertions, 5 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 2dc68d484c6..12914a9362a 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-01-13 Eric Ludlam <zappo@gnu.org> | ||
| 2 | |||
| 3 | * semantic/analyze/refs.el (semantic-analyze-refs-impl): Fix Typo | ||
| 4 | in a doc string. | ||
| 5 | * semantic/ia.el (semantic-ia-complete-symbol): Ignore case if | ||
| 6 | prefix is all lower case. | ||
| 7 | (semantic-ia-fast-jump): Push mark before jumping to an include | ||
| 8 | file. | ||
| 9 | * semantic/complete.el (semantic-displayor-point-position): | ||
| 10 | Calculate if the toolbar is on the left when calculating point | ||
| 11 | position. | ||
| 12 | |||
| 1 | 2014-01-08 Paul Eggert <eggert@cs.ucla.edu> | 13 | 2014-01-08 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 14 | ||
| 3 | Spelling fixes. | 15 | Spelling fixes. |
diff --git a/lisp/cedet/semantic/analyze/refs.el b/lisp/cedet/semantic/analyze/refs.el index 69ca84023fd..7a35b50e915 100644 --- a/lisp/cedet/semantic/analyze/refs.el +++ b/lisp/cedet/semantic/analyze/refs.el | |||
| @@ -109,7 +109,7 @@ Optional argument IN-BUFFER indicates that the returned tag should be in an acti | |||
| 109 | ) | 109 | ) |
| 110 | (semanticdb-find-result-mapc | 110 | (semanticdb-find-result-mapc |
| 111 | (lambda (T DB) | 111 | (lambda (T DB) |
| 112 | "Examine T in the database DB, and sont it." | 112 | "Examine T in the database DB, and sort it." |
| 113 | (let* ((ans (semanticdb-normalize-one-tag DB T)) | 113 | (let* ((ans (semanticdb-normalize-one-tag DB T)) |
| 114 | (aT (cdr ans)) | 114 | (aT (cdr ans)) |
| 115 | (aDB (car ans)) | 115 | (aDB (car ans)) |
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el index a5e9bd1787e..ff9bc25b458 100644 --- a/lisp/cedet/semantic/complete.el +++ b/lisp/cedet/semantic/complete.el | |||
| @@ -1718,9 +1718,14 @@ Display mechanism using tooltip for a list of possible completions.") | |||
| 1718 | "Return the location of POINT as positioned on the selected frame. | 1718 | "Return the location of POINT as positioned on the selected frame. |
| 1719 | Return a cons cell (X . Y)" | 1719 | Return a cons cell (X . Y)" |
| 1720 | (let* ((frame (selected-frame)) | 1720 | (let* ((frame (selected-frame)) |
| 1721 | (left (or (car-safe (cdr-safe (frame-parameter frame 'left))) | 1721 | (toolbarleft |
| 1722 | (frame-parameter frame 'left))) | 1722 | (if (eq (cdr (assoc 'tool-bar-position default-frame-alist)) 'left) |
| 1723 | (top (or (car-safe (cdr-safe (frame-parameter frame 'top))) | 1723 | (tool-bar-pixel-width) |
| 1724 | 0)) | ||
| 1725 | (left (+ (or (car-safe (cdr-safe (frame-parameter frame 'left))) | ||
| 1726 | (frame-parameter frame 'left)) | ||
| 1727 | toolbarleft)) | ||
| 1728 | (top (or (car-safe (cdr-safe (frame-parameter frame 'top))) | ||
| 1724 | (frame-parameter frame 'top))) | 1729 | (frame-parameter frame 'top))) |
| 1725 | (point-pix-pos (posn-x-y (posn-at-point))) | 1730 | (point-pix-pos (posn-x-y (posn-at-point))) |
| 1726 | (edges (window-inside-pixel-edges (selected-window)))) | 1731 | (edges (window-inside-pixel-edges (selected-window)))) |
diff --git a/lisp/cedet/semantic/ia.el b/lisp/cedet/semantic/ia.el index f11d34d9ed7..10e84880ab6 100644 --- a/lisp/cedet/semantic/ia.el +++ b/lisp/cedet/semantic/ia.el | |||
| @@ -123,7 +123,8 @@ Completion options are calculated with `semantic-analyze-possible-completions'." | |||
| 123 | ;; the smart completion engine sometimes fails. | 123 | ;; the smart completion engine sometimes fails. |
| 124 | (semantic-complete-symbol)) | 124 | (semantic-complete-symbol)) |
| 125 | ;; Use try completion to seek a common substring. | 125 | ;; Use try completion to seek a common substring. |
| 126 | (let ((tc (try-completion (or pre "") syms))) | 126 | (let* ((completion-ignore-case (string= (downcase pre) pre)) |
| 127 | (tc (try-completion (or pre "") syms))) | ||
| 127 | (if (and (stringp tc) (not (string= tc (or pre "")))) | 128 | (if (and (stringp tc) (not (string= tc (or pre "")))) |
| 128 | (let ((tok (semantic-find-first-tag-by-name | 129 | (let ((tok (semantic-find-first-tag-by-name |
| 129 | tc syms))) | 130 | tc syms))) |
| @@ -376,6 +377,13 @@ origin of the code at point." | |||
| 376 | ((semantic-tag-of-class-p (semantic-current-tag) 'include) | 377 | ((semantic-tag-of-class-p (semantic-current-tag) 'include) |
| 377 | ;; Just borrow this cool fcn. | 378 | ;; Just borrow this cool fcn. |
| 378 | (require 'semantic/decorate/include) | 379 | (require 'semantic/decorate/include) |
| 380 | |||
| 381 | ;; Push the mark, so you can pop global mark back, or | ||
| 382 | ;; use semantic-mru-bookmark mode to do so. | ||
| 383 | (push-mark) | ||
| 384 | (when (fboundp 'push-tag-mark) | ||
| 385 | (push-tag-mark)) | ||
| 386 | |||
| 379 | (semantic-decoration-include-visit) | 387 | (semantic-decoration-include-visit) |
| 380 | ) | 388 | ) |
| 381 | 389 | ||