[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/last-cedet-merge b893e8a 04/11: semantic: Allow em
From: |
David Engster |
Subject: |
[Emacs-diffs] scratch/last-cedet-merge b893e8a 04/11: semantic: Allow empty type relation separation character |
Date: |
Mon, 23 Jan 2017 21:13:48 +0000 (UTC) |
branch: scratch/last-cedet-merge
commit b893e8a66b5599f28bf358ff7bafbc0386e250e1
Author: Eric Ludlam <address@hidden>
Commit: David Engster <address@hidden>
semantic: Allow empty type relation separation character
* lisp/cedet/semantic/ctxt.el (semantic-ctxt-current-symbol-default):
Allow the type relation separator to be empty for languages that
don't have symbol sequences, such as grammars and Lisp.
---
lisp/cedet/semantic/ctxt.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lisp/cedet/semantic/ctxt.el b/lisp/cedet/semantic/ctxt.el
index 78e5ec5..4ebc68f 100644
--- a/lisp/cedet/semantic/ctxt.el
+++ b/lisp/cedet/semantic/ctxt.el
@@ -454,7 +454,8 @@ This will include a list of type/field names when
applicable.
Depends on `semantic-type-relation-separator-character'."
(save-excursion
(if point (goto-char point))
- (let* ((fieldsep1 (mapconcat (lambda (a) (regexp-quote a))
+ (let* ((dosequence (not (null semantic-type-relation-separator-character)))
+ (fieldsep1 (mapconcat (lambda (a) (regexp-quote a))
semantic-type-relation-separator-character
"\\|"))
;; NOTE: The [ \n] expression below should used \\s-, but that
@@ -491,9 +492,11 @@ Depends on `semantic-type-relation-separator-character'."
;; Now that we have gotten started, let's do the rest.
(condition-case nil
- (while (save-excursion
- (forward-char -1)
- (looking-at "\\w\\|\\s_"))
+ (while (and
+ (or dosequence (not symlist))
+ (save-excursion
+ (forward-char -1)
+ (looking-at "\\w\\|\\s_")))
;; We have a symbol.. Do symbol things
(forward-sexp -1)
(setq symlist (cons (buffer-substring-no-properties (point) end)
- [Emacs-diffs] scratch/last-cedet-merge updated (74263b1 -> 592b5fe), David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge e4e864a 02/11: semantic: Properly create canonical name for C++ type tag, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge b893e8a 04/11: semantic: Allow empty type relation separation character,
David Engster <=
- [Emacs-diffs] scratch/last-cedet-merge 50139fb 08/11: semantic: Fix scope calculation for 'enum', David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge 3cbb968 10/11: semantic: Use file name for grammar name instead of %package token, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge 783fb86 09/11: semantic: Add 'fromfile' option to grammar package, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge 03bb495 07/11: semantic: Fix for Python lexer, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge 64484cf 06/11: semantic: Set `semantic-type-relation-separator-character' for Emacs Lisp, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge ebc8418 03/11: semantic: Check if slot is bound, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge 742013b 05/11: semantic: Improve grammar-mode, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge cfc56f5 01/11: semantic: Fix for db-global, David Engster, 2017/01/23
- [Emacs-diffs] scratch/last-cedet-merge 592b5fe 11/11: semantic: Improve C++ 'friend' parsing, David Engster, 2017/01/23