unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: newbie elisp question
Date: Fri, 09 Sep 2005 02:08:01 +0200	[thread overview]
Message-ID: <87r7bzayse.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: z53Ue.9515$FW1.8169@newsread3.news.atl.earthlink.net

"B. T. Raven" <ecinmn@peoplepc.com> 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. 

  reply	other threads:[~2005-09-09  0:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-08  1:59 newbie elisp question B. T. Raven
2005-09-08  2:20 ` Drew Adams
2005-09-08  4:19 ` Pascal Bourguignon
2005-09-08 22:40   ` B. T. Raven
2005-09-09  0:08     ` Pascal Bourguignon [this message]
2005-09-09 16:28       ` B. T. Raven
2005-09-09 17:32         ` Pascal Bourguignon

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87r7bzayse.fsf@thalassa.informatimago.com \
    --to=spam@mouse-potato.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).