Johan Bockgård | 1 Mar 01:57 2004
Picon
Picon

Re: A couple rudimentary elisp questions

exits funnel <exitsfunnel <at> yahoo.com> writes:

> 1) Is there no way to specify multi-line comments? I read the
> 'comments' section in the 'Emacs Lisp Reference Manual' and it seems
> to indicate not, but it seems kind of hard to believe.

Why? While Emacs Lisp does indeed not have multi-line comments, there
are commands in Emacs for commenting and uncommenting regions.

> I'm trying to write a custom c-style and it would be helpful if I
> could comment/uncomment large chunks of my .emacs file and reload it
> so I could try to figure out what's going on. If there really are no
> multi line comments is there any tricks for kludging it?

Reloading the entire file is the real kludge here. Reading this
section in the manual should be helpful:

(info "(emacs)Lisp Eval")

> 2) I see alot of lists of the form (foo . bar). What does the dot
> specify?

(info "(elisp)Dotted Pair Notation")

--

-- 
Johan Bockgård
Guldo K | 1 Mar 01:56 2004
Picon

Re: A couple rudimentary elisp questions

exits funnel <exitsfunnel <at> yahoo.com> writes:

> 1) Is there no way to specify multi-line comments?  I
> read the 'comments' section in the 'Emacs Lisp
> Reference Manual' and it seems to indicate not, but it
> seems kind of hard to believe.  I'm trying to write a
> custom c-style and it would be helpful if I could
> comment/uncomment large chunks of my .emacs file and
> reload it so I could try to figure out what's going
> on.  If there really are no multi line comments is
> there any tricks for kludging it?

I don't know of multiline comments, but I'm no emacs
expert, and no programmer either...
Anyway, perhaps you could use single-line commenting on a region;
lisp-interaction-mode and the comment-region command.
You have to mark the beginning of the region (C-spacebar)
to do so.

*Guldo*
exits funnel | 1 Mar 02:09 2004
Picon

Re: A couple rudimentary elisp questions

> Why? While Emacs Lisp does indeed not have
> multi-line comments, there
> are commands in Emacs for commenting and
> uncommenting regions.

Thanks.  I should have found these on my own.

> Reloading the entire file is the real kludge here.
> Reading this
> section in the manual should be helpful:
> 
> (info "(emacs)Lisp Eval")
> 
> > 2) I see alot of lists of the form (foo . bar).
> What does the dot
> > specify?
> 
> (info "(elisp)Dotted Pair Notation")

Thanks for both pointers. I will read them post haste
:)

-exits

__________________________________
Do you Yahoo!?
Get better spam protection with Yahoo! Mail.
http://antispam.yahoo.com/tools
Joe Corneli | 1 Mar 02:26 2004
Picon

Re: shuddering initial frame, dump-emacs, source

I got it working fine, thanks for your help. 

I think it is a little weird that you have to set the defaults in
two places.  

I also noticed the following: on the one hand, we have this:

M-: (equal (scroll-bar-mode . (())) (scroll-bar-mode nil))
t

But on the other hand, putting (scroll-bar-mode nil) into the
default-frame-alist causes the flickering appearance of a scroll
bar.  Is this a bug? How is Emacs detecting the fact that
(scroll-bar-mode nil) is not dotted?
Pascal Bourguignon | 1 Mar 03:17 2004

Re: A couple rudimentary elisp questions

exits funnel <exitsfunnel <at> yahoo.com> writes:

> Hello,
> 
> I'm pretty new to emacs and I've decided it's time to
> take a crack at some simple lisp.  I have a couple
> silly questions:
> 
> 1) Is there no way to specify multi-line comments?  I
> read the 'comments' section in the 'Emacs Lisp
> Reference Manual' and it seems to indicate not, but it
> seems kind of hard to believe.  I'm trying to write a
> custom c-style and it would be helpful if I could
> comment/uncomment large chunks of my .emacs file and
> reload it so I could try to figure out what's going
> on.  If there really are no multi line comments is
> there any tricks for kludging it?

In emacs lisp there's no multiline comment. You can use
comment-region / uncomment-region to comment several lines at once.

Otherwise you can use this trick: use a multi-line string as a
comment, like you do for documentation strings:

