[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to convert this macro to Elisp?
From: |
kj |
Subject: |
How to convert this macro to Elisp? |
Date: |
Tue, 16 Feb 2010 00:16:40 +0000 (UTC) |
User-agent: |
nn/6.7.3 |
I have a macro that I want to convert to Elisp. Furthermore, I
want the resulting code to be completely non-interactive.
Here's what the macro looks like:
C-x RET c ;; universal-coding-system-argument
euc-jp ;; self-insert-command * 6
RET ;; newline
C-x C-f ;; find-file
test ;; self-insert-command * 4
RET ;; newline
C-x RET f ;; set-buffer-file-coding-system
utf-8 ;; self-insert-command * 5
RET ;; newline
C-x C-s ;; save-buffer
raw-text ;; self-insert-command * 8
RET ;; newline
How can I convert this to Elisp?
The last two lines of the macro above point to a potential wrinkle.
'raw-text<RET>' is my interactive response when Emacs asked what
to do about characters that it was unable to encode using the
requested encoding. I imagine that in some cases this warning will
not appear, so this response would be unnecessary.
TIA!
~K
- How to convert this macro to Elisp?,
kj <=