all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Love <d.love@dl.ac.uk>
Subject: abbrev file needs to be multilingual
Date: 21 Jan 2003 18:16:50 +0000	[thread overview]
Message-ID: <rzq4r829xm5.fsf@albion.dl.ac.uk> (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.

             reply	other threads:[~2003-01-21 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-21 18:16 Dave Love [this message]
2003-01-27 11:54 ` abbrev file needs to be multilingual Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rzq4r829xm5.fsf@albion.dl.ac.uk \
    --to=d.love@dl.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.