all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.