unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
Cc: emacs-devel@gnu.org
Subject: Re: Contribution to SES (resend)
Date: Fri, 23 Apr 2010 14:14:33 -0400	[thread overview]
Message-ID: <jwvfx2mghxv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <80sk6mdpvz.fsf@gmail.com> ("Vincent Belaïche"'s message of "Fri, 23 Apr 2010 19:45:20 +0200")

>> And a different default doesn't seem like a strong enough
>> justification either.  You can easily add >v to your uses if you prefer it.

> OK, would you mind if there was some customizable variable
> ses-range-default-flags to hold a list of flags to copy by default to
> minibuffer when you insert a range. I really hate the <^ direction, and
> I find it painful to type every time this >v flag as you suggest.

Fine by me, as long as it only affects the function that inserts the
"(ses-range ...)" string.
Of course, maybe we could change the default ordering of ses-range.
IIUC it was chosen arbitrarily (the result of the implementation rather
than of design, AFAICT) and I expect that very few users of ses-range
depend on this ordering.

>>> Does the compiler factorize code well ?
>> It doesn't.  And if you use #N=...#N# to make cyclic code, it will
>> happily loop forever.
> I am not perverse enough (yet) to make any cyclic code for sure, just
> code factorization to diminish memory footprint of functions. Saving
> memory is not too bad an idea. Isn't it ? 

> Or, in other words, what is the alternative proper way that you propose
> to save the same amount of memory without the #N= & #N# constructs.

Using #N=..#N# in code won't save memory because the byte-compiler will
treat each #N# as a separate copy.  In your case, you used it inside
data rather than inside code, so it's less harmful and it does
save memory.  But in your particular situation, the use of `case' lets
you share the code just as easily.

> Yes, I did not expect that you would find them any better.  My question
> was rather whether adding them would be any worse ?

No, it'd be OK.


        Stefan





  reply	other threads:[~2010-04-23 18:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-23 17:45 Contribution to SES (resend) Vincent Belaïche
2010-04-23 18:14 ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-06-20 17:34 Vincent Belaïche
2010-04-24 19:35 Vincent Belaïche
2010-04-23  5:24 Vincent Belaïche
2010-04-23  6:24 ` Stefan Monnier
2010-04-22  7:56 Vincent Belaïche
2010-04-22  6:52 Vincent Belaïche
2010-04-22 21:54 ` Stefan Monnier

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=jwvfx2mghxv.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=vincent.b.1@hotmail.fr \
    /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.
Code repositories for project(s) associated with this public inbox

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

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).