Mercurial > emacs
view lisp/international/iso-ascii.el @ 110523:a5ad4f188e19
Synch Semantic to CEDET 1.0.
Move CEDET ChangeLog entries to new file lisp/cedet/ChangeLog.
* semantic.el (semantic-version): Update to 2.0.
(semantic-mode-map): Add "," and "m" bindings.
(navigate-menu): Update.
* semantic/symref.el (semantic-symref-calculate-rootdir):
New function.
(semantic-symref-detect-symref-tool): Use it.
* semantic/symref/grep.el (semantic-symref-grep-shell): New var.
(semantic-symref-perform-search): Use it. Calculate root dir with
semantic-symref-calculate-rootdir.
(semantic-symref-derive-find-filepatterns): Improve error message.
* semantic/symref/list.el
(semantic-symref-results-mode-map): New bindings.
(semantic-symref-auto-expand-results): New option.
(semantic-symref-results-dump): Obey auto-expand.
(semantic-symref-list-expand-all, semantic-symref-regexp)
(semantic-symref-list-contract-all)
(semantic-symref-list-map-open-hits)
(semantic-symref-list-update-open-hits)
(semantic-symref-list-create-macro-on-open-hit)
(semantic-symref-list-call-macro-on-open-hits): New functions.
(semantic-symref-list-menu-entries)
(semantic-symref-list-menu): New vars.
(semantic-symref-list-map-open-hits): Move cursor to beginning of
match before calling the mapped function.
* semantic/doc.el
(semantic-documentation-comment-preceeding-tag): Do nothing if the
mode doesn't provide comment-start-skip.
* semantic/scope.el
(semantic-analyze-scope-nested-tags-default): Strip duplicates.
(semantic-analyze-scoped-inherited-tag-map): Take the tag we are
looking for as part of the scoped tags list.
* semantic/html.el (semantic-default-html-setup): Add
senator-step-at-tag-classes.
* semantic/decorate/include.el
(semantic-decoration-on-unknown-includes): Change light bgcolor.
(semantic-decoration-on-includes-highlight-default): Check that
the include tag has a postion.
* semantic/complete.el (semantic-collector-local-members):
(semantic-complete-read-tag-local-members)
(semantic-complete-jump-local-members): New class and functions.
(semantic-complete-self-insert): Save excursion before completing.
* semantic/analyze/complete.el
(semantic-analyze-possible-completions-default): If no completions
are found, return the raw by-name-only completion list. Add FLAGS
arguments. Add support for 'no-tc (type constraint) and
'no-unique, or no stripping duplicates.
(semantic-analyze-possible-completions-default): Add FLAGS arg.
* semantic/util-modes.el
(semantic-stickyfunc-show-only-functions-p): New option.
(semantic-stickyfunc-fetch-stickyline): Don't show stickytext for
the very first line in a buffer.
* semantic/util.el (semantic-hack-search)
(semantic-recursive-find-nonterminal-by-name)
(semantic-current-tag-interactive): Deleted.
(semantic-describe-buffer): Fix expand-nonterminal. Add
lex-syntax-mods, type relation separator char, and command
separation char.
(semantic-sanity-check): Only message if called interactively.
* semantic/tag.el (semantic-tag-deep-copy-one-tag): Copy the
:filename property and the tag position.
* semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
Add recursion limit.
* semantic/imenu.el (semantic-imenu-bucketize-type-members):
Make this buffer local, not the obsoleted variable.
* semantic/idle.el: Add breadcrumbs support.
(semantic-idle-summary-current-symbol-info-default)
(semantic-idle-tag-highlight)
(semantic-idle-completion-list-default): Use
semanticdb-without-unloaded-file-searches for speed, and to
conform to the controls that specify if the idle timer is supposed
to be parsing unparsed includes.
(semantic-idle-symbol-highlight-face)
(semantic-idle-symbol-maybe-highlight): Rename from *-summary-*.
Callers changed.
(semantic-idle-work-parse-neighboring-files-flag): Default to nil.
(semantic-idle-work-update-headers-flag): New var.
(semantic-idle-work-for-one-buffer): Use it.
(semantic-idle-local-symbol-highlight): Rename from
semantic-idle-tag-highlight.
(semantic-idle-truncate-long-summaries): New option.
* semantic/ia.el (semantic-ia-cache)
(semantic-ia-get-completions): Deleted. Callers changed.
(semantic-ia-show-variants): New command.
(semantic-ia-show-doc): If doc is empty, don't make a temp buffer.
(semantic-ia-show-summary): If there isn't anything to show, say so.
* semantic/grammar.el (semantic-grammar-create-package):
Save the buffer even in batch mode.
* semantic/fw.el
(semanticdb-without-unloaded-file-searches): New macro.
* semantic/dep.el (semantic-dependency-find-file-on-path):
Fix case dereferencing ede-object when it is a list.
* semantic/db-typecache.el (semanticdb-expand-nested-tag)
(semanticdb-typecache-faux-namespace): New functions.
(semanticdb-typecache-file-tags)
(semanticdb-typecache-merge-streams): Use them.
(semanticdb-typecache-file-tags): When deriving tags from a file,
give the mode a chance to monkey with the tag copy.
(semanticdb-typecache-find-default): Wrap find in save-excursion.
(semanticdb-typecache-find-by-name-helper): Merge found names down.
* semantic/db-global.el
(semanticdb-enable-gnu-global-in-buffer): Don't show messages if
GNU Global is not available and we don't want to throw an error.
* semantic/db-find.el (semanticdb-find-result-nth-in-buffer):
When trying to normalize the tag to a buffer, don't error if
set-buffer method doesn't exist.
* semantic/db-file.el (semanticdb-save-db): Simplify msg.
* semantic/db.el (semanticdb-refresh-table): If forcing a
refresh on a file not in a buffer, use semantic-find-file-noselect
and delete the buffer after use.
(semanticdb-current-database-list): When calculating root via
hooks, force it through true-filename and skip the list of
possible roots.
* semantic/ctxt.el (semantic-ctxt-imported-packages): New.
* semantic/analyze/debug.el
(semantic-analyzer-debug-insert-tag): Reset standard output to
current buffer.
(semantic-analyzer-debug-global-symbol)
(semantic-analyzer-debug-missing-innertype): Change "prefix" to
"symbol" in messages.
* semantic/analyze/refs.el: (semantic-analyze-refs-impl)
(semantic-analyze-refs-proto): When calculating value, make sure
the found tag is 'similar' to the originating tag.
(semantic--analyze-refs-find-tags-with-parent): Attempt to
identify matches via imported symbols of parents.
(semantic--analyze-refs-full-lookup-with-parents): Do a deep
search during the brute search.
* semantic/analyze.el
(semantic-analyze-find-tag-sequence-default): Be robust to
calculated scopes being nil.
* semantic/bovine/c.el (semantic-c-describe-environment): Add
project macro symbol array.
(semantic-c-parse-lexical-token): Add recursion limit.
(semantic-ctxt-imported-packages, semanticdb-expand-nested-tag):
New overrides.
(semantic-expand-c-tag-namelist): Split a full type from a typedef
out to its own tag.
(semantic-expand-c-tag-namelist): Do not split out a typedef'd
inline type if it is an anonymous type.
(semantic-c-reconstitute-token): Use the optional initializers as
a clue that some function is probably a constructor. When
defining the type of these constructors, split the parent name,
and use only the class part, if applicable.
* semantic/bovine/c-by.el:
* semantic/wisent/python-wy.el: Regenerate.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 18 Sep 2010 22:49:54 -0400 |
parents | 1d1d5d9bd884 |
children | 731a16c5bb20 376148b31b5e |
line wrap: on
line source
;;; iso-ascii.el --- set up char tables for ISO 8859/1 on ASCII terminals ;; Copyright (C) 1987, 1995, 1998, 2001, 2002, 2003, 2004, ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. ;; Author: Howard Gayle ;; Maintainer: FSF ;; Keywords: i18n ;; 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 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. ;;; Commentary: ;; Written by Howard Gayle. See display-table.el for details. ;; This code sets up to display ISO 8859/1 characters on plain ;; ASCII terminals. The display strings for the characters are ;; more-or-less based on TeX. ;;; Code: (require 'disp-table) (defgroup iso-ascii nil "Set up char tables for ISO 8859/1 on ASCII terminals." :prefix "iso-ascii-" :group 'i18n) (defcustom iso-ascii-convenient nil "*Non-nil means `iso-ascii' should aim for convenience, not precision." :type 'boolean :group 'iso-ascii) (defvar iso-ascii-display-table (make-display-table) "Display table used for ISO-ASCII mode.") (defvar iso-ascii-standard-display-table nil "Display table used when not in ISO-ASCII mode.") ;; Don't alter iso-ascii-standard-display-table if this file is loaded again, ;; or even by using C-M-x on any of the expressions. (unless iso-ascii-standard-display-table (setq iso-ascii-standard-display-table standard-display-table)) (defun iso-ascii-display (code string &optional convenient-string) (if iso-ascii-convenient (setq string (or convenient-string string)) (setq string (concat "{" string "}"))) ;; unibyte (aset iso-ascii-display-table code string) ;; multibyte (aset iso-ascii-display-table (make-char 'latin-iso8859-1 (- code 128)) string)) (iso-ascii-display 160 "_" " ") ; NBSP (no-break space) (iso-ascii-display 161 "!") ; inverted exclamation mark (iso-ascii-display 162 "c") ; cent sign (iso-ascii-display 163 "GBP") ; pound sign (iso-ascii-display 164 "$") ; general currency sign (iso-ascii-display 165 "JPY") ; yen sign (iso-ascii-display 166 "|") ; broken vertical line (iso-ascii-display 167 "S" "(S)") ; section sign (iso-ascii-display 168 "\"") ; diaeresis (iso-ascii-display 169 "C" "(C)") ; copyright sign (iso-ascii-display 170 "_a") ; ordinal indicator, feminine (iso-ascii-display 171 "<<") ; left angle quotation mark (iso-ascii-display 172 "~") ; not sign (iso-ascii-display 173 "-") ; soft hyphen (iso-ascii-display 174 "R" "(R)") ; registered sign (iso-ascii-display 175 "=") ; macron (iso-ascii-display 176 "o") ; degree sign (iso-ascii-display 177 "+-") ; plus or minus sign (iso-ascii-display 178 "2") ; superscript two (iso-ascii-display 179 "3") ; superscript three (iso-ascii-display 180 "'") ; acute accent (iso-ascii-display 181 "u") ; micro sign (iso-ascii-display 182 "P" "(P)") ; pilcrow (iso-ascii-display 183 ".") ; middle dot (iso-ascii-display 184 ",") ; cedilla (iso-ascii-display 185 "1") ; superscript one (iso-ascii-display 186 "_o") ; ordinal indicator, masculine (iso-ascii-display 187 ">>") ; right angle quotation mark (iso-ascii-display 188 "1/4") ; fraction one-quarter (iso-ascii-display 189 "1/2") ; fraction one-half (iso-ascii-display 190 "3/4") ; fraction three-quarters (iso-ascii-display 191 "?") ; inverted question mark (iso-ascii-display 192 "`A") ; A with grave accent (iso-ascii-display 193 "'A") ; A with acute accent (iso-ascii-display 194 "^A") ; A with circumflex accent (iso-ascii-display 195 "~A") ; A with tilde (iso-ascii-display 196 "\"A") ; A with diaeresis or umlaut mark (iso-ascii-display 197 "AA") ; A with ring (iso-ascii-display 198 "AE") ; AE diphthong (iso-ascii-display 199 ",C") ; C with cedilla (iso-ascii-display 200 "`E") ; E with grave accent (iso-ascii-display 201 "'E") ; E with acute accent (iso-ascii-display 202 "^E") ; E with circumflex accent (iso-ascii-display 203 "\"E") ; E with diaeresis or umlaut mark (iso-ascii-display 204 "`I") ; I with grave accent (iso-ascii-display 205 "'I") ; I with acute accent (iso-ascii-display 206 "^I") ; I with circumflex accent (iso-ascii-display 207 "\"I") ; I with diaeresis or umlaut mark (iso-ascii-display 208 "-D") ; D with stroke, Icelandic eth (iso-ascii-display 209 "~N") ; N with tilde (iso-ascii-display 210 "`O") ; O with grave accent (iso-ascii-display 211 "'O") ; O with acute accent (iso-ascii-display 212 "^O") ; O with circumflex accent (iso-ascii-display 213 "~O") ; O with tilde (iso-ascii-display 214 "\"O") ; O with diaeresis or umlaut mark (iso-ascii-display 215 "x") ; multiplication sign (iso-ascii-display 216 "/O") ; O with slash (iso-ascii-display 217 "`U") ; U with grave accent (iso-ascii-display 218 "'U") ; U with acute accent (iso-ascii-display 219 "^U") ; U with circumflex accent (iso-ascii-display 220 "\"U") ; U with diaeresis or umlaut mark (iso-ascii-display 221 "'Y") ; Y with acute accent (iso-ascii-display 222 "TH") ; capital thorn, Icelandic (iso-ascii-display 223 "ss") ; small sharp s, German (iso-ascii-display 224 "`a") ; a with grave accent (iso-ascii-display 225 "'a") ; a with acute accent (iso-ascii-display 226 "^a") ; a with circumflex accent (iso-ascii-display 227 "~a") ; a with tilde (iso-ascii-display 228 "\"a") ; a with diaeresis or umlaut mark (iso-ascii-display 229 "aa") ; a with ring (iso-ascii-display 230 "ae") ; ae diphthong (iso-ascii-display 231 ",c") ; c with cedilla (iso-ascii-display 232 "`e") ; e with grave accent (iso-ascii-display 233 "'e") ; e with acute accent (iso-ascii-display 234 "^e") ; e with circumflex accent (iso-ascii-display 235 "\"e") ; e with diaeresis or umlaut mark (iso-ascii-display 236 "`i") ; i with grave accent (iso-ascii-display 237 "'i") ; i with acute accent (iso-ascii-display 238 "^i") ; i with circumflex accent (iso-ascii-display 239 "\"i") ; i with diaeresis or umlaut mark (iso-ascii-display 240 "-d") ; d with stroke, Icelandic eth (iso-ascii-display 241 "~n") ; n with tilde (iso-ascii-display 242 "`o") ; o with grave accent (iso-ascii-display 243 "'o") ; o with acute accent (iso-ascii-display 244 "^o") ; o with circumflex accent (iso-ascii-display 245 "~o") ; o with tilde (iso-ascii-display 246 "\"o") ; o with diaeresis or umlaut mark (iso-ascii-display 247 "/") ; division sign (iso-ascii-display 248 "/o") ; o with slash (iso-ascii-display 249 "`u") ; u with grave accent (iso-ascii-display 250 "'u") ; u with acute accent (iso-ascii-display 251 "^u") ; u with circumflex accent (iso-ascii-display 252 "\"u") ; u with diaeresis or umlaut mark (iso-ascii-display 253 "'y") ; y with acute accent (iso-ascii-display 254 "th") ; small thorn, Icelandic (iso-ascii-display 255 "\"y") ; small y with diaeresis or umlaut mark (defun iso-ascii-mode (arg) "Toggle ISO-ASCII mode." (interactive "P") (unless arg (setq arg (eq standard-display-table iso-ascii-standard-display-table))) (setq standard-display-table (if arg iso-ascii-display-table iso-ascii-standard-display-table))) (provide 'iso-ascii) ;; arch-tag: 687edf0d-f792-471e-b50e-be805938359a ;;; iso-ascii.el ends here