Mercurial > emacs
annotate lisp/language/tai-viet.el @ 107777:13c077500eb3
2010-04-04 John Wiegley <jwiegley@gmail.com>
* ido.el (ido-use-virtual-buffers): New variable to indicate
whether "virtual buffer" support is enabled for IDO. Essentially
it works as follows: Say you are visiting a file and the buffer
gets cleaned up by mignight.el. Later, you want to switch to that
buffer, but find it's no longer open. With virtual buffers
enabled, the buffer name stays in the buffer list (using the
ido-virtual face, and always at the end), and if you select it, it
opens the file back up again. This allows you to think less about
whether recently opened files are still open or not. Most of the
time you can quit Emacs, restart, and then switch to a file buffer
that was previously open as if it still were. NOTE: This feature
has been present in iswitchb for several years now, and I'm
porting the same logic to IDO.
(ido-virtual): Face used to indicate virtual buffers in the list.
(ido-buffer-internal): If a buffer is chosen, and no such buffer
exists, but a virtual buffer of that name does (which would be why
it was in the list), recreate the buffer by reopening the file.
(ido-make-buffer-list): If virtual buffers are being used, call
`ido-add-virtual-buffers-to-list' before the make list hook.
(ido-virtual-buffers): New variable which contains a copy of the
current contents of the `recentf-list', albeit pared down for the
sake of speed, and with proper faces applied.
(ido-add-virtual-buffers-to-list): Using the `recentf-list',
create a list of "virtual buffers" to present to the user in
addition to the currently open set. Note that this logic could
get rather slow if that list is too large. With the default
`recentf-max-saved-items' of 200, there is little speed penalty.
author | jwiegley@gmail.com |
---|---|
date | Sun, 04 Apr 2010 02:55:19 -0400 |
parents | 1d1d5d9bd884 |
children | 2a3fdfdeb7b3 376148b31b5e |
rev | line source |
---|---|
90939 | 1 ;;; tai-viet.el --- support for Tai Viet -*- coding: utf-8; no-byte-compile: t -*- |
2 | |
106815 | 3 ;; Copyright (C) 2007, 2008, 2009, 2010 |
90939 | 4 ;; National Institute of Advanced Industrial Science and Technology (AIST) |
5 ;; Registration Number H13PRO009 | |
106815 | 6 ;; Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
90939 | 7 |
8 ;; Keywords: multilingual, Tai Viet, i18n | |
9 | |
10 ;; This file is part of GNU Emacs. | |
11 | |
94665
55b7f25d920a
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91436
diff
changeset
|
12 ;; GNU Emacs is free software: you can redistribute it and/or modify |
90939 | 13 ;; it under the terms of the GNU General Public License as published by |
94665
55b7f25d920a
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91436
diff
changeset
|
14 ;; the Free Software Foundation, either version 3 of the License, or |
55b7f25d920a
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91436
diff
changeset
|
15 ;; (at your option) any later version. |
90939 | 16 |
17 ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 ;; GNU General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
94665
55b7f25d920a
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
91436
diff
changeset
|
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
90939 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; Tai Viet is being included in the Unicode at the range U+AA80..U+AADF. | |
28 | |
29 ;;; Code: | |
30 | |
31 (set-char-table-range composition-function-table | |
32 '(#xAA80 . #xAADF) | |
33 'tai-viet-composition-function) | |
34 | |
35 (set-language-info-alist | |
36 "TaiViet" '((charset unicode) | |
37 (coding-system utf-8) | |
38 (coding-priority utf-8) | |
39 (input-method . "tai-sonla") | |
104359
9ee62c813963
("TaiViet"): Fix sample-text entry.
Kenichi Handa <handa@m17n.org>
parents:
100908
diff
changeset
|
40 (sample-text . "TaiViet (ꪁꪫꪱꪣ ꪽꪕ)\t\tꪅꪰꪙ ꪨꪮ ꪁꪫꪱ / ꪅꪾ ꪨ� ꪁꪫꪱ") |
90939 | 41 (documentation . "\ |
42 TaiViet refers to the Tai language used by Tai people in | |
43 Vietnam, and also refers to the script used for this language. | |
44 Both the script and language have the same origin as that of Thai | |
45 language/script used in Thailand, but now they differ from each | |
46 other in a significant way (especially the scripts are). | |
47 | |
48 The language name is spelled as \"ꪁꪫꪱꪣ ꪽꪕ\", and the script name is | |
49 spelled as \"ꪎ� ꪽꪕ\" in the modern form, \"ꪎꪴ ꪽꪕ\" in the traditional | |
50 from. | |
51 | |
52 As the proposal for TaiViet script to the Unicode is still on | |
53 the progress, we use the Private Use Area for TaiViet | |
54 characters (U+F000..U+F07E). A TaiViet font encoded accordingly | |
55 is available at this web page: | |
56 http://www.m17n.org/TaiViet/ | |
57 "))) | |
58 | |
59 (provide 'tai-viet) | |
60 | |
61 ;; Local Variables: | |
62 ;; coding: utf-8 | |
63 ;; End: | |
90950 | 64 |
65 ;; arch-tag: db4e3377-2ba7-47a0-b173-e44420d540c3 |