From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tom.tulinsky@gmail.com Newsgroups: gmane.emacs.help Subject: single function to open utf-16 file? Date: 10 Jul 2006 10:45:39 -0700 Organization: http://groups.google.com Message-ID: <1152553539.512324.82140@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1152556842 599 80.91.229.2 (10 Jul 2006 18:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2006 18:40:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 10 20:40:41 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G00gE-0007LX-0b for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jul 2006 20:40:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G00gD-0004cp-EZ for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jul 2006 14:40:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 207.178.223.83 Original-X-Trace: posting.google.com 1152553544 14871 127.0.0.1 (10 Jul 2006 17:45:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 10 Jul 2006 17:45:44 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=207.178.223.83; posting-account=0t6QuQ0AAAA7YGcbcgG8P8KFUlMMf74H Original-Xref: shelby.stanford.edu gnu.emacs.help:140260 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35885 Archived-At: can tell me how to easily open a utf-16 file, or a function for me that will open a utf-16 file in PC-win32 Emacs 21.3.1? Currently I have to do 'C-x C-m c utf-16-le RET' followed by C-x C-f I have tried to write a function or create a keyboard macro to do this, but they did not work because C-x C-m c (universal-coding-system-argument) is some kind of special function and demands the next command be entered from the keyboard. I want a single elisp function that I can bind to a key. Thanks. tt On Windows XP Pro.