Peter Dyballa | 2 Dec 20:31

Re: Unusual Characters in Interactive Console


Am 02.12.2008 um 03:59 schrieb Colin Campbell-McPherson:

> ^[[0;36m2^[[0;0m
> irb(main):005:0> nil
> nil
> ^[[0;32mnil^[[0;0m

^[[0;32m and ^[[0;36m and ^[[0;0m are ANSI Escape Sequences that  
control particular aspects of the terminal (the first two set  
foreground colours, green and cyan, the latter resets to normal). In  
GNU Emacs' ANSI *terminal* emulation (M-x term RET) these sequences  
are transformed into colours.

Could be your application just needs to run some hook with: ansi- 
color-for-comint-mode-on. RTFM. (I'm only using shell command  
interpreters ...)

BTW, the characters are very usual. ^[ is a control character, and  
it's equal to ESC.

--
Greetings

   Pete

If it does exist, it's out of date.
				– Arnold's Second Law of Documentation

(Continue reading)

htbest2000 | 2 Dec 15:42

Re: removing menubar and window frame

for the part `window-frame', you would get the answers:
http://www.emacswiki.org/emacs/FullScreen

On Dec 1, 11:33 pm, "Chengqi(Lars) Song" <son...@gmail.com> wrote:
> Hello,
>
> To maximize the space for editing area, I want to hide manubar and the
> window-frame, but sometimes I need them so I also want to assign a
> hotkey to toggle them. Could you give any suggestion? Thank you.
>
> By the way, by "window-frame", I mean the outer frame of the window with
> the window title, maximze/minimize/close buttons.
>
> thanks
> lars

Drew Adams | 2 Dec 15:43
Favicon

RE: icicle and emacs --daemon

> when using the new emacs --daemon, icicle complain that we 
> are not in a window-system.So i modify the starting
> message of icicles.el like that:
> 
> (unless (or (and (fboundp 'daemonp) (daemonp))
... 
> It work fine here.

Thanks, Thierry. I've added that.

BTW, it seems that some people do use Icicles with a console (i.e. without a
window mgr). I would be interested in knowing how you do so - which key changes
you have made etc., in order to either provide for that as an option or at least
document some of your suggestions for other users. Thx.

Peter Dyballa | 2 Dec 11:03

Re: removing menubar and window frame


Am 02.12.2008 um 05:33 schrieb Chengqi(Lars) Song:

> To maximize the space for editing area, I want to hide manubar and the
> window-frame, but sometimes I need them so I also want to assign a
> hotkey to toggle them. Could you give any suggestion? Thank you.
>
> By the way, by "window-frame", I mean the outer frame of the window  
> with
> the window title, maximze/minimize/close buttons.

To me it's still not clear what you mean with "window-frame" – is it  
the "X window decoration" applied by an "X window manager" to the GNU  
Emacs X client frame (that can house a few "windows")? Or do you mean  
the fringe area(s)?

Maybe it's worth, for you, to check the entries in Options menu ->  
Show/Hide. By experimenting you might get exactly what you want.

--
Greetings

   Pete

Claiming that the Macintosh is inferior to Windows because most  
people use Windows, is like saying that all other restaurants serve  
food that is inferior to McDonald's.

Chetan | 2 Dec 04:32

Re: Gnuserv vs Emacsserver

Chetan <Chetan.xspam <at> xspam.sbcglobal.net> writes:

...

> I have wondered about swithing to emacsserver for some time. I have
> been using gnuclient for a long time (on W32). Changing over to
> emacsserver became a possibility with emacs 22, but I haven't yet done
> it.
>
> For my style of working, I find there are irritations in switching
> over. I wonder if anybody has any solution.
>
> 1. My version of gnuclient starts emacs (if it can find it) if it
> cannot connect to a running instance. I could, of course, make sure it
> is running before I use it.
>
> 2. Irrespective of whether I am running emacs 21 or 22, it can still
> connect.
>
> 3. The biggest irritant is that if I start another instance of emacs,
> either by mistake or because I want to do something in a console
> window, it clobbers my previous instance. With gnuserve, it fails with
> a dialog box, which is also irritating, but it works the way I want
> it. Ideally I would not like to keep changing the commandline, but I
> don't see how I would do it even with that.
>
> 4. I need to change too many places in the system registry where it
> invokes gnuclient. I can perhaps do that if I can handle the others.
>
> Chetan
(Continue reading)

Xah Lee | 1 Dec 19:22

Re: wikipedia's (ascii) math notation? emacs easy-way to translate it?

On Dec 1, 6:08 am, David Hansen <david.han...@gmx.net> wrote:
> On Mon, 01 Dec 2008 12:31:23 +0100 Sven Utcke wrote:
>
> > dkco...@panix.com (David Combs) writes:
>
> >> I see this stuff in math articles in wikipedia -- uses some kind
> >> of ascii math-notation.  What is it?
>
> It's called TeX.  Probably the best type setting software out there.

that's one of the myth among open source tech geekers.

TeX is proprobably not among one of the best tool among typesetting
professionals.

When tech geekers speak of TeX, they often speak of in the domain of
mathematical knowledge presentation and publishing. In the math
knowledge presentation, i am a expert, and personally known that
Mathematica is a ORDER OF MAGNITUDE better than TeX. Mathematica is a
order of magnitude better because its typesetting system not only
passively show math formulas as a pretty printing system, but the
markup syntax is also semantically meaningful. (for example, when you
type set x^2/x^3, it actually knows that it is x^(2/3) and you can
have it automatically simplify the expression or computer numerical
values). Having a math typesetting system that also has semantic
meaning is part of the expressed goal of MathML (which started after
Mathematica had such a system is heavily influened by Wolfram
Research). However, so far MathML never caught up.

See:
(Continue reading)

Maarten Bergvelt | 1 Dec 17:46
Favicon

Re: auto-save missing

On 2008-12-01, Jagadeesh <mnjagadeesh <at> gmail.com> wrote:
> On Dec 1, 8:20 pm, Chetan <Chetan.xs...@xspam.sbcglobal.net> wrote:
>> Jagadeesh <mnjagade...@gmail.com> writes:
>> >             Hi,
>> >  I have noticed today that auto-save.el file is missing. Is there
>> > anyway I can download this file alone? Thanks
>>
>> I didn't know there was such a file. What does it provide?
>
> I am newbie. coming from vim.
>
> When I start emacs complains file load error: auto-save.el

So you have something in your .emacs that causes this error (Warning: Crystal
Ball in Operation). Investigate your .emacs file. We don't have it so
we cannot help. (Crystal balls are not that powerful).

--

-- 
Maarten Bergvelt		

Rupert Swarbrick | 1 Dec 20:54
Gravatar

What to use instead of find-if?


I was messing around last night and added a small feature to my local
copy of gnus. Cool. I reckon it'd be useful in general, so I was going
to post it to ding. Cool.

However

Looking back at the code, I realised I used cl's find-if (I know
somewhat more common lisp than elisp). And gnus doesn't (require
'cl). So the code I'm thinking about does the following:

  (let ((blah
         (find-if (lambda (elem)
                    (whopping-great-predicatey-thing))
                  some-list)))
    (if blah
        (something using blah)
      (something else)))

Can anyone suggest a vaguely idiomatic way to do this using the built-in
constructs of elisp? This is a genuine question, by the way. I'm sure
I'm being thick not spotting a neat way to write this.

Rupert
Rupert Swarbrick | 1 Dec 20:50
Gravatar

What to use instead of find-if?

--=-=-=

I was messing around last night and added a small feature to my local
copy of gnus. Cool. I reckon it'd be useful in general, so I was going
to post it to ding. Cool.

However

Looking back at the code, I realised I used cl's find-if (I know
somewhat more common lisp than elisp). And gnus doesn't (require
'cl). So the code I'm thinking about does the following:

  (let ((blah
         (find-if (lambda (elem)
                    (whopping-great-predicatey-thing))
                  some-list)))
    (if blah
        (something using blah)
      (something else)))

Can anyone suggest a vaguely idiomatic way to do this using the built-in
constructs of elisp? This is a genuine question, by the way. I'm sure
I'm being thick not spotting a neat way to write this.

Rupert

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
(Continue reading)

aartist | 1 Dec 20:11

Re: perl indentation

On Dec 1, 11:13 am, Jagadeesh <mnjagade...@gmail.com> wrote:
> Hi,
> Again this is a newbie question.
>
> how do I indent perl code? Is there any key?
>
> Thanks
> Jagadeesh

M-x cperl-mode

Drew Adams | 1 Dec 19:29
Favicon

RE: change "word" definition (syntax table) for double-click?

> What I want is for double-clicking with the mouse to highlight,
> as a word, all contiguous non-whitespace characters.

By "highlight", I think you mean "select", as in setting the active region to
that text.

> Some sample applications I want this for are:
> o   Double-clicking in the middle of URLs.
> o   Double-clicking in the middle of RFC822-compliant email addresses.
> o   Double-clicking in the middle of passwords and other strings
>     having non-alphanumeric characters.

Easy solution: `M-x goto-address'. That will put links on URLs and email
addresses, which you can then click (single-click) with mouse-2 (and mouse-1, if
`mouse-1-click-follows-link' is non-nil). See the Emacs manual, node
Hyperlinking, and its subnodes.

If you don't like that for some reason, and you really want to change
double-clicking mouse-2 so that it selects such things, then read on.

Emacs already does that too, at least for many URLs etc. and at least in some
modes, such as Emacs-Lisp mode. That is, provided you double-click (with
mouse-2) on a symbol-constituent character, such as :/.?=@. If you instead
double-click a word-constituent character, then just that word is selected.

For example, in Emacs-Lisp mode, if you double-click the URL
http://www.emacswiki.org/emacs/SiteMap at the : or a / or a ., then the whole
URL is selected. And in the email address help-gnu-emacs <at> gnu.org, if you
double-click a - or the @ or the ., then the whole address is selected.

(Continue reading)


Gmane