* abbrev file needs to be multilingual
@ 2003-01-21 18:16 Dave Love
2003-01-27 11:54 ` Kenichi Handa
0 siblings, 1 reply; 2+ messages in thread
From: Dave Love @ 2003-01-21 18:16 UTC (permalink / raw)
The abbrevs file needs to be encoded as emacs-mule so that you can use
multilingual abbrevs. Here's a solution.
2003-01-21 Dave Love <fx@gnu.org>
* abbrev.el (write-abbrev-file): Simplify and put a coding cookie
in the file.
*** abbrev.el.~1.32.~ Mon Sep 30 23:36:54 2002
--- abbrev.el Thu Jan 16 12:01:26 2003
***************
*** 212,226 ****
abbrev-file-name)))
(or (and file (> (length file) 0))
(setq file abbrev-file-name))
! (save-excursion
! (set-buffer (get-buffer-create " write-abbrev-file"))
! (erase-buffer)
! (let ((tables abbrev-table-name-list))
! (while tables
! (insert-abbrev-table-description (car tables) nil)
! (setq tables (cdr tables))))
! (write-region (point-min) (point-max) file)
! (erase-buffer)))
\f
(defun add-mode-abbrev (arg)
"Define mode-specific abbrev for last word(s) before point.
--- 212,222 ----
abbrev-file-name)))
(or (and file (> (length file) 0))
(setq file abbrev-file-name))
! (let ((coding-system-for-write 'emacs-mule))
! (with-temp-file file
! (insert ";;-*-coding: emacs-mule;-*-\n")
! (dolist (table abbrev-table-name-list)
! (insert-abbrev-table-description table nil)))))
\f
(defun add-mode-abbrev (arg)
"Define mode-specific abbrev for last word(s) before point.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: abbrev file needs to be multilingual
2003-01-21 18:16 abbrev file needs to be multilingual Dave Love
@ 2003-01-27 11:54 ` Kenichi Handa
0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2003-01-27 11:54 UTC (permalink / raw)
Cc: bug-gnu-emacs
In article <rzq4r829xm5.fsf@albion.dl.ac.uk>, Dave Love <d.love@dl.ac.uk> writes:
> The abbrevs file needs to be encoded as emacs-mule so that you can use
> multilingual abbrevs. Here's a solution.
> 2003-01-21 Dave Love <fx@gnu.org>
> * abbrev.el (write-abbrev-file): Simplify and put a coding cookie
> in the file.
Ah, yes, I agree.
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-27 11:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-21 18:16 abbrev file needs to be multilingual Dave Love
2003-01-27 11:54 ` Kenichi Handa
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).