all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* what is copy-list?
@ 2011-01-21  6:28 rusi
  2011-01-21  6:30 ` Pascal J. Bourguignon
  2011-01-21  7:48 ` Tim X
  0 siblings, 2 replies; 11+ messages in thread
From: rusi @ 2011-01-21  6:28 UTC (permalink / raw)
  To: help-gnu-emacs

Im trying to use fsharp mode

It was working till yesterday

But today its barfing on (or around) the line

(setq minor-mode-map-alist (assq-delete-all 'compilation-minor-mode
(copy-list minor-mode-map-alist)))

Well it seems theres nothing like copy-list.

But how was it earlier working??

Mystified...+


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21  6:28 what is copy-list? rusi
@ 2011-01-21  6:30 ` Pascal J. Bourguignon
  2011-01-21  6:43   ` rusi
  2011-01-21  7:48 ` Tim X
  1 sibling, 1 reply; 11+ messages in thread
From: Pascal J. Bourguignon @ 2011-01-21  6:30 UTC (permalink / raw)
  To: help-gnu-emacs

rusi <rustompmody@gmail.com> writes:

1> Im trying to use fsharp mode
>
> It was working till yesterday
>
> But today its barfing on (or around) the line
>
> (setq minor-mode-map-alist (assq-delete-all 'compilation-minor-mode
> (copy-list minor-mode-map-alist)))
>
> Well it seems theres nothing like copy-list.
>
> But how was it earlier working??

copy-list is defined in cl.

Add a:

   (require 'cl)

at the beginning of the file.



-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21  6:30 ` Pascal J. Bourguignon
@ 2011-01-21  6:43   ` rusi
  2011-01-21  6:44     ` rusi
                       ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: rusi @ 2011-01-21  6:43 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 21, 11:30 am, "Pascal J. Bourguignon" <p...@informatimago.com>