(defun my-fun ()
    " This
is the documentation
string of the function
my-fun that appears 
when you ask for the 
(Continue reading)

Tim McNamara | 1 Mar 03:19 2004
Picon

Re: Emacs on OS X - configuration package

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> I've looked briefly at this package and since I use Emacs under
>> Apple's X11 interface not Aqua, much of it would have to be altered
>> to be useful for me.
>
> For the X11 build of Emacs, I think we want to stay as "plain Emacs"
> as possible: people who want a Macish feel should use the Carbon
> version.

I use the X11 version because I prefer the way it "feels" to the Aqua
versions, and also because it seems faster under X11 than it did under
Aqua.  However, it would be good for people to have the option to
"Macify" the X11 build if they want- I guess.  But I agree that the
default for X11 should be the default POSIX-type standard unless the
user chooses to change it.

>> The Apple key, a.k.a. the Command (Cmd) key, serves as Meta
>> inconsistently.
>
> What do you mean by inconsistently?

<snip>

>> IME however, this is *highly* inconsistent, and may function
>> differently in Emacs built for Apple's Mac OS X Aqua interface
>> vs. the OS X X11
>
> Inconsistent with what?  Under X11, the Apple key appears as Meta,
> so it seems the defaults are consistent.
(Continue reading)

Floyd L. Davidson | 1 Mar 05:07 2004

Re: Newbie: Interactive goto-line ?!

Kai Grossjohann <kai <at> emptydomain.de> wrote:
>floyd <at> barrow.com (Floyd L. Davidson) writes:
>
>> This is indeed a significant problem.  I've tried, with no
>> success, to find a way to change font-lock face colors when
>> switching between major modes.  That is because what for me is
>> appropriate for C or Lisp programming is one set, which just
>> makes TeX too hard to look at, or the other way around.
>
>You could create faces fld-lisp-font-lock-comment-face and
>fld-c-font-lock-comment-face, and then do
>
>(make-local-variable 'font-lock-comment-face)
>(setq font-lock-comment-face 'fld-lisp-font-lock-command-face)
>
>in lisp-mode-hook and the corresponding thing in c-mode-hook.  Does it
>work?

Unfortunately, no it doesn't.  Whichever hook is run last, still
sets the colors for all other modes.

I tried a few variations on that too, and they all do
essentially the same.  I've used copy-face instead of setq to
change the font-lock- face.  I've used set-face-foreground to
change the color, and have tried it on the font-lock- face after
it has been changed, and on the fld-font-lock- face before it is
used to set the font-lock- face.

In all cases the results were the same.

(Continue reading)

Leo Alekseyev | 1 Mar 05:22 2004
Picon

Speedbar doesn't recognize double-clicks (Xemacs with Cygwin and Windows XP)

I am running XEmacs 21.4 with Cygwin under Windows XP.  I installed
Speedbar (the latest version), and despite the fact that it's supposed
to treat double-mouse-1 the same as mouse-2, it seems to ignore my
double-clicks.  This is highly inconvenient, since pressing both mouse
buttons at the same time to simulate mouse-2 is flaky, brings up the
unwanted context menu, etc.  Is this a known problem?  Is there a
fix?.. Please help!

--l
Johan Bockgård | 1 Mar 05:47 2004
Picon
Picon

Re: Newbie: Interactive goto-line ?!

floyd <at> barrow.com (Floyd L. Davidson) writes:

> Kai Grossjohann <kai <at> emptydomain.de> wrote:

>>You could create faces fld-lisp-font-lock-comment-face and
>>fld-c-font-lock-comment-face, and then do
>>
>>(make-local-variable 'font-lock-comment-face)
>>(setq font-lock-comment-face 'fld-lisp-font-lock-command-face)
>>
>>in lisp-mode-hook and the corresponding thing in c-mode-hook.  Does it
>>work?
>
> Unfortunately, no it doesn't.  Whichever hook is run last, still
> sets the colors for all other modes.

Was that in XEmacs rather than Emacs?

--

-- 
Johan Bockgård
Floyd L. Davidson | 1 Mar 07:12 2004

Re: Newbie: Interactive goto-line ?!

bojohan+news <at> dd.chalmers.se (Johan Bockgård) wrote:
>floyd <at> barrow.com (Floyd L. Davidson) writes:
>
>> Kai Grossjohann <kai <at> emptydomain.de> wrote:
>
>>>You could create faces fld-lisp-font-lock-comment-face and
>>>fld-c-font-lock-comment-face, and then do
>>>
>>>(make-local-variable 'font-lock-comment-face)
>>>(setq font-lock-comment-face 'fld-lisp-font-lock-command-face)
>>>
>>>in lisp-mode-hook and the corresponding thing in c-mode-hook.  Does it
>>>work?
>>
>> Unfortunately, no it doesn't.  Whichever hook is run last, still
>> sets the colors for all other modes.
>
>Was that in XEmacs rather than Emacs?

I did the testing in XEmacs.  However, spot checks with GNU Emacs
showed the same results with a few more quirks thrown in for
good measure (some of the things that work in XEmacs cause font-lock
to be erratic in GNU Emacs).

--
Floyd L. Davidson           <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)                         floyd <at> barrow.com

Gmane