Mercurial > emacs
view lisp/international/iso-insert.el @ 47641:172cf7391545
(calc-bug-address, calc-scan-for-dels, calc-stack)
(calc-stack-top, calc-always-load-extensions)
(calc-line-numbering, calc-line-breaking, calc-display-just)
(calc-display-origin, calc-number-radix, calc-leading-zeros)
(calc-group-digits, calc-group-char, calc-point-char)
(calc-frac-format, calc-prefer-frac, calc-hms-format)
(calc-date-format, calc-float-format, calc-complex-format)
(calc-full-float-format, calc-complex-mode, calc-infinite-mode)
(calc-display-strings, calc-matrix-just, calc-break-vectors)
(calc-full-vectors, calc-full-trail-vectors, calc-vector-commas)
(calc-vector-brackets, calc-matrix-brackets, calc-language)
(calc-language-option, calc-function-open, calc-function-open)
(calc-function-close, calc-language-output-filter)
(calc-language-input-filter, calc-radix-formatter)
(calc-left-label, calc-right-label, calc-word-size)
(calc-previous-modulo, calc-simplify-mode, calc-auto-recompute)
(calc-display-raw, calc-internal-prec, calc-inverse-flag)
(calc-hyperbolic-flag, calc-keep-args-flag, calc-angle-mode)
(calc-algebraic-mode, calc-incomplete-algebraic-mode)
(calc-symbolic-mode, calc-matrix-mode, calc-shift-prefix)
(calc-window-height, calc-display-trail, calc-show-selections)
(calc-use-selections, calc-assoc-selections)
(calc-display-working-message, calc-auto-why, calc-timing)
(calc-display-sci-high, calc-display-sci-low, calc-other-modes)
(calc-other-modes, calc-Y-help-msgs, calc-loaded-settings-file):
Make into real defvars.
(calc-mode-var-list): Delete.
(calc-mode-save-mode, calc-standard-date-formats)
(calc-autorange-units, calc-was-keypad-mode, calc-full-mode)
(calc-user-parse-tables, calc-gnuplot-default-device)
(calc-gnuplot-default-output, calc-gnuplot-print-device)
(calc-gnuplot-print-output, calc-gnuplot-geometry)
(calc-graph-default-resolution, calc-graph-default-resolution-3d)
(calc-invocation-macro, calc-show-banner): Make into defvars,
taken from `calc-mode-var-list'.
(calc-emacs-type-epoch, calc-emacs-type-19)
(calc-emacs-type-lucid, calc-emacs-type-gnu19): Make into defvars.
(calc-version, calc-version-date, calc-trail-pointer)
(calc-trail-overlay, calc-undo-list, calc-redo-list)
(calc-main-buffer, calc-trail-buffer, calc-why, calc-next-why)
(calc-inverse-flag, calc-hyperbolic-flag, calc-keep-args-flag)
(calc-last-kill, calc-previous-alg-entry, calc-dollar-values)
(calc-dollar-used, calc-hashes-used, calc-quick-prev-results)
(calc-said-hello, calc-executing-macro, calc-any-selections)
(calc-help-phase, calc-full-help-flag, calc-refresh-count)
(calc-display-dirty, calc-prepared-composition)
(calc-selection-cache-default-entry, calc-embedded-info)
(calc-embedded-active, calc-standalone-flag, var-EvalRules)
(math-eval-rules-cache-tag, math-radix-explicit-format)
(math-expr-function-mapping, math-expr-variable-mapping)
(math-read-expr-quotes, math-working-step, math-working-step-2)
(var-i, var-pi, var-e, var-phi, var-gamma, var-Modes): Make into
defvars, from toplevel setq.
(calc-mode-map): Set up keymap in more modern fashion.
(calc-dispatch-map): Ditto.
(calc-command-flags, calc-final-point-line)
(calc-final-point-column): Defvar.
(calc-do): Use `save-current-buffer' instead of `save-excursion'.
(sel-mode): Defvar.
(calc-any-evaltos): Ditto.
(calc-buffer, calc-prev-char, calc-prev-prev-char)
(calc-digit-value): Ditto.
(math-eval-rules-cache, math-eval-rules-cache-other): Ditto.
(math-sub-bignum): Bind `diff'.
(calc-selection-cache-entry): Defvar.
(calc-count-lines): Reference `pos' instead of `newpos'.
author | Colin Walters <walters@gnu.org> |
---|---|
date | Fri, 27 Sep 2002 04:55:03 +0000 |
parents | ac7e83d83ab4 |
children | 695cf19ef79e |
line wrap: on
line source
;;; iso-insert.el --- insert functions for ISO 8859/1 -*- coding: iso-8859-1;-*- ;; Copyright (C) 1987, 1994, 2001 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 2, 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; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. ;;; Commentary: ;; Provides keys for inserting ISO Latin-1 characters. They use the ;; prefix key C-x 8. Type C-x 8 C-h for a list. ;;; Code: (defun insert-no-break-space () (interactive "*") (insert ?\ ) ) (defun insert-inverted-exclamation-mark () (interactive "*") (insert ?\¡) ) (defun insert-cent-sign () (interactive "*") (insert ?\¢) ) (defun insert-pound-sign () (interactive "*") (insert ?\£) ) (defun insert-general-currency-sign () (interactive "*") (insert ?\¤) ) (defun insert-yen-sign () (interactive "*") (insert ?\¥) ) (defun insert-broken-vertical-line () (interactive "*") (insert ?\¦) ) (defun insert-section-sign () (interactive "*") (insert ?\§) ) (defun insert-diaeresis () (interactive "*") (insert ?\¨) ) (defun insert-copyright-sign () (interactive "*") (insert ?\©) ) (defun insert-ordinal-indicator-feminine () (interactive "*") (insert ?\ª) ) (defun insert-angle-quotation-mark-left () (interactive "*") (insert ?\«) ) (defun insert-not-sign () (interactive "*") (insert ?\¬) ) (defun insert-soft-hyphen () (interactive "*") (insert ?\) ) (defun insert-registered-sign () (interactive "*") (insert ?\®) ) (defun insert-macron () (interactive "*") (insert ?\¯) ) (defun insert-degree-sign () (interactive "*") (insert ?\°) ) (defun insert-plus-or-minus-sign () (interactive "*") (insert ?\±) ) (defun insert-superscript-two () (interactive "*") (insert ?\²) ) (defun insert-superscript-three () (interactive "*") (insert ?\³) ) (defun insert-acute-accent () (interactive "*") (insert ?\´) ) (defun insert-micro-sign () (interactive "*") (insert ?\µ) ) (defun insert-pilcrow () (interactive "*") (insert ?\¶) ) (defun insert-middle-dot () (interactive "*") (insert ?\·) ) (defun insert-cedilla () (interactive "*") (insert ?\¸) ) (defun insert-superscript-one () (interactive "*") (insert ?\¹) ) (defun insert-ordinal-indicator-masculine () (interactive "*") (insert ?\º) ) (defun insert-angle-quotation-mark-right () (interactive "*") (insert ?\») ) (defun insert-fraction-one-quarter () (interactive "*") (insert ?\¼) ) (defun insert-fraction-one-half () (interactive "*") (insert ?\½) ) (defun insert-fraction-three-quarters () (interactive "*") (insert ?\¾) ) (defun insert-inverted-question-mark () (interactive "*") (insert ?\¿) ) (defun insert-A-grave () (interactive "*") (insert ?\À) ) (defun insert-A-acute () (interactive "*") (insert ?\Á) ) (defun insert-A-circumflex () (interactive "*") (insert ?\Â) ) (defun insert-A-tilde () (interactive "*") (insert ?\Ã) ) (defun insert-A-umlaut () (interactive "*") (insert ?\Ä) ) (defun insert-A-ring () (interactive "*") (insert ?\Å) ) (defun insert-AE () (interactive "*") (insert ?\Æ) ) (defun insert-C-cedilla () (interactive "*") (insert ?\Ç) ) (defun insert-E-grave () (interactive "*") (insert ?\È) ) (defun insert-E-acute () (interactive "*") (insert ?\É) ) (defun insert-E-circumflex () (interactive "*") (insert ?\Ê) ) (defun insert-E-umlaut () (interactive "*") (insert ?\Ë) ) (defun insert-I-grave () (interactive "*") (insert ?\Ì) ) (defun insert-I-acute () (interactive "*") (insert ?\Í) ) (defun insert-I-circumflex () (interactive "*") (insert ?\Î) ) (defun insert-I-umlaut () (interactive "*") (insert ?\Ï) ) (defun insert-D-stroke () (interactive "*") (insert ?\Ð) ) (defun insert-N-tilde () (interactive "*") (insert ?\Ñ) ) (defun insert-O-grave () (interactive "*") (insert ?\Ò) ) (defun insert-O-acute () (interactive "*") (insert ?\Ó) ) (defun insert-O-circumflex () (interactive "*") (insert ?\Ô) ) (defun insert-O-tilde () (interactive "*") (insert ?\Õ) ) (defun insert-O-umlaut () (interactive "*") (insert ?\Ö) ) (defun insert-multiplication-sign () (interactive "*") (insert ?\×) ) (defun insert-O-slash () (interactive "*") (insert ?\Ø) ) (defun insert-U-grave () (interactive "*") (insert ?\Ù) ) (defun insert-U-acute () (interactive "*") (insert ?\Ú) ) (defun insert-U-circumflex () (interactive "*") (insert ?\Û) ) (defun insert-U-umlaut () (interactive "*") (insert ?\Ü) ) (defun insert-Y-acute () (interactive "*") (insert ?\Ý) ) (defun insert-THORN () (interactive "*") (insert ?\Þ) ) (defun insert-ss () (interactive "*") (insert ?\ß) ) (defun insert-a-grave () (interactive "*") (insert ?\à) ) (defun insert-a-acute () (interactive "*") (insert ?\á) ) (defun insert-a-circumflex () (interactive "*") (insert ?\â) ) (defun insert-a-tilde () (interactive "*") (insert ?\ã) ) (defun insert-a-umlaut () (interactive "*") (insert ?\ä) ) (defun insert-a-ring () (interactive "*") (insert ?\å) ) (defun insert-ae () (interactive "*") (insert ?\æ) ) (defun insert-c-cedilla () (interactive "*") (insert ?\ç) ) (defun insert-e-grave () (interactive "*") (insert ?\è) ) (defun insert-e-acute () (interactive "*") (insert ?\é) ) (defun insert-e-circumflex () (interactive "*") (insert ?\ê) ) (defun insert-e-umlaut () (interactive "*") (insert ?\ë) ) (defun insert-i-grave () (interactive "*") (insert ?\ì) ) (defun insert-i-acute () (interactive "*") (insert ?\í) ) (defun insert-i-circumflex () (interactive "*") (insert ?\î) ) (defun insert-i-umlaut () (interactive "*") (insert ?\ï) ) (defun insert-d-stroke () (interactive "*") (insert ?\ð) ) (defun insert-n-tilde () (interactive "*") (insert ?\ñ) ) (defun insert-o-grave () (interactive "*") (insert ?\ò) ) (defun insert-o-acute () (interactive "*") (insert ?\ó) ) (defun insert-o-circumflex () (interactive "*") (insert ?\ô) ) (defun insert-o-tilde () (interactive "*") (insert ?\õ) ) (defun insert-o-umlaut () (interactive "*") (insert ?\ö) ) (defun insert-division-sign () (interactive "*") (insert ?\÷) ) (defun insert-o-slash () (interactive "*") (insert ?\ø) ) (defun insert-u-grave () (interactive "*") (insert ?\ù) ) (defun insert-u-acute () (interactive "*") (insert ?\ú) ) (defun insert-u-circumflex () (interactive "*") (insert ?\û) ) (defun insert-u-umlaut () (interactive "*") (insert ?\ü) ) (defun insert-y-acute () (interactive "*") (insert ?\ý) ) (defun insert-thorn () (interactive "*") (insert ?\þ) ) (defun insert-y-umlaut () (interactive "*") (insert ?\ÿ) ) (defvar 8859-1-map nil "Keymap for ISO 8859/1 character insertion.") (if 8859-1-map nil (setq 8859-1-map (make-keymap)) (define-key 8859-1-map " " 'insert-no-break-space) (define-key 8859-1-map "!" 'insert-inverted-exclamation-mark) (define-key 8859-1-map "\"" (make-sparse-keymap)) (define-key 8859-1-map "\"\"" 'insert-diaeresis) (define-key 8859-1-map "\"A" 'insert-A-umlaut) (define-key 8859-1-map "\"E" 'insert-E-umlaut) (define-key 8859-1-map "\"I" 'insert-I-umlaut) (define-key 8859-1-map "\"O" 'insert-O-umlaut) (define-key 8859-1-map "\"U" 'insert-U-umlaut) (define-key 8859-1-map "\"a" 'insert-a-umlaut) (define-key 8859-1-map "\"e" 'insert-e-umlaut) (define-key 8859-1-map "\"i" 'insert-i-umlaut) (define-key 8859-1-map "\"o" 'insert-o-umlaut) (define-key 8859-1-map "\"u" 'insert-u-umlaut) (define-key 8859-1-map "\"y" 'insert-y-umlaut) (define-key 8859-1-map "'" (make-sparse-keymap)) (define-key 8859-1-map "''" 'insert-acute-accent) (define-key 8859-1-map "'A" 'insert-A-acute) (define-key 8859-1-map "'E" 'insert-E-acute) (define-key 8859-1-map "'I" 'insert-I-acute) (define-key 8859-1-map "'O" 'insert-O-acute) (define-key 8859-1-map "'U" 'insert-U-acute) (define-key 8859-1-map "'Y" 'insert-Y-acute) (define-key 8859-1-map "'a" 'insert-a-acute) (define-key 8859-1-map "'e" 'insert-e-acute) (define-key 8859-1-map "'i" 'insert-i-acute) (define-key 8859-1-map "'o" 'insert-o-acute) (define-key 8859-1-map "'u" 'insert-u-acute) (define-key 8859-1-map "'y" 'insert-y-acute) (define-key 8859-1-map "$" 'insert-general-currency-sign) (define-key 8859-1-map "+" 'insert-plus-or-minus-sign) (define-key 8859-1-map "," (make-sparse-keymap)) (define-key 8859-1-map ",," 'insert-cedilla) (define-key 8859-1-map ",C" 'insert-C-cedilla) (define-key 8859-1-map ",c" 'insert-c-cedilla) (define-key 8859-1-map "-" 'insert-soft-hyphen) (define-key 8859-1-map "." 'insert-middle-dot) (define-key 8859-1-map "/" (make-sparse-keymap)) (define-key 8859-1-map "//" 'insert-division-sign) (define-key 8859-1-map "/O" 'insert-O-slash) (define-key 8859-1-map "/o" 'insert-o-slash) (define-key 8859-1-map "1" (make-sparse-keymap)) (define-key 8859-1-map "1/" (make-sparse-keymap)) (define-key 8859-1-map "1/2" 'insert-fraction-one-half) (define-key 8859-1-map "1/4" 'insert-fraction-one-quarter) (define-key 8859-1-map "3" (make-sparse-keymap)) (define-key 8859-1-map "3/" (make-sparse-keymap)) (define-key 8859-1-map "3/4" 'insert-fraction-three-quarters) (define-key 8859-1-map "<" 'insert-angle-quotation-mark-left) (define-key 8859-1-map "=" 'insert-macron) (define-key 8859-1-map ">" 'insert-angle-quotation-mark-right) (define-key 8859-1-map "?" 'insert-inverted-question-mark) (define-key 8859-1-map "A" 'insert-A-ring) (define-key 8859-1-map "E" 'insert-AE) (define-key 8859-1-map "C" 'insert-copyright-sign) (define-key 8859-1-map "D" 'insert-D-stroke) (define-key 8859-1-map "L" 'insert-pound-sign) (define-key 8859-1-map "P" 'insert-pilcrow) (define-key 8859-1-map "R" 'insert-registered-sign) (define-key 8859-1-map "S" 'insert-section-sign) (define-key 8859-1-map "T" 'insert-THORN) (define-key 8859-1-map "Y" 'insert-yen-sign) (define-key 8859-1-map "^" (make-sparse-keymap)) (define-key 8859-1-map "^1" 'insert-superscript-one) (define-key 8859-1-map "^2" 'insert-superscript-two) (define-key 8859-1-map "^3" 'insert-superscript-three) (define-key 8859-1-map "^A" 'insert-A-circumflex) (define-key 8859-1-map "^E" 'insert-E-circumflex) (define-key 8859-1-map "^I" 'insert-I-circumflex) (define-key 8859-1-map "^O" 'insert-O-circumflex) (define-key 8859-1-map "^U" 'insert-U-circumflex) (define-key 8859-1-map "^a" 'insert-a-circumflex) (define-key 8859-1-map "^e" 'insert-e-circumflex) (define-key 8859-1-map "^i" 'insert-i-circumflex) (define-key 8859-1-map "^o" 'insert-o-circumflex) (define-key 8859-1-map "^u" 'insert-u-circumflex) (define-key 8859-1-map "_" (make-sparse-keymap)) (define-key 8859-1-map "_a" 'insert-ordinal-indicator-feminine) (define-key 8859-1-map "_o" 'insert-ordinal-indicator-masculine) (define-key 8859-1-map "`" (make-sparse-keymap)) (define-key 8859-1-map "`A" 'insert-A-grave) (define-key 8859-1-map "`E" 'insert-E-grave) (define-key 8859-1-map "`I" 'insert-I-grave) (define-key 8859-1-map "`O" 'insert-O-grave) (define-key 8859-1-map "`U" 'insert-U-grave) (define-key 8859-1-map "`a" 'insert-a-grave) (define-key 8859-1-map "`e" 'insert-e-grave) (define-key 8859-1-map "`i" 'insert-i-grave) (define-key 8859-1-map "`o" 'insert-o-grave) (define-key 8859-1-map "`u" 'insert-u-grave) (define-key 8859-1-map "a" 'insert-a-ring) (define-key 8859-1-map "e" 'insert-ae) (define-key 8859-1-map "c" 'insert-cent-sign) (define-key 8859-1-map "d" 'insert-d-stroke) (define-key 8859-1-map "o" 'insert-degree-sign) (define-key 8859-1-map "s" 'insert-ss) (define-key 8859-1-map "t" 'insert-thorn) (define-key 8859-1-map "u" 'insert-micro-sign) (define-key 8859-1-map "x" 'insert-multiplication-sign) (define-key 8859-1-map "|" 'insert-broken-vertical-line) (define-key 8859-1-map "~" (make-sparse-keymap)) (define-key 8859-1-map "~A" 'insert-A-tilde) (define-key 8859-1-map "~N" 'insert-N-tilde) (define-key 8859-1-map "~O" 'insert-O-tilde) (define-key 8859-1-map "~a" 'insert-a-tilde) (define-key 8859-1-map "~n" 'insert-n-tilde) (define-key 8859-1-map "~o" 'insert-o-tilde) (define-key 8859-1-map "~~" 'insert-not-sign) (if (not (lookup-key global-map "\C-x8")) (define-key global-map "\C-x8" 8859-1-map)) ) (defalias '8859-1-map 8859-1-map) (provide 'iso-insert) ;;; iso-insert.el ends here