From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: newbie elisp question Date: Fri, 09 Sep 2005 02:08:01 +0200 Organization: Informatimago Message-ID: <87r7bzayse.fsf@thalassa.informatimago.com> References: <87k6hsdwdf.fsf@thalassa.informatimago.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126224749 4837 80.91.229.2 (9 Sep 2005 00:12:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2005 00:12:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 09 02:12:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EDWUt-0007qx-SH for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Sep 2005 02:12:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EDWUt-0002b1-1X for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Sep 2005 20:12:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!opentransit.net!newsfeed.icl.net!proxad.net!proxad.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:NvJlpJnyt6LiJgt0u7JcJtrUcRM= Original-Lines: 41 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=j^alk9caD7ZY^DA]R;]\j^EY<>`XO4V7]>Uh 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:29341 Archived-At: "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. > 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) -- __Pascal Bourguignon__ http://www.informatimago.com/ Litter box not here. You must have moved it again. I'll poop in the sink.