unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Re: newbie elisp question
Date: Fri, 09 Sep 2005 16:28:46 GMT	[thread overview]
Message-ID: <2LiUe.9834$FW1.3525@newsread3.news.atl.earthlink.net> (raw)
In-Reply-To: 87r7bzayse.fsf@thalassa.informatimago.com


"Pascal Bourguignon" <spam@mouse-potato.com> wrote in message
news:87r7bzayse.fsf@thalassa.informatimago.com...
> "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.
>

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.

  reply	other threads:[~2005-09-09 16:28 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
2005-09-09 16:28       ` B. T. Raven [this message]
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='2LiUe.9834$FW1.3525@newsread3.news.atl.earthlink.net' \
    --to=ecinmn@peoplepc.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).