all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* hide-ifdef
@ 2008-05-27  9:14 tomer
  2008-05-27  9:59 ` hide-ifdef Rupert Swarbrick
  2008-05-27 17:33 ` hide-ifdef Alan
  0 siblings, 2 replies; 4+ messages in thread
From: tomer @ 2008-05-27  9:14 UTC (permalink / raw)
  To: help-gnu-emacs

I need to use hide-ifdef.el with other langauge than c. which the
semantic of ifdef else endif  is little different than c.
I have the source code of hide-ifdef and i found the place to change
it.
my question is:
How can I overide the installed  hide-ifdef to and use the source code
i have changed ?
Thanks
Tomer


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

* Re: hide-ifdef
  2008-05-27  9:14 hide-ifdef tomer
@ 2008-05-27  9:59 ` Rupert Swarbrick
  2008-05-27 14:05   ` hide-ifdef tomer
  2008-05-27 17:33 ` hide-ifdef Alan
  1 sibling, 1 reply; 4+ messages in thread
From: Rupert Swarbrick @ 2008-05-27  9:59 UTC (permalink / raw)
  To: help-gnu-emacs

tomer <tomer1levin@walla.co.il> writes:

> I need to use hide-ifdef.el with other langauge than c. which the
> semantic of ifdef else endif  is little different than c.
> I have the source code of hide-ifdef and i found the place to change
> it.
> my question is:
> How can I overide the installed  hide-ifdef to and use the source code
> i have changed ?
> Thanks
> Tomer

Yes. Indeed, when you're trying stuff out, it's probably best to edit
a copy and C-x C-e after the changed defuns to make sure your code
does what it's supposed to do.

After that, what I'd do is plonk your new version somewhere and ensure
that the directory of the new version is earlier on your load-path
than that of the official one. Then (require 'hide-ifdef) (or whatever
the correct syntax is) will get your new version.

Rupert


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

* Re: hide-ifdef
  2008-05-27  9:59 ` hide-ifdef Rupert Swarbrick
@ 2008-05-27 14:05   ` tomer
  0 siblings, 0 replies; 4+ messages in thread
From: tomer @ 2008-05-27 14:05 UTC (permalink / raw)
  To: help-gnu-emacs

On May 27, 12:59 pm, Rupert Swarbrick <rswarbr...@gmail.com> wrote:
> tomer <tomer1le...@walla.co.il> writes:
> > I need to use hide-ifdef.el with other langauge than c. which the
> > semantic of ifdef else endif  is little different than c.
> > I have the source code of hide-ifdef and i found the place to change
> > it.
> > my question is:
> > How can I overide the installed  hide-ifdef to and use the source code
> > i have changed ?
> > Thanks
> > Tomer
>
> Yes. Indeed, when you're trying stuff out, it's probably best to edit
> a copy and C-x C-e after the changed defuns to make sure your code
> does what it's supposed to do.
>
> After that, what I'd do is plonk your new version somewhere and ensure
> that the directory of the new version is earlier on your load-path
> than that of the official one. Then (require 'hide-ifdef) (or whatever
> the correct syntax is) will get your new version.
>
> Rupert

Thanks a lot for the help !!!
Its great to see the power of the open source comunity !!!


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

* Re: hide-ifdef
  2008-05-27  9:14 hide-ifdef tomer
  2008-05-27  9:59 ` hide-ifdef Rupert Swarbrick
@ 2008-05-27 17:33 ` Alan
  1 sibling, 0 replies; 4+ messages in thread
From: Alan @ 2008-05-27 17:33 UTC (permalink / raw)
  To: help-gnu-emacs

On May 27, 4:14 am, tomer <tomer1le...@walla.co.il> wrote:
> I need to use hide-ifdef.el with other langauge than c. which the
> semantic of ifdef else endif  is little different than c.
> I have the source code of hide-ifdef and i found the place to change
> it.
> my question is:
> How can I overide the installed  hide-ifdef to and use the source code
> i have changed ?
> Thanks
> Tomer

You can use an entry in "after-load-alist" to accomplish this, without
rearranging your load path.


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

end of thread, other threads:[~2008-05-27 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-27  9:14 hide-ifdef tomer
2008-05-27  9:59 ` hide-ifdef Rupert Swarbrick
2008-05-27 14:05   ` hide-ifdef tomer
2008-05-27 17:33 ` hide-ifdef Alan

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.