diff options
| author | K. Handa | 2015-09-01 20:46:15 +0900 |
|---|---|---|
| committer | K. Handa | 2015-09-01 20:46:15 +0900 |
| commit | 3e0e2339cd379eeba8d9bc758f2e8e574144e252 (patch) | |
| tree | 9d119efed6e52e5c24dbd84836148157271799a8 /lisp/cedet | |
| parent | 524eeb2e5e158d98ea52fe5ebe4768c4433ba8b2 (diff) | |
| parent | ff0a92f6461941902eb9e974bdd2ff9adacb7bc4 (diff) | |
| download | emacs-3e0e2339cd379eeba8d9bc758f2e8e574144e252.tar.gz emacs-3e0e2339cd379eeba8d9bc758f2e8e574144e252.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/ede.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/ede/auto.el | 32 | ||||
| -rw-r--r-- | lisp/cedet/ede/generic.el | 42 | ||||
| -rw-r--r-- | lisp/cedet/mode-local.el | 37 | ||||
| -rw-r--r-- | lisp/cedet/semantic/analyze/debug.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/c.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/semantic/decorate/include.el | 15 | ||||
| -rw-r--r-- | lisp/cedet/semantic/ia.el | 10 |
8 files changed, 96 insertions, 67 deletions
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el index 3b06cf792d2..7d99b179112 100644 --- a/lisp/cedet/ede.el +++ b/lisp/cedet/ede.el | |||
| @@ -512,7 +512,7 @@ Sets buffer local variables for EDE." | |||
| 512 | (when projdetect | 512 | (when projdetect |
| 513 | ;; No project was loaded, but we have a project description | 513 | ;; No project was loaded, but we have a project description |
| 514 | ;; object. This means that we try to load it. | 514 | ;; object. This means that we try to load it. |
| 515 | ;; | 515 | ;; |
| 516 | ;; Before loading, we need to check if it is a safe | 516 | ;; Before loading, we need to check if it is a safe |
| 517 | ;; project to load before requesting it to be loaded. | 517 | ;; project to load before requesting it to be loaded. |
| 518 | 518 | ||
| @@ -728,9 +728,10 @@ Return nil if DIR should not be in `ede-project-directories'." | |||
| 728 | (when (listp ede-project-directories) | 728 | (when (listp ede-project-directories) |
| 729 | (or (member dir ede-project-directories) | 729 | (or (member dir ede-project-directories) |
| 730 | (when (funcall ede-check-project-query-fcn | 730 | (when (funcall ede-check-project-query-fcn |
| 731 | (format "`%s' is not listed in `ede-project-directories'. | 731 | (format-message |
| 732 | "`%s' is not listed in `ede-project-directories'. | ||
| 732 | Add it to the list of allowed project directories? " | 733 | Add it to the list of allowed project directories? " |
| 733 | dir)) | 734 | dir)) |
| 734 | (push dir ede-project-directories) | 735 | (push dir ede-project-directories) |
| 735 | ;; If possible, save `ede-project-directories'. | 736 | ;; If possible, save `ede-project-directories'. |
| 736 | (if (or custom-file user-init-file) | 737 | (if (or custom-file user-init-file) |
| @@ -799,7 +800,7 @@ Optional argument NAME is the name to give this project." | |||
| 799 | "Unknown file name specifier %S" | 800 | "Unknown file name specifier %S" |
| 800 | pf))) | 801 | pf))) |
| 801 | :targets nil) | 802 | :targets nil) |
| 802 | 803 | ||
| 803 | )) | 804 | )) |
| 804 | (inits (oref obj initializers))) | 805 | (inits (oref obj initializers))) |
| 805 | ;; Force the name to match for new objects. | 806 | ;; Force the name to match for new objects. |
diff --git a/lisp/cedet/ede/auto.el b/lisp/cedet/ede/auto.el index 482632f294a..51459fa7e74 100644 --- a/lisp/cedet/ede/auto.el +++ b/lisp/cedet/ede/auto.el | |||
| @@ -155,9 +155,9 @@ into memory.") | |||
| 155 | Specifying this matcher object will allow EDE to perform a complex | 155 | Specifying this matcher object will allow EDE to perform a complex |
| 156 | check without loading the project. | 156 | check without loading the project. |
| 157 | 157 | ||
| 158 | NOTE: If you use dirmatch, you may need to set :root-only to nil. | 158 | NOTE: If you use dirmatch, you may need to set :root-only to `nil'. |
| 159 | While it may be a root based project, all subdirs will happen to return | 159 | While it may be a root based project, all subdirs will happen to return |
| 160 | true for the dirmatch, so for scanning purposes, set it to nil.") | 160 | true for the dirmatch, so for scanning purposes, set it to `nil'.") |
| 161 | (proj-root :initarg :proj-root | 161 | (proj-root :initarg :proj-root |
| 162 | :type function | 162 | :type function |
| 163 | :documentation "A function symbol to call for the project root. | 163 | :documentation "A function symbol to call for the project root. |
| @@ -197,23 +197,20 @@ type is required and the load function used.") | |||
| 197 | 197 | ||
| 198 | (defvar ede-project-class-files | 198 | (defvar ede-project-class-files |
| 199 | (list | 199 | (list |
| 200 | (ede-project-autoload "edeproject-makefile" | 200 | (ede-project-autoload :name "Make" :file 'ede/proj |
| 201 | :name "Make" :file 'ede/proj | ||
| 202 | :proj-file "Project.ede" | 201 | :proj-file "Project.ede" |
| 203 | :root-only nil | 202 | :root-only nil |
| 204 | :load-type 'ede-proj-load | 203 | :load-type 'ede-proj-load |
| 205 | :class-sym 'ede-proj-project | 204 | :class-sym 'ede-proj-project |
| 206 | :safe-p nil) | 205 | :safe-p nil) |
| 207 | (ede-project-autoload "edeproject-automake" | 206 | (ede-project-autoload :name "Automake" :file 'ede/proj |
| 208 | :name "Automake" :file 'ede/proj | ||
| 209 | :proj-file "Project.ede" | 207 | :proj-file "Project.ede" |
| 210 | :root-only nil | 208 | :root-only nil |
| 211 | :initializers '(:makefile-type Makefile.am) | 209 | :initializers '(:makefile-type Makefile.am) |
| 212 | :load-type 'ede-proj-load | 210 | :load-type 'ede-proj-load |
| 213 | :class-sym 'ede-proj-project | 211 | :class-sym 'ede-proj-project |
| 214 | :safe-p nil) | 212 | :safe-p nil) |
| 215 | (ede-project-autoload "automake" | 213 | (ede-project-autoload :name "automake" :file 'ede/project-am |
| 216 | :name "automake" :file 'ede/project-am | ||
| 217 | :proj-file "Makefile.am" | 214 | :proj-file "Makefile.am" |
| 218 | :root-only nil | 215 | :root-only nil |
| 219 | :load-type 'project-am-load | 216 | :load-type 'project-am-load |
| @@ -225,6 +222,19 @@ type is required and the load function used.") | |||
| 225 | 222 | ||
| 226 | (put 'ede-project-class-files 'risky-local-variable t) | 223 | (put 'ede-project-class-files 'risky-local-variable t) |
| 227 | 224 | ||
| 225 | (defun ede-show-supported-projects () | ||
| 226 | "Display all the project types registered with EDE." | ||
| 227 | (interactive) | ||
| 228 | (let ((b (get-buffer-create "*EDE Autodetect Projects*"))) | ||
| 229 | (set-buffer b) | ||
| 230 | (setq buffer-read-only nil) | ||
| 231 | (erase-buffer) | ||
| 232 | (dolist (prj ede-project-class-files) | ||
| 233 | (insert (oref prj name)) | ||
| 234 | (newline)) | ||
| 235 | (display-buffer b) | ||
| 236 | )) | ||
| 237 | |||
| 228 | (defun ede-add-project-autoload (projauto &optional flag) | 238 | (defun ede-add-project-autoload (projauto &optional flag) |
| 229 | "Add PROJAUTO, an EDE autoload definition to `ede-project-class-files'. | 239 | "Add PROJAUTO, an EDE autoload definition to `ede-project-class-files'. |
| 230 | Optional argument FLAG indicates how this autoload should be | 240 | Optional argument FLAG indicates how this autoload should be |
| @@ -234,8 +244,8 @@ added. Possible values are: | |||
| 234 | front of the list so more generic projects don't get priority." | 244 | front of the list so more generic projects don't get priority." |
| 235 | ;; First, can we identify PROJAUTO as already in the list? If so, replace. | 245 | ;; First, can we identify PROJAUTO as already in the list? If so, replace. |
| 236 | (let ((projlist ede-project-class-files) | 246 | (let ((projlist ede-project-class-files) |
| 237 | (projname (eieio-object-name-string projauto))) | 247 | (projname (oref projauto name))) |
| 238 | (while (and projlist (not (string= (eieio-object-name-string (car projlist)) projname))) | 248 | (while (and projlist (not (string= (oref (car projlist) name) projname))) |
| 239 | (setq projlist (cdr projlist))) | 249 | (setq projlist (cdr projlist))) |
| 240 | 250 | ||
| 241 | (if projlist | 251 | (if projlist |
| @@ -296,7 +306,7 @@ be loaded. | |||
| 296 | 306 | ||
| 297 | NOTE: Do not call this - it should only be called from `ede-load-project-file'." | 307 | NOTE: Do not call this - it should only be called from `ede-load-project-file'." |
| 298 | ;; Last line of defense: don't load unsafe projects. | 308 | ;; Last line of defense: don't load unsafe projects. |
| 299 | (when (not (or (oref this :safe-p) | 309 | (when (not (or (oref this safe-p) |
| 300 | (ede-directory-safe-p dir))) | 310 | (ede-directory-safe-p dir))) |
| 301 | (error "Attempt to load an unsafe project (bug elsewhere in EDE)")) | 311 | (error "Attempt to load an unsafe project (bug elsewhere in EDE)")) |
| 302 | ;; Things are good - so load the project. | 312 | ;; Things are good - so load the project. |
diff --git a/lisp/cedet/ede/generic.el b/lisp/cedet/ede/generic.el index 9e6fc978376..8d013245bb6 100644 --- a/lisp/cedet/ede/generic.el +++ b/lisp/cedet/ede/generic.el | |||
| @@ -74,7 +74,7 @@ | |||
| 74 | ;; The ede-generic-target-c-cpp has some example methods setting up | 74 | ;; The ede-generic-target-c-cpp has some example methods setting up |
| 75 | ;; the pre-processor map and system include path. | 75 | ;; the pre-processor map and system include path. |
| 76 | ;; | 76 | ;; |
| 77 | ;; NOTE: It is not necessary to modify ede-generic.el to add any of | 77 | ;; NOTE: It is not necessary to modify ede/generic.el to add any of |
| 78 | ;; the above described support features. | 78 | ;; the above described support features. |
| 79 | 79 | ||
| 80 | (require 'eieio-opt) | 80 | (require 'eieio-opt) |
| @@ -102,14 +102,14 @@ ROOTPROJ is nil, since there is only one project." | |||
| 102 | (let* ((alobj ede-constructing)) | 102 | (let* ((alobj ede-constructing)) |
| 103 | (when (not alobj) (error "Cannot load generic project without the autoload instance")) | 103 | (when (not alobj) (error "Cannot load generic project without the autoload instance")) |
| 104 | ;;; | 104 | ;;; |
| 105 | ;; TODO - find the root dir. | 105 | ;; TODO - find the root dir. |
| 106 | (let ((rootdir dir)) | 106 | (let ((rootdir dir)) |
| 107 | (funcall (oref alobj class-sym) | 107 | (funcall (oref alobj class-sym) |
| 108 | (symbol-name (oref alobj class-sym)) | 108 | (symbol-name (oref alobj class-sym)) |
| 109 | :name (file-name-nondirectory (directory-file-name dir)) | 109 | :name (file-name-nondirectory (directory-file-name dir)) |
| 110 | :version "1.0" | 110 | :version "1.0" |
| 111 | :directory (file-name-as-directory rootdir) | 111 | :directory (file-name-as-directory rootdir) |
| 112 | :file (expand-file-name (oref alobj :proj-file) | 112 | :file (expand-file-name (oref alobj proj-file) |
| 113 | rootdir))) | 113 | rootdir))) |
| 114 | )) | 114 | )) |
| 115 | 115 | ||
| @@ -211,7 +211,7 @@ All directories need at least one target.") | |||
| 211 | (let ((match nil)) | 211 | (let ((match nil)) |
| 212 | (dolist (T targets) | 212 | (dolist (T targets) |
| 213 | (when (and (object-of-class-p T class) | 213 | (when (and (object-of-class-p T class) |
| 214 | (string= (oref T :path) dir)) | 214 | (string= (oref T path) dir)) |
| 215 | (setq match T) | 215 | (setq match T) |
| 216 | )) | 216 | )) |
| 217 | match)) | 217 | match)) |
| @@ -241,7 +241,7 @@ If one doesn't exist, create a new one for this directory." | |||
| 241 | (when (not ans) | 241 | (when (not ans) |
| 242 | (setq ans (make-instance | 242 | (setq ans (make-instance |
| 243 | cls | 243 | cls |
| 244 | :name (oref cls shortname) | 244 | :name (oref-default cls shortname) |
| 245 | :path dir | 245 | :path dir |
| 246 | :source nil)) | 246 | :source nil)) |
| 247 | (object-add-to-list proj :targets ans) | 247 | (object-add-to-list proj :targets ans) |
| @@ -252,18 +252,18 @@ If one doesn't exist, create a new one for this directory." | |||
| 252 | ;; | 252 | ;; |
| 253 | ;; Derived projects need an autoloader so that EDE can find the | 253 | ;; Derived projects need an autoloader so that EDE can find the |
| 254 | ;; different projects on disk. | 254 | ;; different projects on disk. |
| 255 | (defun ede-generic-new-autoloader (internal-name external-name | 255 | (defun ede-generic-new-autoloader (_internal-name external-name |
| 256 | projectfile class) | 256 | projectfile class) |
| 257 | "Add a new EDE Autoload instance for identifying a generic project. | 257 | "Add a new EDE Autoload instance for identifying a generic project. |
| 258 | INTERNAL-NAME is a long name that identifies this project type. | 258 | INTERNAL-NAME is obsolete and ignored. |
| 259 | EXTERNAL-NAME is a shorter human readable name to describe the project. | 259 | EXTERNAL-NAME is a human readable name to describe the project; it |
| 260 | must be unique among all autoloaded projects. | ||
| 260 | PROJECTFILE is a file name that identifies a project of this type to EDE, such as | 261 | PROJECTFILE is a file name that identifies a project of this type to EDE, such as |
| 261 | a Makefile, or SConstruct file. | 262 | a Makefile, or SConstruct file. |
| 262 | CLASS is the EIEIO class that is used to track this project. It should subclass | 263 | CLASS is the EIEIO class that is used to track this project. It should subclass |
| 263 | the class `ede-generic-project' project." | 264 | `ede-generic-project'." |
| 264 | (ede-add-project-autoload | 265 | (ede-add-project-autoload |
| 265 | (ede-project-autoload internal-name | 266 | (ede-project-autoload :name external-name |
| 266 | :name external-name | ||
| 267 | :file 'ede/generic | 267 | :file 'ede/generic |
| 268 | :proj-file projectfile | 268 | :proj-file projectfile |
| 269 | :root-only nil | 269 | :root-only nil |
| @@ -284,29 +284,29 @@ the class `ede-generic-project' project." | |||
| 284 | (defun ede-enable-generic-projects () | 284 | (defun ede-enable-generic-projects () |
| 285 | "Enable generic project loaders." | 285 | "Enable generic project loaders." |
| 286 | (interactive) | 286 | (interactive) |
| 287 | (ede-generic-new-autoloader "generic-makefile" "Make" | 287 | (ede-generic-new-autoloader "generic-makefile" "Generic Make" |
| 288 | "Makefile" 'ede-generic-makefile-project) | 288 | "Makefile" 'ede-generic-makefile-project) |
| 289 | (ede-generic-new-autoloader "generic-scons" "SCons" | 289 | (ede-generic-new-autoloader "generic-scons" "Generic SCons" |
| 290 | "SConstruct" 'ede-generic-scons-project) | 290 | "SConstruct" 'ede-generic-scons-project) |
| 291 | (ede-generic-new-autoloader "generic-cmake" "CMake" | 291 | (ede-generic-new-autoloader "generic-cmake" "Generic CMake" |
| 292 | "CMakeLists" 'ede-generic-cmake-project) | 292 | "CMakeLists" 'ede-generic-cmake-project) |
| 293 | 293 | ||
| 294 | ;; Super Generic found via revision control tags. | 294 | ;; Super Generic found via revision control tags. |
| 295 | (ede-generic-new-autoloader "generic-git" "Git" | 295 | (ede-generic-new-autoloader "generic-git" "Generic Git" |
| 296 | ".git" 'ede-generic-vc-project) | 296 | ".git" 'ede-generic-vc-project) |
| 297 | (ede-generic-new-autoloader "generic-bzr" "Bazaar" | 297 | (ede-generic-new-autoloader "generic-bzr" "Generic Bazaar" |
| 298 | ".bzr" 'ede-generic-vc-project) | 298 | ".bzr" 'ede-generic-vc-project) |
| 299 | (ede-generic-new-autoloader "generic-hg" "Mercurial" | 299 | (ede-generic-new-autoloader "generic-hg" "Generic Mercurial" |
| 300 | ".hg" 'ede-generic-vc-project) | 300 | ".hg" 'ede-generic-vc-project) |
| 301 | (ede-generic-new-autoloader "generic-svn" "Subversions" | 301 | (ede-generic-new-autoloader "generic-svn" "Generic Subversions" |
| 302 | ".svn" 'ede-generic-vc-project) | 302 | ".svn" 'ede-generic-vc-project) |
| 303 | (ede-generic-new-autoloader "generic-cvs" "CVS" | 303 | (ede-generic-new-autoloader "generic-cvs" "Generic CVS" |
| 304 | "CVS" 'ede-generic-vc-project) | 304 | "CVS" 'ede-generic-vc-project) |
| 305 | 305 | ||
| 306 | ;; Take advantage of existing 'projectile' based projects. | 306 | ;; Take advantage of existing 'projectile' based projects. |
| 307 | ;; @TODO - if projectile supports compile commands etc, can we | 307 | ;; @TODO - if projectile supports compile commands etc, can we |
| 308 | ;; read that out? Howto if projectile is not part of core emacs. | 308 | ;; read that out? Howto if projectile is not part of core emacs. |
| 309 | (ede-generic-new-autoloader "generic-projectile" ".projectile" | 309 | (ede-generic-new-autoloader "generic-projectile" "Generic .projectile" |
| 310 | ".projectile" 'ede-generic-vc-project) | 310 | ".projectile" 'ede-generic-vc-project) |
| 311 | 311 | ||
| 312 | ) | 312 | ) |
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el index 9ee875022f8..72512c6e6bc 100644 --- a/lisp/cedet/mode-local.el +++ b/lisp/cedet/mode-local.el | |||
| @@ -637,21 +637,30 @@ SYMBOL is a function that can be overridden." | |||
| 637 | (when (get symbol 'mode-local-overload) | 637 | (when (get symbol 'mode-local-overload) |
| 638 | (let ((default (or (intern-soft (format "%s-default" (symbol-name symbol))) | 638 | (let ((default (or (intern-soft (format "%s-default" (symbol-name symbol))) |
| 639 | symbol)) | 639 | symbol)) |
| 640 | (override (and | 640 | (override (with-current-buffer describe-function-orig-buffer |
| 641 | (boundp 'describe-function-orig-buffer) ;; added in Emacs 25 | 641 | (fetch-overload symbol))) |
| 642 | describe-function-orig-buffer | 642 | modes) |
| 643 | (with-current-buffer describe-function-orig-buffer | 643 | |
| 644 | (fetch-overload symbol))))) | ||
| 645 | (insert (overload-docstring-extension symbol) "\n\n") | 644 | (insert (overload-docstring-extension symbol) "\n\n") |
| 646 | (insert (substitute-command-keys (format "default function: `%s'\n" default))) | 645 | (insert (format-message "default function: `%s'\n" default)) |
| 647 | (when (and (boundp 'describe-function-orig-buffer) ;; added in Emacs 25 | 646 | (if override |
| 648 | describe-function-orig-buffer) | 647 | (insert (format-message "\noverride in buffer '%s': `%s'\n" |
| 649 | (if override | 648 | describe-function-orig-buffer override)) |
| 650 | (insert (substitute-command-keys | 649 | (insert (format-message "\nno override in buffer '%s'\n" |
| 651 | (format "\noverride in buffer '%s': `%s'\n" | 650 | describe-function-orig-buffer))) |
| 652 | describe-function-orig-buffer override))) | 651 | |
| 653 | (insert (substitute-command-keys (format "\nno override in buffer '%s'\n" | 652 | (mapatoms |
| 654 | describe-function-orig-buffer))))) | 653 | (lambda (sym) (when (get sym 'mode-local-symbol-table) (push sym modes))) |
| 654 | obarray) | ||
| 655 | |||
| 656 | (dolist (mode modes) | ||
| 657 | (let* ((major-mode mode) | ||
| 658 | (override (fetch-overload symbol))) | ||
| 659 | |||
| 660 | (when override | ||
| 661 | (insert (format-message "\noverride in mode ā%sā: ā%sā\n" | ||
| 662 | major-mode override)) | ||
| 663 | ))) | ||
| 655 | ))) | 664 | ))) |
| 656 | 665 | ||
| 657 | (add-hook 'help-fns-describe-function-functions 'describe-mode-local-overload) | 666 | (add-hook 'help-fns-describe-function-functions 'describe-mode-local-overload) |
diff --git a/lisp/cedet/semantic/analyze/debug.el b/lisp/cedet/semantic/analyze/debug.el index d0ab7c82c13..76a6cc2f9b2 100644 --- a/lisp/cedet/semantic/analyze/debug.el +++ b/lisp/cedet/semantic/analyze/debug.el | |||
| @@ -405,7 +405,8 @@ or implementing a version specific to ") | |||
| 405 | 405 | ||
| 406 | (princ "\n\nInclude Path Summary:") | 406 | (princ "\n\nInclude Path Summary:") |
| 407 | (when edeobj | 407 | (when edeobj |
| 408 | (princ "\n\nThis file's project include search is handled by the EDE object:\n") | 408 | (princ (substitute-command-keys |
| 409 | "\n\nThis file's project include search is handled by the EDE object:\n")) | ||
| 409 | (princ " Buffer Target: ") | 410 | (princ " Buffer Target: ") |
| 410 | (princ (object-print edeobj)) | 411 | (princ (object-print edeobj)) |
| 411 | (princ "\n") | 412 | (princ "\n") |
| @@ -463,12 +464,12 @@ or implementing a version specific to ") | |||
| 463 | 464 | ||
| 464 | (princ "\nYou can fix the include path for ") | 465 | (princ "\nYou can fix the include path for ") |
| 465 | (princ (symbol-name (oref table major-mode))) | 466 | (princ (symbol-name (oref table major-mode))) |
| 466 | (princ " by using this function: | 467 | (princ (substitute-command-keys " by using this function: |
| 467 | 468 | ||
| 468 | M-x semantic-customize-system-include-path RET | 469 | \\[semantic-customize-system-include-path] |
| 469 | 470 | ||
| 470 | which customizes the mode specific variable for the mode-local | 471 | which customizes the mode specific variable for the mode-local |
| 471 | variable `semantic-dependency-system-include-path'.") | 472 | variable `semantic-dependency-system-include-path'.")) |
| 472 | ) | 473 | ) |
| 473 | 474 | ||
| 474 | (princ "\n No unknown includes.\n")) | 475 | (princ "\n No unknown includes.\n")) |
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el index 6639f178e86..1c25c7b0808 100644 --- a/lisp/cedet/semantic/bovine/c.el +++ b/lisp/cedet/semantic/bovine/c.el | |||
| @@ -2176,7 +2176,8 @@ actually in their parent which is not accessible.") | |||
| 2176 | 2176 | ||
| 2177 | (princ "\n\nInclude Path Summary:\n") | 2177 | (princ "\n\nInclude Path Summary:\n") |
| 2178 | (when (and (boundp 'ede-object) ede-object) | 2178 | (when (and (boundp 'ede-object) ede-object) |
| 2179 | (princ "\n This file's project include is handled by:\n") | 2179 | (princ (substitute-command-keys |
| 2180 | "\n This file's project include is handled by:\n")) | ||
| 2180 | (let ((objs (if (listp ede-object) | 2181 | (let ((objs (if (listp ede-object) |
| 2181 | ede-object | 2182 | ede-object |
| 2182 | (list ede-object)))) | 2183 | (list ede-object)))) |
| @@ -2194,14 +2195,16 @@ actually in their parent which is not accessible.") | |||
| 2194 | ) | 2195 | ) |
| 2195 | 2196 | ||
| 2196 | (when semantic-dependency-include-path | 2197 | (when semantic-dependency-include-path |
| 2197 | (princ "\n This file's generic include path is:\n") | 2198 | (princ (substitute-command-keys |
| 2199 | "\n This file's generic include path is:\n")) | ||
| 2198 | (dolist (dir semantic-dependency-include-path) | 2200 | (dolist (dir semantic-dependency-include-path) |
| 2199 | (princ " ") | 2201 | (princ " ") |
| 2200 | (princ dir) | 2202 | (princ dir) |
| 2201 | (princ "\n"))) | 2203 | (princ "\n"))) |
| 2202 | 2204 | ||
| 2203 | (when semantic-dependency-system-include-path | 2205 | (when semantic-dependency-system-include-path |
| 2204 | (princ "\n This file's system include path is:\n") | 2206 | (princ (substitute-command-keys |
| 2207 | "\n This file's system include path is:\n")) | ||
| 2205 | (dolist (dir semantic-dependency-system-include-path) | 2208 | (dolist (dir semantic-dependency-system-include-path) |
| 2206 | (princ " ") | 2209 | (princ " ") |
| 2207 | (princ dir) | 2210 | (princ dir) |
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el index 7bfca77e8c4..962dc49da54 100644 --- a/lisp/cedet/semantic/decorate/include.el +++ b/lisp/cedet/semantic/decorate/include.el | |||
| @@ -503,7 +503,8 @@ Argument EVENT is the mouse clicked event." | |||
| 503 | (princ "Include File: ") | 503 | (princ "Include File: ") |
| 504 | (princ (semantic-format-tag-name tag nil t)) | 504 | (princ (semantic-format-tag-name tag nil t)) |
| 505 | (princ "\n\n") | 505 | (princ "\n\n") |
| 506 | (princ "This header file has been marked \"Unknown\". | 506 | (princ (substitute-command-keys "\ |
| 507 | This header file has been marked \"Unknown\". | ||
| 507 | This means that Semantic has not been able to locate this file on disk. | 508 | This means that Semantic has not been able to locate this file on disk. |
| 508 | 509 | ||
| 509 | When Semantic cannot find an include file, this means that the | 510 | When Semantic cannot find an include file, this means that the |
| @@ -521,9 +522,9 @@ M-x semantic-add-system-include RET /path/to/includes RET | |||
| 521 | 522 | ||
| 522 | or, in your .emacs file do: | 523 | or, in your .emacs file do: |
| 523 | 524 | ||
| 524 | (semantic-add-system-include \"/path/to/include\" '") | 525 | (semantic-add-system-include \"/path/to/include\" \\='")) |
| 525 | (princ (symbol-name mm)) | 526 | (princ (symbol-name mm)) |
| 526 | (princ ") | 527 | (princ (substitute-command-keys ") |
| 527 | 528 | ||
| 528 | to add the path to Semantic's search. | 529 | to add the path to Semantic's search. |
| 529 | 530 | ||
| @@ -531,7 +532,7 @@ If this is an include file that belongs to your project, then you may | |||
| 531 | need to update `semanticdb-project-roots' or better yet, use `ede' | 532 | need to update `semanticdb-project-roots' or better yet, use `ede' |
| 532 | to manage your project. See the ede manual for projects that will | 533 | to manage your project. See the ede manual for projects that will |
| 533 | wrap existing project code for Semantic's benefit. | 534 | wrap existing project code for Semantic's benefit. |
| 534 | ") | 535 | ")) |
| 535 | 536 | ||
| 536 | (when (or (eq mm 'c++-mode) (eq mm 'c-mode)) | 537 | (when (or (eq mm 'c++-mode) (eq mm 'c-mode)) |
| 537 | (princ " | 538 | (princ " |
| @@ -745,7 +746,8 @@ Argument EVENT describes the event that caused this function to be called." | |||
| 745 | (when (and (boundp 'ede-object) | 746 | (when (and (boundp 'ede-object) |
| 746 | (boundp 'ede-object-project) | 747 | (boundp 'ede-object-project) |
| 747 | ede-object) | 748 | ede-object) |
| 748 | (princ " This file's project include search is handled by the EDE object:\n") | 749 | (princ (substitute-command-keys |
| 750 | " This file's project include search is handled by the EDE object:\n")) | ||
| 749 | (princ " Buffer Target: ") | 751 | (princ " Buffer Target: ") |
| 750 | (princ (object-print ede-object)) | 752 | (princ (object-print ede-object)) |
| 751 | (princ "\n") | 753 | (princ "\n") |
| @@ -769,7 +771,8 @@ Argument EVENT describes the event that caused this function to be called." | |||
| 769 | (princ "\n")) | 771 | (princ "\n")) |
| 770 | ))) | 772 | ))) |
| 771 | 773 | ||
| 772 | (princ "\n This file's system include path is:\n") | 774 | (princ (substitute-command-keys |
| 775 | "\n This file's system include path is:\n")) | ||
| 773 | (dolist (dir semantic-dependency-system-include-path) | 776 | (dolist (dir semantic-dependency-system-include-path) |
| 774 | (princ " ") | 777 | (princ " ") |
| 775 | (princ dir) | 778 | (princ dir) |
diff --git a/lisp/cedet/semantic/ia.el b/lisp/cedet/semantic/ia.el index 2216fa9e964..27e6db16f39 100644 --- a/lisp/cedet/semantic/ia.el +++ b/lisp/cedet/semantic/ia.el | |||
| @@ -364,15 +364,17 @@ origin of the code at point." | |||
| 364 | (let ((secondclass (car (reverse (oref ctxt prefixtypes))))) | 364 | (let ((secondclass (car (reverse (oref ctxt prefixtypes))))) |
| 365 | (cond | 365 | (cond |
| 366 | ((and (semantic-tag-with-position-p secondclass) | 366 | ((and (semantic-tag-with-position-p secondclass) |
| 367 | (y-or-n-p (format "Could not find `%s'. Jump to %s? " | 367 | (y-or-n-p (format-message |
| 368 | first (semantic-tag-name secondclass)))) | 368 | "Could not find `%s'. Jump to %s? " |
| 369 | first (semantic-tag-name secondclass)))) | ||
| 369 | (semantic-ia--fast-jump-helper secondclass) | 370 | (semantic-ia--fast-jump-helper secondclass) |
| 370 | ) | 371 | ) |
| 371 | ;; If we missed out on the class of the second item, then | 372 | ;; If we missed out on the class of the second item, then |
| 372 | ;; just visit SECOND. | 373 | ;; just visit SECOND. |
| 373 | ((and (semantic-tag-p second) | 374 | ((and (semantic-tag-p second) |
| 374 | (y-or-n-p (format "Could not find `%s'. Jump to %s? " | 375 | (y-or-n-p (format-message |
| 375 | first (semantic-tag-name second)))) | 376 | "Could not find `%s'. Jump to %s? " |
| 377 | first (semantic-tag-name second)))) | ||
| 376 | (semantic-ia--fast-jump-helper second) | 378 | (semantic-ia--fast-jump-helper second) |
| 377 | )))) | 379 | )))) |
| 378 | 380 | ||