wrote:
> rusi <rustompm...@gmail.com> writes:
>
> 1> Im trying to use fsharp mode
>
>
>
> > It was working till yesterday
>
> > But today its barfing on (or around) the line
>
> > (setq minor-mode-map-alist (assq-delete-all 'compilation-minor-mode
> > (copy-list minor-mode-map-alist)))
>
> > Well it seems theres nothing like copy-list.
>
> > But how was it earlier working??
>
> copy-list is defined in cl.
>
> Add a:
>
>    (require 'cl)
>
> at the beginning of the file.

Aha Thanks !

But I am really getting fed up of emacs.  Theres not a mode Ive tried
recently that "just works"
I know you may say "Why blame emacs for an fsharp problem?"

But is the (require 'cl) not emacs cruft?


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21  6:43   ` rusi
@ 2011-01-21  6:44     ` rusi
  2011-01-21  6:57     ` Pascal J. Bourguignon
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: rusi @ 2011-01-21  6:44 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 21, 11:43 am, rusi <rustompm...@gmail.com> wrote:
> On Jan 21, 11:30 am, "Pascal J. Bourguignon" <p...@informatimago.com>
> wrote:
>
>
>
> > rusi <rustompm...@gmail.com> writes:
>
> > 1> Im trying to use fsharp mode
>
> > > It was working till yesterday
>
> > > But today its barfing on (or around) the line
>
> > > (setq minor-mode-map-alist (assq-delete-all 'compilation-minor-mode
> > > (copy-list minor-mode-map-alist)))
>
> > > Well it seems theres nothing like copy-list.
>
> > > But how was it earlier working??
>
> > copy-list is defined in cl.
>
> > Add a:
>
> >    (require 'cl)
>
> > at the beginning of the file.
>
> Aha Thanks !
>
> But I am really getting fed up of emacs.  Theres not a mode Ive tried
> recently that "just works"
> I know you may say "Why blame emacs for an fsharp problem?"
>
> But is the (require 'cl) not emacs cruft?

Sorry Pascal... In a bad mood... Ignore earlier mail...


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21  6:43   ` rusi
  2011-01-21  6:44     ` rusi
@ 2011-01-21  6:57     ` Pascal J. Bourguignon
  2011-01-21  8:15     ` Le Wang
       [not found]     ` <mailman.4.1295597760.27625.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 11+ messages in thread
From: Pascal J. Bourguignon @ 2011-01-21  6:57 UTC (permalink / raw)
  To: help-gnu-emacs

rusi <rustompmody@gmail.com> writes:
> But I am really getting fed up of emacs.  Theres not a mode Ive tried
> recently that "just works"
> I know you may say "Why blame emacs for an fsharp problem?"
>
> But is the (require 'cl) not emacs cruft?

Well, you could try to use an emacs written in Common Lisp (eg. Hemlock
or Climacs), but none come close to GNU emacs in number and
sophistication of add-on libraries and modes.

Of course, if you have to write the mode yourself because you're using
a new language, you could as well write it for Hemlock as for GNU
emacs.  On the other hand, the GNU emacs users count several orders of
magnitudes greater than the users of Hemlock, so it might still be
better to write it for GNU emacs.
 

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21  6:28 what is copy-list? rusi
  2011-01-21  6:30 ` Pascal J. Bourguignon
@ 2011-01-21  7:48 ` Tim X
  1 sibling, 0 replies; 11+ messages in thread
From: Tim X @ 2011-01-21  7:48 UTC (permalink / raw)
  To: help-gnu-emacs

rusi <rustompmody@gmail.com> writes:

> Im trying to use fsharp mode
>
> It was working till yesterday
>
> But today its barfing on (or around) the line
>
> (setq minor-mode-map-alist (assq-delete-all 'compilation-minor-mode
> (copy-list minor-mode-map-alist)))
>
> Well it seems theres nothing like copy-list.
>
> But how was it earlier working??
>
> Mystified...+

Wow, you really don't provide a hell of a lot to go on!

Emacs version? 
fsharp version? 
Actual error message?

FWIW copy-list is a function in the cl package. 

Tim

-- 
tcross (at) rapttech dot com dot au


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21  6:43   ` rusi
  2011-01-21  6:44     ` rusi
  2011-01-21  6:57     ` Pascal J. Bourguignon
@ 2011-01-21  8:15     ` Le Wang
       [not found]     ` <mailman.4.1295597760.27625.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 11+ messages in thread
From: Le Wang @ 2011-01-21  8:15 UTC (permalink / raw)
  To: rusi; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

On Fri, Jan 21, 2011 at 2:43 PM, rusi <rustompmody@gmail.com> wrote:

> But is the (require 'cl) not emacs cruft?
>

Not really.  Not requiring functions and macros before calling them is a bug
in fsharp-mode.  Whether or not 'cl should be provided as the default is
another issue all together.  The reality is that if you customize your emacs
in any significant way, you'll probably load something that requires 'cl at
runtime.  However anything that makes it into GNU Emacs must not require 'cl
at runtime.  This is the current policy, but lots of people disagree with
it.

-- 
Le

[-- Attachment #2: Type: text/html, Size: 858 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
       [not found]     ` <mailman.4.1295597760.27625.help-gnu-emacs@gnu.org>
@ 2011-01-21  8:39       ` rusi
  2011-01-21 13:56       ` Barry Margolin
  1 sibling, 0 replies; 11+ messages in thread
From: rusi @ 2011-01-21  8:39 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 21, 1:15 pm, Le Wang <l26w...@gmail.com> wrote:
> On Fri, Jan 21, 2011 at 2:43 PM, rusi <rustompm...@gmail.com> wrote:
> > But is the (require 'cl) not emacs cruft?
>
> Not really.  Not requiring functions and macros before calling them is a bug
> in fsharp-mode.  Whether or not 'cl should be provided as the default is
> another issue all together.  The reality is that if you customize your emacs
> in any significant way, you'll probably load something that requires 'cl at
> runtime.  However anything that makes it into GNU Emacs must not require 'cl
> at runtime.  This is the current policy, but lots of people disagree with
> it.
>
> --
> Le

CL (non-inclusion) is emacs cruft
See http://lists.gnu.org/archive/html/help-gnu-emacs/2003-04/msg00944.html


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
       [not found]     ` <mailman.4.1295597760.27625.help-gnu-emacs@gnu.org>
  2011-01-21  8:39       ` rusi
@ 2011-01-21 13:56       ` Barry Margolin
  2011-01-22  5:08         ` rusi
  1 sibling, 1 reply; 11+ messages in thread
From: Barry Margolin @ 2011-01-21 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.4.1295597760.27625.help-gnu-emacs@gnu.org>,
 Le Wang <l26wang@gmail.com> wrote:

> On Fri, Jan 21, 2011 at 2:43 PM, rusi <rustompmody@gmail.com> wrote:
> 
> > But is the (require 'cl) not emacs cruft?
> >
> 
> Not really.  Not requiring functions and macros before calling them is a bug
> in fsharp-mode.  Whether or not 'cl should be provided as the default is
> another issue all together.  The reality is that if you customize your emacs
> in any significant way, you'll probably load something that requires 'cl at
> runtime.  However anything that makes it into GNU Emacs must not require 'cl
> at runtime.  This is the current policy, but lots of people disagree with
> it.

It's not fsharp-mode that requires cl, it's his .emacs that's trying to 
use a cl function to perform some customization of it.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-21 13:56       ` Barry Margolin
@ 2011-01-22  5:08         ` rusi
  2011-01-23 19:15           ` Barry Margolin
  0 siblings, 1 reply; 11+ messages in thread
From: rusi @ 2011-01-22  5:08 UTC (permalink / raw)
  To: help-gnu-emacs

On Jan 21, 6:56 pm, Barry Margolin <bar...@alum.mit.edu> wrote:
>
> It's not fsharp-mode that requires cl, it's his .emacs that's trying to
> use a cl function to perform some customization of it.

This code is from the inferior-fsharp-mode function in inf-fsharp.el
from
http://sourceforge.net/projects/fsharp-mode/

(assq-delete-all 'compilation-minor-mode (copy-list minor-mode-map-
alist))

When a (require 'cl) is added to the file the problem goes away.

The problem does not usually surface because the require is there in
other (fsharp related) el files which require cl.

If that is not a require problem with the fsharp mode, there is
something very basic I dont understand (Not claiming I know emacs/
elisp very well)


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: what is copy-list?
  2011-01-22  5:08         ` rusi
@ 2011-01-23 19:15           ` Barry Margolin
  0 siblings, 0 replies; 11+ messages in thread
From: Barry Margolin @ 2011-01-23 19:15 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]

In article 
<11259169-25fc-435e-99dc-536d8c2adf69@r16g2000prh.googlegroups.com>,
 rusi <rustompmody@gmail.com> wrote:

> On Jan 21, 6:56 pm, Barry Margolin <bar...@alum.mit.edu> wrote:
> >
> > It's not fsharp-mode that requires cl, it's his .emacs that's trying to
> > use a cl function to perform some customization of it.
> 
> This code is from the inferior-fsharp-mode function in inf-fsharp.el
> from
> http://sourceforge.net/projects/fsharp-mode/
> 
> (assq-delete-all 'compilation-minor-mode (copy-list minor-mode-map-
> alist))
> 
> When a (require 'cl) is added to the file the problem goes away.
> 
> The problem does not usually surface because the require is there in
> other (fsharp related) el files which require cl.
> 
> If that is not a require problem with the fsharp mode, there is
> something very basic I dont understand (Not claiming I know emacs/
> elisp very well)

I misunderstood the original post, I thought he was trying to customize 
fsharp-mode.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-23 19:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21  6:28 what is copy-list? rusi
2011-01-21  6:30 ` Pascal J. Bourguignon
2011-01-21  6:43   ` rusi
2011-01-21  6:44     ` rusi
2011-01-21  6:57     ` Pascal J. Bourguignon
2011-01-21  8:15     ` Le Wang
     [not found]     ` <mailman.4.1295597760.27625.help-gnu-emacs@gnu.org>
2011-01-21  8:39       ` rusi
2011-01-21 13:56       ` Barry Margolin
2011-01-22  5:08         ` rusi
2011-01-23 19:15           ` Barry Margolin
2011-01-21  7:48 ` Tim X

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.