2021-03-15 00:08:34 -04:00
|
|
|
|
;;; semantic/java.el --- Semantic functions for Java -*- lexical-binding: t; -*-
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
2022-01-01 02:45:51 -05:00
|
|
|
|
;; Copyright (C) 1999-2022 Free Software Foundation, Inc.
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
;; Author: David Ponce <david@dponce.com>
|
|
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
2017-09-13 15:52:52 -07:00
|
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
;;
|
|
|
|
|
;; Common function for Java parsers.
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
(require 'semantic)
|
|
|
|
|
(require 'semantic/ctxt)
|
|
|
|
|
(require 'semantic/doc)
|
|
|
|
|
(require 'semantic/format)
|
|
|
|
|
|
|
|
|
|
(eval-when-compile
|
|
|
|
|
(require 'semantic/find)
|
|
|
|
|
(require 'semantic/dep))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Lexical analysis
|
|
|
|
|
;;
|
|
|
|
|
(defconst semantic-java-number-regexp
|
|
|
|
|
(eval-when-compile
|
|
|
|
|
(concat "\\("
|
|
|
|
|
"\\<[0-9]+[.][0-9]+\\([eE][-+]?[0-9]+\\)?[fFdD]?\\>"
|
|
|
|
|
"\\|"
|
|
|
|
|
"\\<[0-9]+[.][eE][-+]?[0-9]+[fFdD]?\\>"
|
|
|
|
|
"\\|"
|
|
|
|
|
"\\<[0-9]+[.][fFdD]\\>"
|
|
|
|
|
"\\|"
|
|
|
|
|
"\\<[0-9]+[.]"
|
|
|
|
|
"\\|"
|
|
|
|
|
"[.][0-9]+\\([eE][-+]?[0-9]+\\)?[fFdD]?\\>"
|
|
|
|
|
"\\|"
|
|
|
|
|
"\\<[0-9]+[eE][-+]?[0-9]+[fFdD]?\\>"
|
|
|
|
|
"\\|"
|
Replace manually crafted hex regexes with [:xdigit:]
* admin/charsets/mapconv:
* build-aux/gitlog-to-changelog (parse_amend_file, git_dir_option):
* lisp/progmodes/verilog-mode.el (verilog-delay-re):
(verilog-type-font-keywords, verilog-read-always-signals-recurse):
(verilog-is-number):
* lisp/progmodes/vera-mode.el (vera-font-lock-keywords):
* test/src/emacs-module-tests.el (mod-test-sum-test):
* lisp/xml.el: (xml--entity-replacement-text):
* lisp/version.el (emacs-repository-version-git):
* lisp/textmodes/sgml-mode.el (sgml-quote):
* lisp/textmodes/css-mode.el (css-escapes-re)
(css--colors-regexp):
* lisp/progmodes/prolog.el (prolog-syntax-propertize-function):
* lisp/progmodes/hideif.el (hif-token-regexp, hif-tokenize):
* lisp/progmodes/ebnf-dtd.el: (ebnf-dtd-attlistdecl)
(ebnf-dtd-entitydecl, ebnf-dtd-lex):
* lisp/progmodes/ebnf-ebx.el (ebnf-ebx-hex-character):
* lisp/progmodes/ebnf-abn.el (ebnf-abn-character):
* lisp/progmodes/cperl-mode.el (cperl-highlight-charclass)
(cperl-find-pods-heres):
* lisp/progmodes/cc-mode.el (c-maybe-quoted-number-head)
(c-maybe-quoted-number, c-parse-quotes-before-change)
(c-parse-quotes-after-change, c-quoted-number-head-before-point)
(c-quoted-number-straddling-point):
* lisp/progmodes/ada-mode.el (featurep, ada-in-numeric-literal-p)
(ada-font-lock-keywords):
* lisp/org/org-mobile.el (org-mobile-copy-agenda-files)
* lisp/org/org-table.el (org-table-number-regexp):
(org-mobile-update-checksum-for-capture-file):
* lisp/nxml/xsd-regexp.el (xsdre-gen-categories):
* lisp/nxml/xmltok.el (let*):
* lisp/nxml/rng-xsd.el (rng-xsd-convert-hex-binary)
(rng-xsd-convert-any-uri):
* lisp/nxml/rng-uri.el (rng-uri-file-name-1)
(rng-uri-unescape-multibyte, rng-uri-unescape-unibyte)
(rng-uri-unescape-unibyte-match)
(rng-uri-unescape-unibyte-replace):
* lisp/nxml/rng-cmpct.el (rng-c-process-escapes):
* lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* lisp/net/shr-color.el (shr-color->hexadecimal):
* lisp/mail/rfc2231.el (rfc2231-decode-encoded-string):
* lisp/international/mule-cmds.el (read-char-by-name):
* lisp/htmlfontify.el (hfy-hex-regex):
* lisp/gnus/nneething.el (nneething-decode-file-name):
* lisp/gnus/mml-sec.el (mml-secure-find-usable-keys):
* lisp/gnus/gnus-art.el (gnus-button-mid-or-mail-heuristic-alist):
* lisp/faces.el (read-color):
* lisp/epg.el (epg--status-ERRSIG, epg--status-VALIDSIG)
(epg--status-SIG_CREATED, epg--decode-percent-escape)
(epg--decode-hexstring, epg--decode-quotedstring)
(epg-dn-from-string):
* lisp/emulation/cua-rect.el (cua-incr-rectangle):
* lisp/dnd.el (dnd-unescape-uri):
* lisp/cedet/semantic/lex.el (semantic-lex-number-expression):
* lisp/cedet/semantic/java.el (semantic-java-number-regexp):
* lisp/calc/calc-lang.el (pascal):
* lisp/calc/calc-ext.el (math-read-number-fancy):
* lisp/calc/calc-aent.el (math-read-token):
Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
(Bug#36167)
2019-06-13 03:18:43 +03:00
|
|
|
|
"\\<0[xX][[:xdigit:]]+[lL]?\\>"
|
2009-09-05 20:47:41 +00:00
|
|
|
|
"\\|"
|
|
|
|
|
"\\<[0-9]+[lLfFdD]?\\>"
|
|
|
|
|
"\\)"
|
|
|
|
|
))
|
|
|
|
|
"Lexer regexp to match Java number terminals.
|
|
|
|
|
Following is the specification of Java number literals.
|
|
|
|
|
|
|
|
|
|
DECIMAL_LITERAL:
|
|
|
|
|
[1-9][0-9]*
|
|
|
|
|
;
|
|
|
|
|
HEX_LITERAL:
|
Replace manually crafted hex regexes with [:xdigit:]
* admin/charsets/mapconv:
* build-aux/gitlog-to-changelog (parse_amend_file, git_dir_option):
* lisp/progmodes/verilog-mode.el (verilog-delay-re):
(verilog-type-font-keywords, verilog-read-always-signals-recurse):
(verilog-is-number):
* lisp/progmodes/vera-mode.el (vera-font-lock-keywords):
* test/src/emacs-module-tests.el (mod-test-sum-test):
* lisp/xml.el: (xml--entity-replacement-text):
* lisp/version.el (emacs-repository-version-git):
* lisp/textmodes/sgml-mode.el (sgml-quote):
* lisp/textmodes/css-mode.el (css-escapes-re)
(css--colors-regexp):
* lisp/progmodes/prolog.el (prolog-syntax-propertize-function):
* lisp/progmodes/hideif.el (hif-token-regexp, hif-tokenize):
* lisp/progmodes/ebnf-dtd.el: (ebnf-dtd-attlistdecl)
(ebnf-dtd-entitydecl, ebnf-dtd-lex):
* lisp/progmodes/ebnf-ebx.el (ebnf-ebx-hex-character):
* lisp/progmodes/ebnf-abn.el (ebnf-abn-character):
* lisp/progmodes/cperl-mode.el (cperl-highlight-charclass)
(cperl-find-pods-heres):
* lisp/progmodes/cc-mode.el (c-maybe-quoted-number-head)
(c-maybe-quoted-number, c-parse-quotes-before-change)
(c-parse-quotes-after-change, c-quoted-number-head-before-point)
(c-quoted-number-straddling-point):
* lisp/progmodes/ada-mode.el (featurep, ada-in-numeric-literal-p)
(ada-font-lock-keywords):
* lisp/org/org-mobile.el (org-mobile-copy-agenda-files)
* lisp/org/org-table.el (org-table-number-regexp):
(org-mobile-update-checksum-for-capture-file):
* lisp/nxml/xsd-regexp.el (xsdre-gen-categories):
* lisp/nxml/xmltok.el (let*):
* lisp/nxml/rng-xsd.el (rng-xsd-convert-hex-binary)
(rng-xsd-convert-any-uri):
* lisp/nxml/rng-uri.el (rng-uri-file-name-1)
(rng-uri-unescape-multibyte, rng-uri-unescape-unibyte)
(rng-uri-unescape-unibyte-match)
(rng-uri-unescape-unibyte-replace):
* lisp/nxml/rng-cmpct.el (rng-c-process-escapes):
* lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* lisp/net/shr-color.el (shr-color->hexadecimal):
* lisp/mail/rfc2231.el (rfc2231-decode-encoded-string):
* lisp/international/mule-cmds.el (read-char-by-name):
* lisp/htmlfontify.el (hfy-hex-regex):
* lisp/gnus/nneething.el (nneething-decode-file-name):
* lisp/gnus/mml-sec.el (mml-secure-find-usable-keys):
* lisp/gnus/gnus-art.el (gnus-button-mid-or-mail-heuristic-alist):
* lisp/faces.el (read-color):
* lisp/epg.el (epg--status-ERRSIG, epg--status-VALIDSIG)
(epg--status-SIG_CREATED, epg--decode-percent-escape)
(epg--decode-hexstring, epg--decode-quotedstring)
(epg-dn-from-string):
* lisp/emulation/cua-rect.el (cua-incr-rectangle):
* lisp/dnd.el (dnd-unescape-uri):
* lisp/cedet/semantic/lex.el (semantic-lex-number-expression):
* lisp/cedet/semantic/java.el (semantic-java-number-regexp):
* lisp/calc/calc-lang.el (pascal):
* lisp/calc/calc-ext.el (math-read-number-fancy):
* lisp/calc/calc-aent.el (math-read-token):
Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
(Bug#36167)
2019-06-13 03:18:43 +03:00
|
|
|
|
0[xX][[:xdigit:]]+
|
2009-09-05 20:47:41 +00:00
|
|
|
|
;
|
|
|
|
|
OCTAL_LITERAL:
|
|
|
|
|
0[0-7]*
|
|
|
|
|
;
|
|
|
|
|
INTEGER_LITERAL:
|
|
|
|
|
<DECIMAL_LITERAL>[lL]?
|
|
|
|
|
| <HEX_LITERAL>[lL]?
|
|
|
|
|
| <OCTAL_LITERAL>[lL]?
|
|
|
|
|
;
|
|
|
|
|
EXPONENT:
|
|
|
|
|
[eE][+-]?[09]+
|
|
|
|
|
;
|
|
|
|
|
FLOATING_POINT_LITERAL:
|
|
|
|
|
[0-9]+[.][0-9]*<EXPONENT>?[fFdD]?
|
|
|
|
|
| [.][0-9]+<EXPONENT>?[fFdD]?
|
|
|
|
|
| [0-9]+<EXPONENT>[fFdD]?
|
|
|
|
|
| [0-9]+<EXPONENT>?[fFdD]
|
|
|
|
|
;")
|
|
|
|
|
|
|
|
|
|
;;; Parsing
|
|
|
|
|
;;
|
|
|
|
|
(defsubst semantic-java-dim (id)
|
|
|
|
|
"Split ID string into a pair (NAME . DIM).
|
|
|
|
|
NAME is ID without trailing brackets: \"[]\".
|
|
|
|
|
DIM is the dimension of NAME deduced from the number of trailing
|
|
|
|
|
brackets, or 0 if there is no trailing brackets."
|
|
|
|
|
(let ((dim (string-match "\\(\\[]\\)+\\'" id)))
|
|
|
|
|
(if dim
|
|
|
|
|
(cons (substring id 0 dim)
|
|
|
|
|
(/ (length (match-string 0 id)) 2))
|
|
|
|
|
(cons id 0))))
|
|
|
|
|
|
|
|
|
|
(defsubst semantic-java-type (tag)
|
|
|
|
|
"Return the type of TAG, taking care of array notation."
|
|
|
|
|
(let ((type (semantic-tag-type tag))
|
|
|
|
|
(dim (semantic-tag-get-attribute tag :dereference)))
|
|
|
|
|
(when dim
|
|
|
|
|
(while (> dim 0)
|
|
|
|
|
(setq type (concat type "[]")
|
|
|
|
|
dim (1- dim))))
|
|
|
|
|
type))
|
|
|
|
|
|
|
|
|
|
(defun semantic-java-expand-tag (tag)
|
|
|
|
|
"Expand compound declarations found in TAG into separate tags.
|
|
|
|
|
TAG contains compound declarations when its class is `variable', and
|
|
|
|
|
its name is a list of elements (NAME START . END), where NAME is a
|
|
|
|
|
compound variable name, and START/END are the bounds of the
|
|
|
|
|
corresponding compound declaration."
|
|
|
|
|
(let* ((class (semantic-tag-class tag))
|
|
|
|
|
(elts (semantic-tag-name tag))
|
|
|
|
|
dim type dim0 elt clone start end xpand)
|
|
|
|
|
(cond
|
|
|
|
|
((and (eq class 'function)
|
|
|
|
|
(> (cdr (setq dim (semantic-java-dim elts))) 0))
|
|
|
|
|
(setq clone (semantic-tag-clone tag (car dim))
|
|
|
|
|
xpand (cons clone xpand))
|
|
|
|
|
(semantic-tag-put-attribute clone :dereference (cdr dim)))
|
2012-10-02 02:10:29 +08:00
|
|
|
|
|
2009-09-05 20:47:41 +00:00
|
|
|
|
((eq class 'variable)
|
|
|
|
|
(or (consp elts) (setq elts (list (list elts))))
|
|
|
|
|
(setq dim (semantic-java-dim (semantic-tag-get-attribute tag :type))
|
|
|
|
|
type (car dim)
|
|
|
|
|
dim0 (cdr dim))
|
|
|
|
|
(while elts
|
|
|
|
|
;; For each compound element, clone the initial tag with the
|
|
|
|
|
;; name and bounds of the compound variable declaration.
|
|
|
|
|
(setq elt (car elts)
|
|
|
|
|
elts (cdr elts)
|
|
|
|
|
start (if elts (cadr elt) (semantic-tag-start tag))
|
|
|
|
|
end (if xpand (cddr elt) (semantic-tag-end tag))
|
|
|
|
|
dim (semantic-java-dim (car elt))
|
|
|
|
|
clone (semantic-tag-clone tag (car dim))
|
|
|
|
|
xpand (cons clone xpand))
|
|
|
|
|
(semantic-tag-put-attribute clone :type type)
|
|
|
|
|
(semantic-tag-put-attribute clone :dereference (+ dim0 (cdr dim)))
|
|
|
|
|
(semantic-tag-set-bounds clone start end)))
|
2012-10-02 02:10:29 +08:00
|
|
|
|
|
Use string-search instead of string-match[-p]
`string-search` is easier to understand, less error-prone, much
faster, does not pollute the regexp cache, and does not mutate global
state. Use it where applicable and obviously safe (erring on the
conservative side).
* admin/authors.el (authors-canonical-file-name)
(authors-scan-change-log):
* lisp/apropos.el (apropos-command)
(apropos-documentation-property, apropos-symbols-internal):
* lisp/arc-mode.el (archive-arc-summarize)
(archive-zoo-summarize):
* lisp/calc/calc-aent.el (math-read-factor):
* lisp/calc/calc-ext.el (math-read-big-expr)
(math-format-nice-expr, math-format-number-fancy):
* lisp/calc/calc-forms.el (math-read-angle-brackets):
* lisp/calc/calc-graph.el (calc-graph-set-range):
* lisp/calc/calc-keypd.el (calc-keypad-press):
* lisp/calc/calc-lang.el (tex, latex, math-read-big-rec):
* lisp/calc/calc-prog.el (calc-fix-token-name)
(calc-user-define-permanent, math-define-exp):
* lisp/calc/calc.el (calc-record, calcDigit-key)
(calc-count-lines):
* lisp/calc/calcalg2.el (calc-solve-for, calc-poly-roots)
(math-do-integral):
* lisp/calc/calcalg3.el (calc-find-root, calc-find-minimum)
(calc-get-fit-variables):
* lisp/cedet/ede/speedbar.el (ede-tag-expand):
* lisp/cedet/semantic/java.el (semantic-java-expand-tag):
* lisp/cedet/semantic/sb.el (semantic-sb-show-extra)
(semantic-sb-expand-group):
* lisp/cedet/semantic/wisent/python.el
(semantic-python-instance-variable-p):
* lisp/cus-edit.el (get):
* lisp/descr-text.el (describe-text-sexp):
* lisp/dired-aux.el (dired-compress-file):
* lisp/dired-x.el (dired-make-relative-symlink):
* lisp/dired.el (dired-glob-regexp):
* lisp/dos-fns.el (dos-convert-standard-filename, dos-8+3-filename):
* lisp/edmacro.el (edmacro-format-keys):
* lisp/emacs-lisp/eieio-opt.el (eieio-sb-expand):
* lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-object-expand):
* lisp/emacs-lisp/lisp-mnt.el (lm-keywords-list):
* lisp/emacs-lisp/warnings.el (display-warning):
* lisp/emulation/viper-ex.el (viper-ex-read-file-name)
(ex-print-display-lines):
* lisp/env.el (read-envvar-name, setenv):
* lisp/epa-mail.el (epa-mail-encrypt):
* lisp/epg.el (epg--start):
* lisp/erc/erc-backend.el (erc-parse-server-response):
* lisp/erc/erc-dcc.el (erc-dcc-member):
* lisp/erc/erc-speedbar.el (erc-speedbar-expand-server)
(erc-speedbar-expand-channel, erc-speedbar-expand-user):
* lisp/erc/erc.el (erc-send-input):
* lisp/eshell/em-glob.el (eshell-glob-entries):
* lisp/eshell/esh-proc.el (eshell-needs-pipe-p):
* lisp/eshell/esh-util.el (eshell-convert):
* lisp/eshell/esh-var.el (eshell-envvar-names):
* lisp/faces.el (x-resolve-font-name):
* lisp/ffap.el (ffap-file-at-point):
* lisp/files.el (wildcard-to-regexp, shell-quote-wildcard-pattern):
* lisp/forms.el (forms--update):
* lisp/frameset.el (frameset-filter-unshelve-param):
* lisp/gnus/gnus-art.el (article-decode-charset):
* lisp/gnus/gnus-kill.el (gnus-kill-parse-rn-kill-file):
* lisp/gnus/gnus-mlspl.el (gnus-group-split-fancy):
* lisp/gnus/gnus-msg.el (gnus-summary-resend-message-insert-gcc)
(gnus-inews-insert-gcc):
* lisp/gnus/gnus-rfc1843.el (rfc1843-decode-article-body):
* lisp/gnus/gnus-search.el (gnus-search-indexed-parse-output)
(gnus-search--complete-key-data):
* lisp/gnus/gnus-spec.el (gnus-parse-simple-format):
* lisp/gnus/gnus-sum.el (gnus-summary-refer-article):
* lisp/gnus/gnus-util.el (gnus-extract-address-components)
(gnus-newsgroup-directory-form):
* lisp/gnus/gnus-uu.el (gnus-uu-grab-view):
* lisp/gnus/gnus.el (gnus-group-native-p, gnus-short-group-name):
* lisp/gnus/message.el (message-check-news-header-syntax)
(message-make-message-id, message-user-mail-address)
(message-make-fqdn, message-get-reply-headers, message-followup):
* lisp/gnus/mm-decode.el (mm-dissect-buffer):
* lisp/gnus/nnheader.el (nnheader-insert):
* lisp/gnus/nnimap.el (nnimap-process-quirk)
(nnimap-imap-ranges-to-gnus-ranges):
* lisp/gnus/nnmaildir.el (nnmaildir--ensure-suffix):
* lisp/gnus/nnmairix.el (nnmairix-determine-original-group-from-path):
* lisp/gnus/nnrss.el (nnrss-match-macro):
* lisp/gnus/nntp.el (nntp-find-group-and-number):
* lisp/help-fns.el (help--symbol-completion-table-affixation):
* lisp/help.el (help-function-arglist):
* lisp/hippie-exp.el (he-concat-directory-file-name):
* lisp/htmlfontify.el (hfy-relstub):
* lisp/ido.el (ido-make-prompt, ido-complete, ido-copy-current-word)
(ido-exhibit):
* lisp/image/image-converter.el (image-convert-p):
* lisp/info-xref.el (info-xref-docstrings):
* lisp/info.el (Info-toc-build, Info-follow-reference)
(Info-backward-node, Info-finder-find-node)
(Info-speedbar-expand-node):
* lisp/international/mule-diag.el (print-fontset-element):
* lisp/language/korea-util.el (default-korean-keyboard):
* lisp/linum.el (linum-after-change):
* lisp/mail/ietf-drums.el (ietf-drums-parse-address):
* lisp/mail/mail-utils.el (mail-dont-reply-to):
* lisp/mail/rfc2047.el (rfc2047-encode-1, rfc2047-decode-string):
* lisp/mail/rfc2231.el (rfc2231-parse-string):
* lisp/mail/rmailkwd.el (rmail-set-label):
* lisp/mail/rmailsum.el (rmail-header-summary):
* lisp/mail/smtpmail.el (smtpmail-maybe-append-domain)
(smtpmail-user-mail-address):
* lisp/mail/uce.el (uce-reply-to-uce):
* lisp/man.el (Man-default-man-entry):
* lisp/mh-e/mh-alias.el (mh-alias-gecos-name)
(mh-alias-minibuffer-confirm-address):
* lisp/mh-e/mh-comp.el (mh-forwarded-letter-subject):
* lisp/mh-e/mh-speed.el (mh-speed-parse-flists-output):
* lisp/mh-e/mh-utils.el (mh-collect-folder-names-filter)
(mh-folder-completion-function):
* lisp/minibuffer.el (completion--make-envvar-table)
(completion-file-name-table, completion-flex-try-completion)
(completion-flex-all-completions):
* lisp/mpc.el (mpc--proc-quote-string, mpc-cmd-special-tag-p)
(mpc-constraints-tag-lookup):
* lisp/net/ange-ftp.el (ange-ftp-send-cmd)
(ange-ftp-allow-child-lookup):
* lisp/net/mailcap.el (mailcap-mime-types):
* lisp/net/mairix.el (mairix-search-thread-this-article):
* lisp/net/pop3.el (pop3-open-server):
* lisp/net/soap-client.el (soap-decode-xs-complex-type):
* lisp/net/socks.el (socks-filter):
* lisp/nxml/nxml-outln.el (nxml-highlighted-qname):
* lisp/nxml/rng-cmpct.el (rng-c-expand-name, rng-c-expand-datatype):
* lisp/nxml/rng-uri.el (rng-uri-file-name-1):
* lisp/obsolete/complete.el (partial-completion-mode)
(PC-do-completion):
* lisp/obsolete/longlines.el (longlines-encode-string):
* lisp/obsolete/nnir.el (nnir-compose-result):
* lisp/obsolete/terminal.el (te-quote-arg-for-sh):
* lisp/obsolete/tpu-edt.el (tpu-check-search-case):
* lisp/obsolete/url-ns.el (isPlainHostName):
* lisp/pcmpl-unix.el (pcomplete/scp):
* lisp/play/dunnet.el (dun-listify-string2, dun-get-path)
(dun-unix-parse, dun-doassign, dun-cat, dun-batch-unix-interface):
* lisp/progmodes/ebnf2ps.el: (ebnf-eps-header-footer-comment):
* lisp/progmodes/gdb-mi.el (gdb-var-delete)
(gdb-speedbar-expand-node, gdbmi-bnf-incomplete-record-result):
* lisp/progmodes/gud.el (gud-find-expr):
* lisp/progmodes/idlw-help.el (idlwave-do-context-help1):
* lisp/progmodes/idlw-shell.el (idlwave-shell-mode)
(idlwave-shell-filter-hidden-output, idlwave-shell-filter):
* lisp/progmodes/idlwave.el (idlwave-skip-label-or-case)
(idlwave-routine-info):
* lisp/progmodes/octave.el (inferior-octave-completion-at-point):
* lisp/progmodes/sh-script.el (sh-add-completer):
* lisp/progmodes/sql.el (defun):
* lisp/progmodes/xscheme.el (xscheme-process-filter):
* lisp/replace.el (query-replace-compile-replacement)
(map-query-replace-regexp):
* lisp/shell.el (shell--command-completion-data)
(shell-environment-variable-completion):
* lisp/simple.el (display-message-or-buffer):
* lisp/speedbar.el (speedbar-dired, speedbar-tag-file)
(speedbar-tag-expand):
* lisp/subr.el (split-string-and-unquote):
* lisp/tar-mode.el (tar-extract):
* lisp/term.el (term-command-hook, serial-read-name):
* lisp/textmodes/bibtex.el (bibtex-print-help-message):
* lisp/textmodes/ispell.el (ispell-lookup-words, ispell-filter)
(ispell-parse-output, ispell-buffer-local-parsing):
* lisp/textmodes/reftex-cite.el (reftex-do-citation):
* lisp/textmodes/reftex-parse.el (reftex-notice-new):
* lisp/textmodes/reftex-ref.el (reftex-show-entry):
* lisp/textmodes/reftex.el (reftex-compile-variables):
* lisp/textmodes/tex-mode.el (tex-send-command)
(tex-start-tex, tex-append):
* lisp/thingatpt.el (thing-at-point-url-at-point):
* lisp/tmm.el (tmm-add-one-shortcut):
* lisp/transient.el (transient-format-key):
* lisp/url/url-auth.el (url-basic-auth)
(url-digest-auth-directory-id-assoc):
* lisp/url/url-news.el (url-news):
* lisp/url/url-util.el (url-parse-query-string):
* lisp/vc/vc-cvs.el (vc-cvs-parse-entry):
* lisp/wid-browse.el (widget-browse-sexp):
* lisp/woman.el (woman-parse-colon-path, woman-mini-help)
(WoMan-getpage-in-background, woman-negative-vertical-space):
* lisp/xml.el:
* test/lisp/emacs-lisp/check-declare-tests.el
(check-declare-tests-warn):
* test/lisp/files-tests.el
(files-tests-file-name-non-special-dired-compress-handler):
* test/lisp/net/network-stream-tests.el (server-process-filter):
* test/src/coding-tests.el (ert-test-unibyte-buffer-dos-eol-decode):
Use `string-search` instead of `string-match` and `string-match-p`.
2021-08-09 11:20:00 +02:00
|
|
|
|
((and (eq class 'type) (string-search "." (semantic-tag-name tag)))
|
2012-10-02 02:10:29 +08:00
|
|
|
|
;; javap outputs files where the package name is stuck onto the class or interface
|
|
|
|
|
;; name. To make this more regular, we extract the package name into a package statement,
|
|
|
|
|
;; then make the class name regular.
|
|
|
|
|
(let* ((name (semantic-tag-name tag))
|
|
|
|
|
(rsplit (nreverse (split-string name "\\." t)))
|
|
|
|
|
(newclassname (car rsplit))
|
2021-03-15 00:08:34 -04:00
|
|
|
|
(newpkg (mapconcat #'identity (reverse (cdr rsplit)) ".")))
|
2012-10-02 02:10:29 +08:00
|
|
|
|
(semantic-tag-set-name tag newclassname)
|
|
|
|
|
(setq xpand
|
|
|
|
|
(list tag
|
|
|
|
|
(semantic-tag-new-package newpkg nil))))
|
|
|
|
|
))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
xpand))
|
|
|
|
|
|
|
|
|
|
;;; Environment
|
|
|
|
|
;;
|
|
|
|
|
(defcustom-mode-local-semantic-dependency-system-include-path
|
|
|
|
|
java-mode semantic-java-dependency-system-include-path
|
|
|
|
|
;; @todo - Use JDEE to get at the include path, or something else?
|
|
|
|
|
nil
|
Fix typos in CEDET docstrings.
* cedet/semantic/analyze.el (semantic-analyze-push-error)
(semantic-analyze-context, semantic-analyze-context-assignment)
(semantic-analyze-find-tag-sequence, semantic-analyze-find-tag):
* cedet/semantic/java.el (java-mode, semantic-tag-include-filename)
(semantic-java-doc-keywords-map):
* cedet/semantic/bovine/c.el (c-mode, semantic-c-member-of-autocast)
(semantic-lex-c-nested-namespace-ignore-second, semantic-parse-region)
(semantic-c-parse-lexical-token, semantic-c-debug-mode-init-pch)
(semantic-c-classname, semantic-format-tag-uml-prototype)
(semantic-c-dereference-namespace, semantic-analyze-type-constants):
* cedet/semantic/bovine/el.el (semantic-elisp-form-to-doc-string)
(semantic-emacs-lisp-obsoleted-doc, semantic-up-context)
(semantic-get-local-variables, semantic-end-of-command)
(semantic-beginning-of-command, semantic-ctxt-current-class-list)
(lisp-mode):
* cedet/semantic/bovine/make.el (makefile-mode):
* cedet/semantic/wisent/python.el (wisent-python-string-re)
(wisent-python-implicit-line-joining-p, wisent-python-forward-string)
(wisent-python-lex-beginning-of-line, wisent-python-lex-end-of-line)
(semantic-lex, semantic-get-local-variables, python-mode):
* cedet/semantic/wisent/python-wy.el (wisent-python-wy--keyword-table):
* cedet/srecode/extract.el (srecode-extract-state-set)
(srecode-extract-method): Fix typos in docstrings.
2010-01-12 05:51:26 +01:00
|
|
|
|
"The system include path used by Java language.")
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
;; Local context
|
|
|
|
|
;;
|
|
|
|
|
(define-mode-local-override semantic-ctxt-scoped-types
|
|
|
|
|
java-mode (&optional point)
|
|
|
|
|
"Return a list of type names currently in scope at POINT."
|
2021-03-15 00:08:34 -04:00
|
|
|
|
(mapcar #'semantic-tag-name
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(semantic-find-tags-by-class
|
|
|
|
|
'type (semantic-find-tag-by-overlay point))))
|
|
|
|
|
|
2012-10-02 02:10:29 +08:00
|
|
|
|
;; Tag Protection
|
|
|
|
|
;;
|
|
|
|
|
(define-mode-local-override semantic-tag-protection
|
|
|
|
|
java-mode (tag &optional parent)
|
|
|
|
|
"Return the protection of TAG in PARENT.
|
|
|
|
|
Override function for `semantic-tag-protection'."
|
|
|
|
|
(let ((prot (semantic-tag-protection-default tag parent)))
|
|
|
|
|
(or prot 'package)))
|
|
|
|
|
|
2009-09-05 20:47:41 +00:00
|
|
|
|
;; Prototype handler
|
|
|
|
|
;;
|
2021-03-15 00:08:34 -04:00
|
|
|
|
(defun semantic-java-prototype-function (tag &optional _parent color)
|
2009-09-05 20:47:41 +00:00
|
|
|
|
"Return a function (method) prototype for TAG.
|
|
|
|
|
Optional argument PARENT is a parent (containing) item.
|
|
|
|
|
Optional argument COLOR indicates that color should be mixed in.
|
2009-09-13 15:58:30 +00:00
|
|
|
|
See also `semantic-format-tag-prototype'."
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(let ((name (semantic-tag-name tag))
|
|
|
|
|
(type (semantic-java-type tag))
|
|
|
|
|
(tmpl (semantic-tag-get-attribute tag :template-specifier))
|
|
|
|
|
(args (semantic-tag-function-arguments tag))
|
|
|
|
|
(argp "")
|
|
|
|
|
arg argt)
|
|
|
|
|
(while args
|
|
|
|
|
(setq arg (car args)
|
|
|
|
|
args (cdr args))
|
|
|
|
|
(if (semantic-tag-p arg)
|
|
|
|
|
(setq argt (if color
|
|
|
|
|
(semantic--format-colorize-text
|
|
|
|
|
(semantic-java-type arg) 'type)
|
|
|
|
|
(semantic-java-type arg))
|
|
|
|
|
argp (concat argp argt (if args "," "")))))
|
|
|
|
|
(when color
|
|
|
|
|
(when type
|
|
|
|
|
(setq type (semantic--format-colorize-text type 'type)))
|
|
|
|
|
(setq name (semantic--format-colorize-text name 'function)))
|
|
|
|
|
(concat (or tmpl "") (if tmpl " " "")
|
|
|
|
|
(or type "") (if type " " "")
|
|
|
|
|
name "(" argp ")")))
|
|
|
|
|
|
2021-03-15 00:08:34 -04:00
|
|
|
|
(defun semantic-java-prototype-variable (tag &optional _parent color)
|
2009-09-05 20:47:41 +00:00
|
|
|
|
"Return a variable (field) prototype for TAG.
|
|
|
|
|
Optional argument PARENT is a parent (containing) item.
|
|
|
|
|
Optional argument COLOR indicates that color should be mixed in.
|
2009-09-13 15:58:30 +00:00
|
|
|
|
See also `semantic-format-tag-prototype'."
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(let ((name (semantic-tag-name tag))
|
|
|
|
|
(type (semantic-java-type tag)))
|
|
|
|
|
(concat (if color
|
|
|
|
|
(semantic--format-colorize-text type 'type)
|
|
|
|
|
type)
|
|
|
|
|
" "
|
|
|
|
|
(if color
|
|
|
|
|
(semantic--format-colorize-text name 'variable)
|
|
|
|
|
name))))
|
|
|
|
|
|
2021-03-15 00:08:34 -04:00
|
|
|
|
(defun semantic-java-prototype-type (tag &optional _parent color)
|
2009-09-05 20:47:41 +00:00
|
|
|
|
"Return a type (class/interface) prototype for TAG.
|
|
|
|
|
Optional argument PARENT is a parent (containing) item.
|
|
|
|
|
Optional argument COLOR indicates that color should be mixed in.
|
2009-09-13 15:58:30 +00:00
|
|
|
|
See also `semantic-format-tag-prototype'."
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(let ((name (semantic-tag-name tag))
|
|
|
|
|
(type (semantic-tag-type tag))
|
|
|
|
|
(tmpl (semantic-tag-get-attribute tag :template-specifier)))
|
|
|
|
|
(concat type " "
|
|
|
|
|
(if color
|
|
|
|
|
(semantic--format-colorize-text name 'type)
|
|
|
|
|
name)
|
|
|
|
|
(or tmpl ""))))
|
|
|
|
|
|
2009-09-13 15:58:30 +00:00
|
|
|
|
(define-mode-local-override semantic-format-tag-prototype
|
2009-09-05 20:47:41 +00:00
|
|
|
|
java-mode (tag &optional parent color)
|
|
|
|
|
"Return a prototype for TOKEN.
|
|
|
|
|
Optional argument PARENT is a parent (containing) item.
|
|
|
|
|
Optional argument COLOR indicates that color should be mixed in."
|
|
|
|
|
(let ((f (intern-soft (format "semantic-java-prototype-%s"
|
|
|
|
|
(semantic-tag-class tag)))))
|
|
|
|
|
(funcall (if (fboundp f)
|
|
|
|
|
f
|
|
|
|
|
'semantic-format-tag-prototype-default)
|
|
|
|
|
tag parent color)))
|
|
|
|
|
|
|
|
|
|
;; Include Tag Name
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;; Thanks Bruce Stephens
|
|
|
|
|
(define-mode-local-override semantic-tag-include-filename java-mode (tag)
|
Fix typos in CEDET docstrings.
* cedet/semantic/analyze.el (semantic-analyze-push-error)
(semantic-analyze-context, semantic-analyze-context-assignment)
(semantic-analyze-find-tag-sequence, semantic-analyze-find-tag):
* cedet/semantic/java.el (java-mode, semantic-tag-include-filename)
(semantic-java-doc-keywords-map):
* cedet/semantic/bovine/c.el (c-mode, semantic-c-member-of-autocast)
(semantic-lex-c-nested-namespace-ignore-second, semantic-parse-region)
(semantic-c-parse-lexical-token, semantic-c-debug-mode-init-pch)
(semantic-c-classname, semantic-format-tag-uml-prototype)
(semantic-c-dereference-namespace, semantic-analyze-type-constants):
* cedet/semantic/bovine/el.el (semantic-elisp-form-to-doc-string)
(semantic-emacs-lisp-obsoleted-doc, semantic-up-context)
(semantic-get-local-variables, semantic-end-of-command)
(semantic-beginning-of-command, semantic-ctxt-current-class-list)
(lisp-mode):
* cedet/semantic/bovine/make.el (makefile-mode):
* cedet/semantic/wisent/python.el (wisent-python-string-re)
(wisent-python-implicit-line-joining-p, wisent-python-forward-string)
(wisent-python-lex-beginning-of-line, wisent-python-lex-end-of-line)
(semantic-lex, semantic-get-local-variables, python-mode):
* cedet/semantic/wisent/python-wy.el (wisent-python-wy--keyword-table):
* cedet/srecode/extract.el (srecode-extract-state-set)
(srecode-extract-method): Fix typos in docstrings.
2010-01-12 05:51:26 +01:00
|
|
|
|
"Return a suitable path for (some) Java imports."
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(let ((name (semantic-tag-name tag)))
|
2021-03-15 00:08:34 -04:00
|
|
|
|
(concat (mapconcat #'identity (split-string name "\\.") "/") ".java")))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
;; Documentation handler
|
|
|
|
|
;;
|
|
|
|
|
(defsubst semantic-java-skip-spaces-backward ()
|
|
|
|
|
"Move point backward, skipping Java whitespaces."
|
|
|
|
|
(skip-chars-backward " \n\r\t"))
|
|
|
|
|
|
|
|
|
|
(defsubst semantic-java-skip-spaces-forward ()
|
|
|
|
|
"Move point forward, skipping Java whitespaces."
|
|
|
|
|
(skip-chars-forward " \n\r\t"))
|
|
|
|
|
|
|
|
|
|
(define-mode-local-override semantic-documentation-for-tag
|
|
|
|
|
java-mode (&optional tag nosnarf)
|
|
|
|
|
"Find documentation from TAG and return it as a clean string.
|
2011-11-03 21:03:45 +01:00
|
|
|
|
Java have documentation set in a comment preceding TAG's definition.
|
2009-09-05 20:47:41 +00:00
|
|
|
|
Attempt to strip out comment syntactic sugar, unless optional argument
|
|
|
|
|
NOSNARF is non-nil.
|
2019-11-11 10:30:13 -08:00
|
|
|
|
If NOSNARF is `lex', then return the semantic lex token."
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(when (or tag (setq tag (semantic-current-tag)))
|
|
|
|
|
(with-current-buffer (semantic-tag-buffer tag)
|
|
|
|
|
(save-excursion
|
|
|
|
|
;; Move the point at token start
|
|
|
|
|
(goto-char (semantic-tag-start tag))
|
|
|
|
|
(semantic-java-skip-spaces-forward)
|
|
|
|
|
;; If the point already at "/**" (this occurs after a doc fix)
|
|
|
|
|
(if (looking-at "/\\*\\*")
|
|
|
|
|
nil
|
|
|
|
|
;; Skip previous spaces
|
|
|
|
|
(semantic-java-skip-spaces-backward)
|
|
|
|
|
;; Ensure point is after "*/" (javadoc block comment end)
|
|
|
|
|
(condition-case nil
|
|
|
|
|
(backward-char 2)
|
|
|
|
|
(error nil))
|
|
|
|
|
(when (looking-at "\\*/")
|
|
|
|
|
;; Move the point backward across the comment
|
|
|
|
|
(forward-char 2) ; return just after "*/"
|
|
|
|
|
(forward-comment -1) ; to skip the entire block
|
|
|
|
|
))
|
|
|
|
|
;; Verify the point is at "/**" (javadoc block comment start)
|
|
|
|
|
(if (looking-at "/\\*\\*")
|
|
|
|
|
(let ((p (point))
|
|
|
|
|
(c (semantic-doc-snarf-comment-for-tag 'lex)))
|
|
|
|
|
(when c
|
|
|
|
|
;; Verify that the token just following the doc
|
|
|
|
|
;; comment is the current one!
|
|
|
|
|
(goto-char (semantic-lex-token-end c))
|
|
|
|
|
(semantic-java-skip-spaces-forward)
|
|
|
|
|
(when (eq tag (semantic-current-tag))
|
|
|
|
|
(goto-char p)
|
|
|
|
|
(semantic-doc-snarf-comment-for-tag nosnarf)))))
|
|
|
|
|
))))
|
|
|
|
|
|
|
|
|
|
;;; Javadoc facilities
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;; Javadoc elements
|
|
|
|
|
;;
|
|
|
|
|
(defvar semantic-java-doc-line-tags nil
|
|
|
|
|
"Valid javadoc line tags.
|
|
|
|
|
Ordered following Sun's Tag Convention at
|
2020-10-01 15:24:21 +02:00
|
|
|
|
<https://java.sun.com/products/jdk/javadoc/writingdoccomments/index.html>")
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
(defvar semantic-java-doc-with-name-tags nil
|
|
|
|
|
"Javadoc tags which have a name.")
|
|
|
|
|
|
|
|
|
|
(defvar semantic-java-doc-with-ref-tags nil
|
|
|
|
|
"Javadoc tags which have a reference.")
|
|
|
|
|
|
|
|
|
|
;; Optional javadoc tags by classes of semantic tag
|
|
|
|
|
;;
|
|
|
|
|
(defvar semantic-java-doc-extra-type-tags nil
|
|
|
|
|
"Optional tags used in class/interface documentation.
|
|
|
|
|
Ordered following Sun's Tag Convention.")
|
|
|
|
|
|
|
|
|
|
(defvar semantic-java-doc-extra-function-tags nil
|
|
|
|
|
"Optional tags used in method/constructor documentation.
|
|
|
|
|
Ordered following Sun's Tag Convention.")
|
|
|
|
|
|
|
|
|
|
(defvar semantic-java-doc-extra-variable-tags nil
|
|
|
|
|
"Optional tags used in field documentation.
|
|
|
|
|
Ordered following Sun's Tag Convention.")
|
|
|
|
|
|
|
|
|
|
;; All javadoc tags by classes of semantic tag
|
|
|
|
|
;;
|
|
|
|
|
(defvar semantic-java-doc-type-tags nil
|
|
|
|
|
"Tags allowed in class/interface documentation.
|
|
|
|
|
Ordered following Sun's Tag Convention.")
|
|
|
|
|
|
|
|
|
|
(defvar semantic-java-doc-function-tags nil
|
|
|
|
|
"Tags allowed in method/constructor documentation.
|
|
|
|
|
Ordered following Sun's Tag Convention.")
|
|
|
|
|
|
|
|
|
|
(defvar semantic-java-doc-variable-tags nil
|
|
|
|
|
"Tags allowed in field documentation.
|
|
|
|
|
Ordered following Sun's Tag Convention.")
|
|
|
|
|
|
|
|
|
|
;; Access to Javadoc elements
|
|
|
|
|
;;
|
|
|
|
|
(defmacro semantic-java-doc-tag (name)
|
|
|
|
|
"Return doc tag from NAME.
|
|
|
|
|
That is @NAME."
|
|
|
|
|
`(concat "@" ,name))
|
|
|
|
|
|
|
|
|
|
(defsubst semantic-java-doc-tag-name (tag)
|
|
|
|
|
"Return name of the doc TAG symbol.
|
Go back to grave quoting in source-code docstrings etc.
This reverts almost all my recent changes to use curved quotes
in docstrings and/or strings used for error diagnostics.
There are a few exceptions, e.g., Bahá’í proper names.
* admin/unidata/unidata-gen.el (unidata-gen-table):
* lisp/abbrev.el (expand-region-abbrevs):
* lisp/align.el (align-region):
* lisp/allout.el (allout-mode, allout-solicit-alternate-bullet)
(outlineify-sticky):
* lisp/apropos.el (apropos-library):
* lisp/bookmark.el (bookmark-default-annotation-text):
* lisp/button.el (button-category-symbol, button-put)
(make-text-button):
* lisp/calc/calc-aent.el (math-read-if, math-read-factor):
* lisp/calc/calc-embed.el (calc-do-embedded):
* lisp/calc/calc-ext.el (calc-user-function-list):
* lisp/calc/calc-graph.el (calc-graph-show-dumb):
* lisp/calc/calc-help.el (calc-describe-key)
(calc-describe-thing, calc-full-help):
* lisp/calc/calc-lang.el (calc-c-language)
(math-parse-fortran-vector-end, math-parse-tex-sum)
(math-parse-eqn-matrix, math-parse-eqn-prime)
(calc-yacas-language, calc-maxima-language, calc-giac-language)
(math-read-giac-subscr, math-read-math-subscr)
(math-read-big-rec, math-read-big-balance):
* lisp/calc/calc-misc.el (calc-help, report-calc-bug):
* lisp/calc/calc-mode.el (calc-auto-why, calc-save-modes)
(calc-auto-recompute):
* lisp/calc/calc-prog.el (calc-fix-token-name)
(calc-read-parse-table-part, calc-user-define-invocation)
(math-do-arg-check):
* lisp/calc/calc-store.el (calc-edit-variable):
* lisp/calc/calc-units.el (math-build-units-table-buffer):
* lisp/calc/calc-vec.el (math-read-brackets):
* lisp/calc/calc-yank.el (calc-edit-mode):
* lisp/calc/calc.el (calc, calc-do, calc-user-invocation):
* lisp/calendar/appt.el (appt-display-message):
* lisp/calendar/diary-lib.el (diary-check-diary-file)
(diary-mail-entries, diary-from-outlook):
* lisp/calendar/icalendar.el (icalendar-export-region)
(icalendar--convert-float-to-ical)
(icalendar--convert-date-to-ical)
(icalendar--convert-ical-to-diary)
(icalendar--convert-recurring-to-diary)
(icalendar--add-diary-entry):
* lisp/calendar/time-date.el (format-seconds):
* lisp/calendar/timeclock.el (timeclock-mode-line-display)
(timeclock-make-hours-explicit, timeclock-log-data):
* lisp/calendar/todo-mode.el (todo-prefix, todo-delete-category)
(todo-item-mark, todo-check-format)
(todo-insert-item--next-param, todo-edit-item--next-key)
(todo-mode):
* lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
* lisp/cedet/mode-local.el (describe-mode-local-overload)
(mode-local-print-binding, mode-local-describe-bindings-2):
* lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
* lisp/cedet/srecode/srt-mode.el (srecode-macro-help):
* lisp/cus-start.el (standard):
* lisp/cus-theme.el (describe-theme-1):
* lisp/custom.el (custom-add-dependencies, custom-check-theme)
(custom--sort-vars-1, load-theme):
* lisp/descr-text.el (describe-text-properties-1, describe-char):
* lisp/dired-x.el (dired-do-run-mail):
* lisp/dired.el (dired-log):
* lisp/emacs-lisp/advice.el (ad-read-advised-function)
(ad-read-advice-class, ad-read-advice-name, ad-enable-advice)
(ad-disable-advice, ad-remove-advice, ad-set-argument)
(ad-set-arguments, ad--defalias-fset, ad-activate)
(ad-deactivate):
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand)
(byte-compile-unfold-lambda, byte-optimize-form-code-walker)
(byte-optimize-while, byte-optimize-apply):
* lisp/emacs-lisp/byte-run.el (defun, defsubst):
* lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode)
(byte-compile-log-file, byte-compile-format-warn)
(byte-compile-nogroup-warn, byte-compile-arglist-warn)
(byte-compile-cl-warn)
(byte-compile-warn-about-unresolved-functions)
(byte-compile-file, byte-compile--declare-var)
(byte-compile-file-form-defmumble, byte-compile-form)
(byte-compile-normal-call, byte-compile-check-variable)
(byte-compile-variable-ref, byte-compile-variable-set)
(byte-compile-subr-wrong-args, byte-compile-setq-default)
(byte-compile-negation-optimizer)
(byte-compile-condition-case--old)
(byte-compile-condition-case--new, byte-compile-save-excursion)
(byte-compile-defvar, byte-compile-autoload)
(byte-compile-lambda-form)
(byte-compile-make-variable-buffer-local, display-call-tree)
(batch-byte-compile):
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv--analyze-use):
* lisp/emacs-lisp/chart.el (chart-space-usage):
* lisp/emacs-lisp/check-declare.el (check-declare-scan)
(check-declare-warn, check-declare-file)
(check-declare-directory):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine)
(checkdoc-message-text-engine):
* lisp/emacs-lisp/cl-extra.el (cl-parse-integer)
(cl--describe-class):
* lisp/emacs-lisp/cl-generic.el (cl-defgeneric)
(cl--generic-describe, cl-generic-generalizers):
* lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause, cl-tagbody)
(cl-symbol-macrolet):
* lisp/emacs-lisp/cl.el (cl-unload-function, flet):
* lisp/emacs-lisp/copyright.el (copyright)
(copyright-update-directory):
* lisp/emacs-lisp/edebug.el (edebug-read-list):
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
* lisp/emacs-lisp/eieio-core.el (eieio--slot-override)
(eieio-oref):
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor):
* lisp/emacs-lisp/eieio-speedbar.el:
(eieio-speedbar-child-make-tag-lines)
(eieio-speedbar-child-description):
* lisp/emacs-lisp/eieio.el (defclass, change-class):
* lisp/emacs-lisp/elint.el (elint-file, elint-get-top-forms)
(elint-init-form, elint-check-defalias-form)
(elint-check-let-form):
* lisp/emacs-lisp/ert.el (ert-get-test, ert-results-mode-menu)
(ert-results-pop-to-backtrace-for-test-at-point)
(ert-results-pop-to-messages-for-test-at-point)
(ert-results-pop-to-should-forms-for-test-at-point)
(ert-describe-test):
* lisp/emacs-lisp/find-func.el (find-function-search-for-symbol)
(find-function-library):
* lisp/emacs-lisp/generator.el (iter-yield):
* lisp/emacs-lisp/gv.el (gv-define-simple-setter):
* lisp/emacs-lisp/lisp-mnt.el (lm-verify):
* lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning):
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
* lisp/emacs-lisp/nadvice.el (advice--make-docstring)
(advice--make, define-advice):
* lisp/emacs-lisp/package-x.el (package-upload-file):
* lisp/emacs-lisp/package.el (package-version-join)
(package-disabled-p, package-activate-1, package-activate)
(package--download-one-archive)
(package--download-and-read-archives)
(package-compute-transaction, package-install-from-archive)
(package-install, package-install-selected-packages)
(package-delete, package-autoremove, describe-package-1)
(package-install-button-action, package-delete-button-action)
(package-menu-hide-package, package-menu--list-to-prompt)
(package-menu--perform-transaction)
(package-menu--find-and-notify-upgrades):
* lisp/emacs-lisp/pcase.el (pcase-exhaustive, pcase--u1):
* lisp/emacs-lisp/re-builder.el (reb-enter-subexp-mode):
* lisp/emacs-lisp/ring.el (ring-previous, ring-next):
* lisp/emacs-lisp/rx.el (rx-check, rx-anything)
(rx-check-any-string, rx-check-any, rx-check-not, rx-=)
(rx-repeat, rx-check-backref, rx-syntax, rx-check-category)
(rx-form):
* lisp/emacs-lisp/smie.el (smie-config-save):
* lisp/emacs-lisp/subr-x.el (internal--check-binding):
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag):
* lisp/emacs-lisp/testcover.el (testcover-1value):
* lisp/emacs-lisp/timer.el (timer-event-handler):
* lisp/emulation/viper-cmd.el (viper-toggle-parse-sexp-ignore-comments)
(viper-toggle-search-style, viper-kill-buffer)
(viper-brac-function):
* lisp/emulation/viper-macs.el (viper-record-kbd-macro):
* lisp/env.el (setenv):
* lisp/erc/erc-button.el (erc-nick-popup):
* lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login, english):
* lisp/eshell/em-dirs.el (eshell/cd):
* lisp/eshell/em-glob.el (eshell-glob-regexp)
(eshell-glob-entries):
* lisp/eshell/em-pred.el (eshell-parse-modifiers):
* lisp/eshell/esh-opt.el (eshell-show-usage):
* lisp/facemenu.el (facemenu-add-new-face)
(facemenu-add-new-color):
* lisp/faces.el (read-face-name, read-face-font, describe-face)
(x-resolve-font-name):
* lisp/files-x.el (modify-file-local-variable):
* lisp/files.el (locate-user-emacs-file, find-alternate-file)
(set-auto-mode, hack-one-local-variable--obsolete)
(dir-locals-set-directory-class, write-file, basic-save-buffer)
(delete-directory, copy-directory, recover-session)
(recover-session-finish, insert-directory)
(file-modes-char-to-who, file-modes-symbolic-to-number)
(move-file-to-trash):
* lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer):
* lisp/find-cmd.el (find-generic, find-to-string):
* lisp/finder.el (finder-commentary):
* lisp/font-lock.el (font-lock-fontify-buffer):
* lisp/format.el (format-write-file, format-find-file)
(format-insert-file):
* lisp/frame.el (get-device-terminal, select-frame-by-name):
* lisp/fringe.el (fringe--check-style):
* lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
* lisp/help-fns.el (help-fns--key-bindings)
(help-fns--compiler-macro, help-fns--parent-mode)
(help-fns--obsolete, help-fns--interactive-only)
(describe-function-1, describe-variable):
* lisp/help.el (describe-mode)
(describe-minor-mode-from-indicator):
* lisp/image.el (image-type):
* lisp/international/ccl.el (ccl-dump):
* lisp/international/fontset.el (x-must-resolve-font-name):
* lisp/international/mule-cmds.el (prefer-coding-system)
(select-safe-coding-system-interactively)
(select-safe-coding-system, activate-input-method)
(toggle-input-method, describe-current-input-method)
(describe-language-environment):
* lisp/international/mule-conf.el (code-offset):
* lisp/international/mule-diag.el (describe-character-set)
(list-input-methods-1):
* lisp/mail/feedmail.el (feedmail-run-the-queue):
* lisp/mouse.el (minor-mode-menu-from-indicator):
* lisp/mpc.el (mpc-playlist-rename):
* lisp/msb.el (msb--choose-menu):
* lisp/net/ange-ftp.el (ange-ftp-shell-command):
* lisp/net/imap.el (imap-interactive-login):
* lisp/net/mairix.el (mairix-widget-create-query):
* lisp/net/newst-backend.el (newsticker--sentinel-work):
* lisp/net/newst-treeview.el (newsticker--treeview-load):
* lisp/net/rlogin.el (rlogin):
* lisp/obsolete/iswitchb.el (iswitchb-possible-new-buffer):
* lisp/obsolete/otodo-mode.el (todo-more-important-p):
* lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
* lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
* lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
* lisp/org/ob-core.el (org-babel-goto-named-src-block)
(org-babel-goto-named-result):
* lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
* lisp/org/ob-ref.el (org-babel-ref-resolve):
* lisp/org/org-agenda.el (org-agenda-prepare):
* lisp/org/org-clock.el (org-clock-notify-once-if-expired)
(org-clock-resolve):
* lisp/org/org-ctags.el (org-ctags-ask-rebuild-tags-file-then-find-tag):
* lisp/org/org-feed.el (org-feed-parse-atom-entry):
* lisp/org/org-habit.el (org-habit-parse-todo):
* lisp/org/org-mouse.el (org-mouse-popup-global-menu)
(org-mouse-context-menu):
* lisp/org/org-table.el (org-table-edit-formulas):
* lisp/org/ox.el (org-export-async-start):
* lisp/proced.el (proced-log):
* lisp/progmodes/ada-mode.el (ada-get-indent-case)
(ada-check-matching-start, ada-goto-matching-start):
* lisp/progmodes/ada-prj.el (ada-prj-display-page):
* lisp/progmodes/ada-xref.el (ada-find-executable):
* lisp/progmodes/ebrowse.el (ebrowse-tags-apropos):
* lisp/progmodes/etags.el (etags-tags-apropos-additional):
* lisp/progmodes/flymake.el (flymake-parse-err-lines)
(flymake-start-syntax-check-process):
* lisp/progmodes/python.el (python-shell-get-process-or-error)
(python-define-auxiliary-skeleton):
* lisp/progmodes/sql.el (sql-comint):
* lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
* lisp/progmodes/vhdl-mode.el (vhdl-widget-directory-validate):
* lisp/recentf.el (recentf-open-files):
* lisp/replace.el (query-replace-read-from)
(occur-after-change-function, occur-1):
* lisp/scroll-bar.el (scroll-bar-columns):
* lisp/server.el (server-get-auth-key):
* lisp/simple.el (execute-extended-command)
(undo-outer-limit-truncate, list-processes--refresh)
(compose-mail, set-variable, choose-completion-string)
(define-alternatives):
* lisp/startup.el (site-run-file, tty-handle-args, command-line)
(command-line-1):
* lisp/subr.el (noreturn, define-error, add-to-list)
(read-char-choice, version-to-list):
* lisp/term/common-win.el (x-handle-xrm-switch)
(x-handle-name-switch, x-handle-args):
* lisp/term/x-win.el (x-handle-parent-id, x-handle-smid):
* lisp/textmodes/reftex-ref.el (reftex-label):
* lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
* lisp/textmodes/two-column.el (2C-split):
* lisp/tutorial.el (tutorial--describe-nonstandard-key)
(tutorial--find-changed-keys):
* lisp/type-break.el (type-break-noninteractive-query):
* lisp/wdired.el (wdired-do-renames, wdired-do-symlink-changes)
(wdired-do-perm-changes):
* lisp/whitespace.el (whitespace-report-region):
Prefer grave quoting in source-code strings used to generate help
and diagnostics.
* lisp/faces.el (face-documentation):
No need to convert quotes, since the result is a docstring.
* lisp/info.el (Info-virtual-index-find-node)
(Info-virtual-index, info-apropos):
Simplify by generating only curved quotes, since info files are
typically that ways nowadays anyway.
* lisp/international/mule-diag.el (list-input-methods):
Don’t assume text quoting style is curved.
* lisp/org/org-bibtex.el (org-bibtex-fields):
Revert my recent changes, going back to the old quoting style.
2015-09-07 08:41:44 -07:00
|
|
|
|
That is TAG `symbol-name' without the leading `@'."
|
2009-09-05 20:47:41 +00:00
|
|
|
|
(substring (symbol-name tag) 1))
|
|
|
|
|
|
|
|
|
|
(defun semantic-java-doc-keyword-before-p (k1 k2)
|
|
|
|
|
"Return non-nil if javadoc keyword K1 is before K2."
|
|
|
|
|
(let* ((t1 (semantic-java-doc-tag k1))
|
|
|
|
|
(t2 (semantic-java-doc-tag k2))
|
|
|
|
|
(seq1 (and (semantic-lex-keyword-p t1)
|
|
|
|
|
(plist-get (semantic-lex-keyword-get t1 'javadoc)
|
|
|
|
|
'seq)))
|
|
|
|
|
(seq2 (and (semantic-lex-keyword-p t2)
|
|
|
|
|
(plist-get (semantic-lex-keyword-get t2 'javadoc)
|
|
|
|
|
'seq))))
|
|
|
|
|
(if (and (numberp seq1) (numberp seq2))
|
|
|
|
|
(<= seq1 seq2)
|
|
|
|
|
;; Unknown tags (probably custom ones) are always after official
|
|
|
|
|
;; ones and are not themselves ordered.
|
|
|
|
|
(or (numberp seq1)
|
|
|
|
|
(and (not seq1) (not seq2))))))
|
|
|
|
|
|
|
|
|
|
(defun semantic-java-doc-keywords-map (fun &optional property)
|
|
|
|
|
"Run function FUN for each javadoc keyword.
|
lisp/*.el, src/*.c: Fix typos in docstrings
* lisp/apropos.el (apropos-do-all):
* lisp/auth-source-pass.el (auth-source-pass--select-from-entries):
* lisp/auth-source.el (auth-source-user-or-password):
* lisp/calc/calc-forms.el (math-tzone-names):
* lisp/calendar/diary-lib.el (diary-face-attrs)
(diary-mark-entries-1):
* lisp/cedet/cedet-files.el (cedet-files-list-recursively):
* lisp/cedet/ede.el (ede-constructing, ede-deep-rescan):
* lisp/cedet/ede/cpp-root.el (ede-cpp-root-header-file-p):
* lisp/cedet/ede/proj.el (ede-proj-target-makefile):
* lisp/cedet/inversion.el (inversion-check-version)
(inversion-test):
* lisp/cedet/mode-local.el (mode-local-map-file-buffers):
* lisp/cedet/semantic/complete.el (semantic-displayer-ghost):
* lisp/cedet/semantic/db-find.el (semanticdb-find-translate-path-default):
* lisp/cedet/semantic/db.el (semanticdb-table)
(semanticdb-search-system-databases):
* lisp/cedet/semantic/imenu.el (semantic-imenu-index-directory):
* lisp/cedet/semantic/java.el (semantic-java-doc-keywords-map):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-use-headers-flag):
* lisp/cedet/semantic/lex.el (semantic-lex-make-keyword-table)
(semantic-lex-make-type-table, semantic-lex-debug-analyzers):
* lisp/cedet/semantic/tag-ls.el (semantic-tag-abstract-p)
(semantic-tag-leaf-p, semantic-tag-static-p)
(semantic-tag-prototype-p):
* lisp/dnd.el (dnd-open-remote-file-function, dnd-open-local-file):
* lisp/emacs-lisp/eieio-opt.el (eieio-build-class-alist)
(eieio-read-class, eieio-read-subclass):
* lisp/emacs-lisp/generator.el (cps--replace-variable-references)
(cps--handle-loop-for):
* lisp/erc/erc-dcc.el (erc-dcc-list, erc-dcc-member, erc-dcc-server)
(erc-dcc-auto-mask-p, erc-dcc-get-file, erc-dcc-chat-accept):
* lisp/eshell/em-pred.el (eshell-pred-file-type):
* lisp/faces.el (defined-colors-with-face-attributes):
* lisp/font-core.el (font-lock-mode):
* lisp/frame.el (frame-restack):
* lisp/net/shr.el (shr-image-animate):
* lisp/org/org-agenda.el (org-agenda-change-all-lines)
(org-agenda-today-p):
* lisp/org/org-id.el (org-id-get):
* lisp/org/org.el (org-highlight-latex-and-related)
(org--valid-property-p):
* lisp/org/ox-beamer.el (org-beamer--get-label):
* lisp/org/ox-latex.el (org-latex--caption-above-p):
* lisp/org/ox-odt.el (org-odt--copy-image-file)
(org-odt--copy-formula-file):
* lisp/org/ox.el (org-export-with-timestamps):
* lisp/progmodes/verilog-mode.el (verilog-indent-declaration-macros):
* lisp/ses.el (ses-file-format-extend-parameter-list):
* lisp/term.el (ansi-term):
* lisp/textmodes/bibtex.el (bibtex-no-opt-remove-re)
(bibtex-beginning-of-first-entry, bibtex-autokey-get-title)
(bibtex-read-key, bibtex-initialize):
* lisp/textmodes/flyspell.el (flyspell-word):
* lisp/view.el (view-mode-exit):
* src/composite.c:
* src/floatfns.c (Fisnan): Fix typos in docstrings.
2019-09-19 04:32:25 +02:00
|
|
|
|
Return the list of FUN results. If optional PROPERTY is non-nil only
|
Fix typos in CEDET docstrings.
* cedet/semantic/analyze.el (semantic-analyze-push-error)
(semantic-analyze-context, semantic-analyze-context-assignment)
(semantic-analyze-find-tag-sequence, semantic-analyze-find-tag):
* cedet/semantic/java.el (java-mode, semantic-tag-include-filename)
(semantic-java-doc-keywords-map):
* cedet/semantic/bovine/c.el (c-mode, semantic-c-member-of-autocast)
(semantic-lex-c-nested-namespace-ignore-second, semantic-parse-region)
(semantic-c-parse-lexical-token, semantic-c-debug-mode-init-pch)
(semantic-c-classname, semantic-format-tag-uml-prototype)
(semantic-c-dereference-namespace, semantic-analyze-type-constants):
* cedet/semantic/bovine/el.el (semantic-elisp-form-to-doc-string)
(semantic-emacs-lisp-obsoleted-doc, semantic-up-context)
(semantic-get-local-variables, semantic-end-of-command)
(semantic-beginning-of-command, semantic-ctxt-current-class-list)
(lisp-mode):
* cedet/semantic/bovine/make.el (makefile-mode):
* cedet/semantic/wisent/python.el (wisent-python-string-re)
(wisent-python-implicit-line-joining-p, wisent-python-forward-string)
(wisent-python-lex-beginning-of-line, wisent-python-lex-end-of-line)
(semantic-lex, semantic-get-local-variables, python-mode):
* cedet/semantic/wisent/python-wy.el (wisent-python-wy--keyword-table):
* cedet/srecode/extract.el (srecode-extract-state-set)
(srecode-extract-method): Fix typos in docstrings.
2010-01-12 05:51:26 +01:00
|
|
|
|
call FUN for javadoc keywords which have a value for PROPERTY. FUN
|
2009-09-05 20:47:41 +00:00
|
|
|
|
receives two arguments: the javadoc keyword and its associated
|
Fix typos in CEDET docstrings.
* cedet/semantic/analyze.el (semantic-analyze-push-error)
(semantic-analyze-context, semantic-analyze-context-assignment)
(semantic-analyze-find-tag-sequence, semantic-analyze-find-tag):
* cedet/semantic/java.el (java-mode, semantic-tag-include-filename)
(semantic-java-doc-keywords-map):
* cedet/semantic/bovine/c.el (c-mode, semantic-c-member-of-autocast)
(semantic-lex-c-nested-namespace-ignore-second, semantic-parse-region)
(semantic-c-parse-lexical-token, semantic-c-debug-mode-init-pch)
(semantic-c-classname, semantic-format-tag-uml-prototype)
(semantic-c-dereference-namespace, semantic-analyze-type-constants):
* cedet/semantic/bovine/el.el (semantic-elisp-form-to-doc-string)
(semantic-emacs-lisp-obsoleted-doc, semantic-up-context)
(semantic-get-local-variables, semantic-end-of-command)
(semantic-beginning-of-command, semantic-ctxt-current-class-list)
(lisp-mode):
* cedet/semantic/bovine/make.el (makefile-mode):
* cedet/semantic/wisent/python.el (wisent-python-string-re)
(wisent-python-implicit-line-joining-p, wisent-python-forward-string)
(wisent-python-lex-beginning-of-line, wisent-python-lex-end-of-line)
(semantic-lex, semantic-get-local-variables, python-mode):
* cedet/semantic/wisent/python-wy.el (wisent-python-wy--keyword-table):
* cedet/srecode/extract.el (srecode-extract-state-set)
(srecode-extract-method): Fix typos in docstrings.
2010-01-12 05:51:26 +01:00
|
|
|
|
'javadoc property list. It can return any value. All nil values are
|
2009-09-05 20:47:41 +00:00
|
|
|
|
removed from the result list."
|
|
|
|
|
(delq nil
|
|
|
|
|
(mapcar
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k)
|
|
|
|
|
(let* ((tag (semantic-java-doc-tag k))
|
|
|
|
|
(plist (semantic-lex-keyword-get tag 'javadoc)))
|
|
|
|
|
(if (or (not property) (plist-get plist property))
|
|
|
|
|
(funcall fun k plist))))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
semantic-java-doc-line-tags)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Mode setup
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
(defun semantic-java-doc-setup ()
|
|
|
|
|
"Lazy initialization of javadoc elements."
|
|
|
|
|
(or semantic-java-doc-line-tags
|
|
|
|
|
(setq semantic-java-doc-line-tags
|
|
|
|
|
(sort (mapcar #'semantic-java-doc-tag-name
|
|
|
|
|
(semantic-lex-keywords 'javadoc))
|
|
|
|
|
#'semantic-java-doc-keyword-before-p)))
|
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-with-name-tags
|
|
|
|
|
(setq semantic-java-doc-with-name-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k _p) k)
|
2009-09-05 20:47:41 +00:00
|
|
|
|
'with-name)))
|
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-with-ref-tags
|
|
|
|
|
(setq semantic-java-doc-with-ref-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k _p) k)
|
2009-09-05 20:47:41 +00:00
|
|
|
|
'with-ref)))
|
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-extra-type-tags
|
|
|
|
|
(setq semantic-java-doc-extra-type-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k p)
|
|
|
|
|
(if (memq 'type (plist-get p 'usage))
|
|
|
|
|
k))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
'opt)))
|
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-extra-function-tags
|
|
|
|
|
(setq semantic-java-doc-extra-function-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k p)
|
|
|
|
|
(if (memq 'function (plist-get p 'usage))
|
|
|
|
|
k))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
'opt)))
|
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-extra-variable-tags
|
|
|
|
|
(setq semantic-java-doc-extra-variable-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k p)
|
|
|
|
|
(if (memq 'variable (plist-get p 'usage))
|
|
|
|
|
k))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
'opt)))
|
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-type-tags
|
|
|
|
|
(setq semantic-java-doc-type-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k p)
|
|
|
|
|
(if (memq 'type (plist-get p 'usage))
|
|
|
|
|
k)))))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-function-tags
|
|
|
|
|
(setq semantic-java-doc-function-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k p)
|
|
|
|
|
(if (memq 'function (plist-get p 'usage))
|
|
|
|
|
k)))))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
(or semantic-java-doc-variable-tags
|
|
|
|
|
(setq semantic-java-doc-variable-tags
|
|
|
|
|
(semantic-java-doc-keywords-map
|
2021-03-30 23:44:48 +02:00
|
|
|
|
(lambda (k p)
|
|
|
|
|
(if (memq 'variable (plist-get p 'usage))
|
|
|
|
|
k)))))
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
2009-09-06 02:18:37 +00:00
|
|
|
|
(provide 'semantic/java)
|
2009-09-05 20:47:41 +00:00
|
|
|
|
|
2013-05-13 22:10:23 -04:00
|
|
|
|
;; Local variables:
|
|
|
|
|
;; generated-autoload-load-name: "semantic/java"
|
|
|
|
|
;; End:
|
|
|
|
|
|
2009-09-06 02:18:37 +00:00
|
|
|
|
;;; semantic/java.el ends here
|