Commit graph

109 commits

Author SHA1 Message Date
Juanma Barranquero
06b605171f lisp/*.el: Lexical-binding cleanup. 2011-04-19 15:44:55 +02:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Glenn Morris
9d79402605 Remove duplicate Lisp definitions of define-minor-mode variables defined in C.
* lisp/abbrev.el (abbrev-mode):
* lisp/composite.el (auto-composition-mode):
* lisp/menu-bar.el (menu-bar-mode):
* lisp/simple.el (transient-mark-mode):
* lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
that they do not define the associated variables twice.
* lisp/simple.el (transient-mark-mode): Remove defvar.
* lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
* lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
Handle multiple groups, and also custom-delayed-init-variables.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.

* src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
* src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.
2010-10-28 20:29:29 -07:00
Juanma Barranquero
220d91b834 Merge changes from emacs-23 branch. 2010-10-14 16:32:27 +02:00
Juanma Barranquero
51e4f4a88d Fix typos in docstrings, comments and ChangeLogs.
* lisp/composite.el (compose-region):
* src/ccl.c (Fccl_execute_on_string): Fix typo in docstring.
2010-10-12 17:16:57 +02:00
Glenn Morris
3226d6cacf Remove some functions, variables and aliases obsolete since at least 21.1.
* doc/misc/misc.texi (Shell Mode): Remove reference to old function name.

* src/character.c (Fchar_bytes): Remove obsolete function.
(syms_of_character): Remove Schar_bytes.
* lisp/subr.el (char-bytes): Remove obsolete function.

* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-keymap): Remove obsolete alias.

* lisp/isearch.el (isearch-return-char): Remove obsolete function.

* lisp/mouse.el: No longer provide mldrag.
(mldrag-drag-mode-line, mldrag-drag-vertical-line):
Remove obsolete aliases.

* lisp/comint.el (comint-kill-output): Remove obsolete alias.

* lisp/shell.el: Comment fix.

* lisp/composite.el (decompose-composite-char): Remove obsolete function.
* lisp/ps-def.el (decompose-composite-char): Remove unused function.

* lisp/iswitchb.el (iswitchb-default-keybindings): Remove obsolete function.

* lisp/outline.el (outline-visible): Remove obsolete function.

* lisp/term/pc-win.el (x-frob-font-slant, x-frob-font-weight):
* lisp/faces.el (internal-find-face, internal-get-face)
(frame-update-faces, frame-update-face-colors)
(x-frob-font-weight, x-frob-font-slant)
(internal-frob-font-weight, internal-frob-font-slant)
(x-make-font-bold, x-make-font-demibold, x-make-font-unbold)
(x-make-font-italic, x-make-font-oblique, x-make-font-unitalic)
(x-make-font-bold-italic): Remove functions and aliases, obsolete
since Emacs 21.1.
* lisp/emulation/viper-util.el (viper-get-face):
* lisp/obsolete/lucid.el (find-face, get-face): Use facep.
* lisp/vc/ediff-init.el (ediff-valid-color-p, ediff-get-face):
Remove unused functions.
* lisp/vc/ediff-util.el (ediff-submit-report): Doc fix.

* etc/NEWS: Mention above changes.
2010-10-01 19:46:13 -07:00
Stefan Monnier
d36b74ca27 Use with-silent-modifications.
* lisp/composite.el (save-buffer-state): Delete, unused.
* lisp/font-lock.el (save-buffer-state): Use with-silent-modifications.
(font-lock-default-fontify-region): Use with-syntax-table.
* lisp/jit-lock.el (with-buffer-unmodified): Remove.
(with-buffer-prepared-for-jit-lock): Use with-silent-modifications.
2010-08-30 15:57:42 +02:00
Chong Yidong
bd78fa1d54 Add "Package:" file headers to denote built-in packages. 2010-08-29 12:17:13 -04:00
Juanma Barranquero
07d7c3bdc9 * composite.el: Require cl when compiling; fix typos in docstrings. 2010-05-20 03:27:49 +02:00
Kenichi Handa
2833d9158d composite.el: Register compose-gstring-for-graphic in composition-function-table only for combining characters (Mn, Mc, Me). 2010-05-19 10:09:50 +09:00
Stefan Monnier
f44379e7fe Use define-minor-mode for less obvious cases.
* emacs-lisp/easy-mmode.el (define-minor-mode): Add :variable keyword.
* emacs-lisp/cl-macs.el (terminal-parameter, eq): Add setf method.
* international/iso-ascii.el (iso-ascii-mode):
* frame.el (auto-raise-mode, auto-lower-mode):
* composite.el (global-auto-composition-mode): Use define-minor-mode.
2010-05-04 22:08:25 -04:00
Stefan Monnier
56eb09046e Use define-minor-mode where applicable.
* mh-show.el (mh-showing-mode): Move function to mh-e.el.
* mh-e.el (mh-showing-mode):
* url-dired.el (url-dired-minor-mode):
* org-table.el (orgtbl-mode):
* view.el (view-mode):
* type-break.el (type-break-query-mode)
(type-break-mode-line-message-mode):
* textmodes/reftex.el (reftex-mode):
* term/vt100.el (vt100-wide-mode):
* tar-mode.el (tar-subfile-mode):
* savehist.el (savehist-mode):
* ibuf-ext.el (ibuffer-auto-mode):
* composite.el (auto-composition-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
Use define-minor-mode.
(vhdl-mode): Use static mode-line format.
(vhdl-mode-line-update): Delete.
(vhdl-create-mode-menu, vhdl-activate-customizations)
(vhdl-hs-minor-mode): Don't bother calling it.
2010-05-02 22:29:46 -04:00
Eli Zaretskii
d21133bcb8 composite.el (find-composition): Fix a typo in the doc string. 2010-05-01 21:53:23 +03:00
Eli Zaretskii
aa4d4e4a1d composite.el (compose-region, reference-point-alist): Fix typos in the doc
strings.
2010-05-01 21:50:20 +03:00
Eli Zaretskii
4f27f7d260 Fix typos in doc strings of composite.el. 2010-04-30 15:16:13 +03:00
Andreas Schwab
8ed6fc47b7 * composite.el (find-composition): Doc fix. 2010-04-24 18:35:43 +02:00
Eli Zaretskii
9a6eb156e2 composite.el (find-composition): Doc fix. 2010-04-24 19:23:29 +03:00
Kenichi Handa
35fb32880c from trunk 2010-01-14 12:54:04 +09:00
Kenichi Handa
d9a7c14092 Make auto-composition work on all buffers even if they are fundamental mode. 2010-01-14 12:44:36 +09:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Dan Nicolaescu
6d341a2a09 * textmodes/ispell.el (ispell-skip-region-alist):
* textmodes/css-mode.el (auto-mode-alist):
* progmodes/compile.el (auto-mode-alist):
* international/mule.el (ctext-non-standard-encodings-alist)
(ctext-non-standard-encodings-regexp):
* simple.el (shell-command-switch, text-read-only):
* replace.el (occur-mode-map):
* paths.el (rmail-file-name):
* jka-cmpr-hook.el (jka-compr-build-file-regexp):
* find-file.el (ff-special-constructs):
* files.el (file-name-handler-alist):
* composite.el: Purecopy strings.
2009-11-12 06:55:39 +00:00
Stefan Monnier
adba8116c3 * mail/sendmail.el (send-mail-function):
* tooltip.el (tooltip-mode):
* simple.el (transient-mark-mode):
* rfn-eshadow.el (file-name-shadow-mode):
* frame.el (blink-cursor-mode):
* font-core.el (global-font-lock-mode):
* files.el (temporary-file-directory)
(small-temporary-file-directory, auto-save-file-name-transforms):
* epa-hook.el (auto-encryption-mode):
* composite.el (global-auto-composition-mode):
Use custom-initialize-delay.
* startup.el (command-line): Don't explicitly call
custom-reevaluate-setting for all the above vars.
* custom.el (custom-initialize-safe-set)
(custom-initialize-safe-default): Delete.
2009-09-13 00:52:55 +00:00
Kenichi Handa
b6cac59cc6 (compose-region): Improve the docstring. 2009-06-16 00:33:58 +00:00
Kenichi Handa
b8321d8693 (compose-gstring-for-terminal): For zero-width
characters of Unicode category `Cf', simply replace it with SPC.
2009-06-10 00:35:08 +00:00
Juanma Barranquero
1ce3d35b78 * composite.el (auto-compose-chars): Fix typo in docstring. 2009-03-25 12:02:15 +00:00
Kenichi Handa
a485d4f774 (auto-composition-mode): Don't add a hook to
after-change-functions.  Don't decompose the buffer.
(auto-composition-after-change): Delete it.
(toggle-auto-composition): Make it an alias of
auto-composition-mode.
(auto-compose-region): Delete it.
2009-02-23 01:37:34 +00:00
Kenichi Handa
ca451f4c7e Use "\\c." instead of "[[:alpha:]]" to match with
a base character.
2009-02-12 05:42:56 +00:00
Kenichi Handa
8da437855b (compose-gstring-for-terminal): If a character is
not supported by the current terminal, don't make a multi-glyph
grapheme cluster.
(auto-compose-chars): Check font-object by fontp.
2009-02-04 02:00:34 +00:00
Glenn Morris
c3fba29dba Comment (add an author based on ack.texi). 2009-01-10 21:56:18 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Kenichi Handa
b23dc4242c (lglyph-set-code): New function. 2008-12-30 23:32:55 +00:00
Kenichi Handa
c0a839aeac (compose-gstring-for-graphic): Fix previous change. 2008-09-10 05:49:38 +00:00
Kenichi Handa
21e5e72e89 Compose combining characters only when it
follows an character matching with "[[:alpha:]]".
2008-09-07 01:14:58 +00:00
Kenichi Handa
e271d38e79 (compose-gstring-for-graphic): Fix handling "above" marks. 2008-09-05 07:36:53 +00:00
Kenichi Handa
8b1c87bf32 (find-composition): Mention about the automatic
composition in the docstring.
2008-09-05 00:53:00 +00:00
Kenichi Handa
473ccad07a (composition-function-table): Declaration moved to
composite.c.
(terminal-composition-base-character-p): Delete it.
(terminal-composition-function): Delete it.
(terminal-composition-function-table): Delete it.
(lgstring-header, lgstring-set-header, lgstring-font)
(lgstring-char, lgstring-char-len, lgstring-shaped-p)
(lgstring-set-id, lgstring-glyph, lgstring-glyph-len)
(lgstring-set-glyph, lglyph-from, lglyph-to, lglyph-char)
(lglyph-code, lglyph-width, lglyph-lbearing, lglyph-rbearing)
(lglyph-ascent, lglyph-descent, lglyph-adjustment)
(lglyph-set-from-to, lglyph-copy, lgstring-insert-glyph)
(compose-glyph-string, compose-glyph-string-relative)
(compose-gstring-for-graphic, compose-gstring-for-terminal): New
functions.
(auto-compose-chars): Argument changed.
2008-08-29 07:59:03 +00:00
Kenichi Handa
c0cd125512 (compose-region): Mention the special handling of TAB. 2008-06-29 14:44:12 +00:00
Kenichi Handa
a509862bf3 (terminal-composition-function): Fix previous change. 2008-06-26 07:26:39 +00:00
Kenichi Handa
3617b1eb8d (terminal-composition-base-character-p): New
funciton.
(terminal-composition-function): Use
terminal-composition-base-character-p.  Include the base character
in the composition.
(auto-compose-chars): Don't check font-object for terminal
display.
2008-06-26 04:17:19 +00:00
Kenichi Handa
d04effb34e (compose-chars-after): Assume that WINDOW is always non-nil. 2008-05-14 01:56:07 +00:00
Juanma Barranquero
d4f635a5ae (toggle-auto-composition): Don't use `iff' in docstring. 2008-05-08 03:36:27 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Glenn Morris
ad1b4641e2 (encode-composition-rule): Fix typo in error message.
(composition-function-table, auto-composition-mode): Doc fixes.
2008-02-21 07:53:55 +00:00
Kenichi Handa
67125135e0 (compose-chars-after): Fix arguments for a function
in composition-function-table.
(auto-compose-region): Likewise.
2008-02-21 03:35:31 +00:00
Glenn Morris
627a335d54 (composition-function-table): Doc fix. 2008-02-16 03:27:10 +00:00
Miles Bader
430d2ee291 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
2008-01-09 01:21:15 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Kenichi Handa
844bf7bac8 terminal-composition-modification: Delete it. 2007-12-27 02:41:26 +00:00