all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Luke Lee <luke.yx.lee@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Fwd: Update earlier posted hideif.el enhancements
Date: Tue, 03 Dec 2013 08:45:09 -0500	[thread overview]
Message-ID: <jwv38maxdqb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAA=xLRPNwribRnjX51=JrjpmBGtFNKWe-Ue_zKtr5uoAz_=5Mw@mail.gmail.com> (Luke Lee's message of "Tue, 3 Dec 2013 12:33:54 +0800")

> Umm, here I only comment out the "make-local-variable" for hide-ifdef-env.
> Otherwise the defined tokens works only for that buffer.  I would like it to
> work for all currently openned buffers in a "project" based manner.

Hmm... I see.

Affecting the value globally would also affect buffers that are
unrelated.  Sadly we don't really have an easy way currently to talk
about project-wide settings.

I guess we should use the CEDET infrastructure for that (which would
also make it possible to scan files which aren't currently visited).

But I guess for now we can try your "quick&dirty" solution of making the
settings global.

> The "set" form derived from the original code.

Ah, right.  Then just replace "(set 'hide-ifdef-env" with "(setq
hide-ifdef-env".  It's just a stylistic issue.

>> Indeed, there's been no real development on it in recently.  See my
>> comments below.  Overall, I think it looks good and could be included in
>> hideif.el, but I'd appreciate if you could clean up a few things first
>> and split the change into a few chunks (this is a bit large to review as
>> one single chunk).  IIUC one chunk would focus on extend the current
>> parser & evaluator to handle the full CPP syntax.
>> The remaining cleanups
> The remaining cleanups are done. The original code that I derived from
> contains a lot of ';;;' comments, I fixed most of them but left some since
> they looks like to be placed on purpose to become a separator there.

Thanks.  Fixing the pre-existing issues is gravy.  The main part is
to not make it worse ;-)

> Therefore it's extremely time consuming to cherry-pick among all those
> changes and group them into several valid topic patches, sorry about that...

I'm not asking you to cherry pick commits.  Instead you should take your
current code (call it "target") and remove "all but the parsing-related
modifications", for example (I usually do that with "C-x v d" then C-u
C-c C-a to undo the hunks that are not related, plus manual changes for
those hunks which contain both changes I want to keep and changes I want
to remove).  That gives you a first patch to send.  Then you diff the
result with your "target code" and remove "all but something else".

This does not use the commit history.  Instead it kind of "creates
a brand new and clean history".


        Stefan



  reply	other threads:[~2013-12-03 13:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08  1:59 Update earlier posted hideif.el enhancements Luke Lee
2013-11-08  2:54 ` Stefan Monnier
2013-11-08  4:07   ` Luke Lee
2013-11-24 17:50     ` Stefan Monnier
     [not found]       ` <CAA=xLROospEnRM_Es0bBkQUpC_RmrS-vQDxprD2it+fVDbVKog@mail.gmail.com>
2013-11-25  6:35         ` Fwd: " Luke Lee
2013-11-29 21:59           ` Stefan Monnier
2013-12-03  4:33             ` Luke Lee
2013-12-03 13:45               ` Stefan Monnier [this message]
2013-12-04  2:06                 ` Luke Lee
2013-12-04 15:28                   ` Luke Lee
2013-12-04 17:33                     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv38maxdqb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=luke.yx.lee@gmail.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.
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.