From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: newbie elisp question Date: Fri, 09 Sep 2005 16:28:46 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: <2LiUe.9834$FW1.3525@newsread3.news.atl.earthlink.net> References: <87k6hsdwdf.fsf@thalassa.informatimago.com> <87r7bzayse.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1126283509 15847 80.91.229.2 (9 Sep 2005 16:31:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2005 16:31:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 09 18:31:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EDllc-0000a1-RK for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Sep 2005 18:30:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDllc-00056l-B1 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Sep 2005 12:30:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 77 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.32.184 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread3.news.atl.earthlink.net 1126283326 4.159.32.184 (Fri, 09 Sep 2005 09:28:46 PDT) Original-NNTP-Posting-Date: Fri, 09 Sep 2005 09:28:46 PDT Original-Xref: shelby.stanford.edu gnu.emacs.help:133812 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:29359 Archived-At: "Pascal Bourguignon" wrote in message news:87r7bzayse.fsf@thalassa.informatimago.com... > "B. T. Raven" writes: > >> (defun goto-vowel () > >> "Skip to next vowel after point." > >> (interactive) > >> (while (not (looking-at "[aeiouy]") (forward-char))) > > > > Why the quotes? Is this acceptable reg-exp syntax? > > I don't see any quote in this function. quote = ' > I see four double-quotes that delimit two strings. double-quote = " > There are also a pair of brackets = [] inside one of this strings, which is > a regexp syntax to mean any of the characters inside the brackets. > I was using the word 'quote' here generically and too loosely for the context, as if one were to say bang for exclamation point where it might mean, for example "logical not." Anyway, the substance of my animadversion was wrong-headed, as I realized as soon as I sent it out. The reason is that I have never used regular expressions programatically, only interactively. > > Which leads to my final > > question: Has anyone here successfully copypasted from a utf-8 buffer to > > another Windows application that supports Unicode? My emacs is a w32 > > build (21.3) and I can only accomplish the transfer of arbitrary unicode > > strings by saving to a file as utf-8, opening or inserting the file > > (encoded text) with Open Office, and then copypasting from there. Any > > ideas? > > It should be enough to configure the encodings. Something like this in > ~/.emacs: > > (set-language-environment 'UTF-8) > (set-default-coding-systems 'utf-8) > (setq file-name-coding-system 'utf-8) > (setq default-buffer-file-coding-system 'utf-8) > (setq coding-system-for-write 'utf-8) > (set-keyboard-coding-system 'utf-8) > (set-terminal-coding-system 'utf-8) > (set-clipboard-coding-system 'utf-8) > (set-selection-coding-system 'utf-8) > (prefer-coding-system 'utf-8) > (modify-coding-system-alist 'process "\\*shell\\*\\'" 'utf-8-unix) I had tried all of these before except the last line. Using (under Win98) (modify-coding-system-alist 'process "[cC][mM][dD][pP][rR][oO][xX][yY]" 'utf-8-unix) I still get garbage when trying to copypaste Unicode. I think I want to set this back to undecided-dos, though, or I am afraid I'll have problems with the different end of line conventions. I guess I'll try your suggestion on another w32 emacs 21.3 that I have installed on Win2000 system. Thanks anyway, Ed. > > -- > __Pascal Bourguignon__ http://www.informatimago.com/ > Litter box not here. > You must have moved it again. > I'll poop in the sink.