diff options
| author | Juanma Barranquero | 2006-12-04 10:24:04 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-12-04 10:24:04 +0000 |
| commit | def7167bdf6aa3326bea073bedc4518de17279cd (patch) | |
| tree | 231e5a4dd1c679694be4c19c2066e3368e8b126d | |
| parent | ee77eef5189c4fe644ac44518bab5e05d8fd18f0 (diff) | |
| download | emacs-def7167bdf6aa3326bea073bedc4518de17279cd.tar.gz emacs-def7167bdf6aa3326bea073bedc4518de17279cd.zip | |
(describe-char-unicode-data): Use a hidden buffer for Unicode data file pointed
to by `describe-char-unicodedata-file'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/descr-text.el | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4d3e30b3452..0e9c2c352b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-12-04 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * descr-text.el (describe-char-unicode-data): Use a hidden buffer for | ||
| 4 | Unicode data file pointed to by `describe-char-unicodedata-file'. | ||
| 5 | |||
| 1 | 2006-12-04 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2006-12-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * textmodes/sgml-mode.el (sgml-font-lock-keywords-1): Fix pathological | 8 | * textmodes/sgml-mode.el (sgml-font-lock-keywords-1): Fix pathological |
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 8fb28930fbf..361c3b8c15c 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -212,11 +212,10 @@ The list is null if CHAR isn't found in `describe-char-unicodedata-file'." | |||
| 212 | (when describe-char-unicodedata-file | 212 | (when describe-char-unicodedata-file |
| 213 | (unless (file-exists-p describe-char-unicodedata-file) | 213 | (unless (file-exists-p describe-char-unicodedata-file) |
| 214 | (error "`unicodedata-file' %s not found" describe-char-unicodedata-file)) | 214 | (error "`unicodedata-file' %s not found" describe-char-unicodedata-file)) |
| 215 | (with-current-buffer | 215 | (with-current-buffer (get-buffer-create " *Unicode Data*") |
| 216 | ;; Find file in fundamental mode to avoid, e.g. flyspell turned | 216 | (when (zerop (buffer-size)) |
| 217 | ;; on for .txt. Don't use RAWFILE arg in case of DOS line endings. | 217 | ;; Don't use -literally in case of DOS line endings. |
| 218 | (let ((auto-mode-alist)) | 218 | (insert-file-contents describe-char-unicodedata-file)) |
| 219 | (find-file-noselect describe-char-unicodedata-file)) | ||
| 220 | (goto-char (point-min)) | 219 | (goto-char (point-min)) |
| 221 | (let ((hex (format "%04X" char)) | 220 | (let ((hex (format "%04X" char)) |
| 222 | found first last) | 221 | found first last) |