* Enhancement to hideif.el
@ 2009-11-11 23:03 Joe Matarazzo
2009-11-12 4:13 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: Joe Matarazzo @ 2009-11-11 23:03 UTC (permalink / raw)
To: emacs-devel
Hi,
I added an enhancement to hideif.el, based on the 22.3.1 windows
distribution of Emacs, to recognize the #elif preprocessor directive.
I would like to contribute this improvement for future distributions.
I tried contacting the listed maintainer of this library, Daniel
LaLiberte (liberte@a.cs.uiuc.edu), but didn't receive a response.
Is there someone else I should follow up with to review these changes,
and potentially get them incorporated?
Thanks,
Joe
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Enhancement to hideif.el
2009-11-11 23:03 Enhancement to hideif.el Joe Matarazzo
@ 2009-11-12 4:13 ` Stefan Monnier
2009-11-13 21:23 ` Joe Matarazzo
[not found] ` <fp1vjqnlet.fsf@fencepost.gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-11-12 4:13 UTC (permalink / raw)
To: Joe Matarazzo; +Cc: emacs-devel
> I added an enhancement to hideif.el, based on the 22.3.1 windows
> distribution of Emacs, to recognize the #elif preprocessor directive.
> I would like to contribute this improvement for future distributions.
> I tried contacting the listed maintainer of this library, Daniel
> LaLiberte (liberte@a.cs.uiuc.edu), but didn't receive a response.
The file's "Maintainer" lists "FSF" (the "Author" part is just
historical information), so this is the right place.
> Is there someone else I should follow up with to review these changes,
> and potentially get them incorporated?
You can send it via M-x report-emacs-bug, or just send it here.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Enhancement to hideif.el
2009-11-12 4:13 ` Stefan Monnier
@ 2009-11-13 21:23 ` Joe Matarazzo
[not found] ` <fp1vjqnlet.fsf@fencepost.gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Joe Matarazzo @ 2009-11-13 21:23 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
Hi - I've attached both a patch file and the modified version.
I look forward to any feedback you might have to offer.
Thanks,
Joe
On Wed, Nov 11, 2009 at 8:13 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> I added an enhancement to hideif.el, based on the 22.3.1 windows
>> distribution of Emacs, to recognize the #elif preprocessor directive.
>> I would like to contribute this improvement for future distributions.
>> I tried contacting the listed maintainer of this library, Daniel
>> LaLiberte (liberte@a.cs.uiuc.edu), but didn't receive a response.
>
> The file's "Maintainer" lists "FSF" (the "Author" part is just
> historical information), so this is the right place.
>
>> Is there someone else I should follow up with to review these changes,
>> and potentially get them incorporated?
>
> You can send it via M-x report-emacs-bug, or just send it here.
>
>
> Stefan
>
[-- Attachment #2: hideif.zip --]
[-- Type: application/zip, Size: 12978 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <fp1vjqnlet.fsf@fencepost.gnu.org>]
* bug#5013: Enhancement to hideif.el
[not found] ` <fp1vjqnlet.fsf@fencepost.gnu.org>
@ 2011-03-01 4:31 ` Tony Hecker
2016-02-28 6:34 ` Lars Ingebrigtsen
2016-02-29 2:26 ` Lars Ingebrigtsen
2 siblings, 0 replies; 7+ messages in thread
From: Tony Hecker @ 2011-03-01 4:31 UTC (permalink / raw)
To: 5013
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
Hi,
I tested the hideif.el patch from Joe. It works in some cases but does not
seem to work with a series of #elif's like this case:
#if 0
function1();
#elif 1
function2(); // should not be hidden but is hidden
#elif 0
function3();
#elif 0
function4();
#endif
I do not have a fix (at least not right now).
Thanks,
Tony
[-- Attachment #2: Type: text/html, Size: 391 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#5013: Enhancement to hideif.el
[not found] ` <fp1vjqnlet.fsf@fencepost.gnu.org>
2011-03-01 4:31 ` bug#5013: " Tony Hecker
@ 2016-02-28 6:34 ` Lars Ingebrigtsen
2016-02-28 10:05 ` Andreas Schwab
2016-02-29 2:26 ` Lars Ingebrigtsen
2 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-28 6:34 UTC (permalink / raw)
To: Joe Matarazzo; +Cc: 5013
Joe Matarazzo <joe.matarazzo@gmail.com> writes:
> Severity: wishlist
> Tags: patch
>
> [ Resent from
> http://lists.gnu.org/archive/html/emacs-devel/2009-11/msg00426.html ]
>
> Hi - I've attached both a patch file and the modified version.
>
> I look forward to any feedback you might have to offer.
[...]
> ;;; hideif.el --- hides selected code within ifdef
>
> ;; Copyright (C) 1988, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
> ;; Free Software Foundation, Inc.
Included was the entire changed version of hideif.el, so it's difficult
to review. If this is still an issue all these years later, could you
submit a patch instead?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#5013: Enhancement to hideif.el
[not found] ` <fp1vjqnlet.fsf@fencepost.gnu.org>
2011-03-01 4:31 ` bug#5013: " Tony Hecker
2016-02-28 6:34 ` Lars Ingebrigtsen
@ 2016-02-29 2:26 ` Lars Ingebrigtsen
2 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-29 2:26 UTC (permalink / raw)
To: Joe Matarazzo; +Cc: 5013
Joe Matarazzo <joe.matarazzo@gmail.com> writes:
> (defun hif-ifdef-to-endif ()
> - "If positioned at #ifX or #else form, skip to corresponding #endif."
> + "If positioned at #ifX, #elif, or #else form, skip to corresponding #endif."
> ;; (message "hif-ifdef-to-endif at %d" (point)) (sit-for 1)
> (hif-find-next-relevant)
> (cond ((hif-looking-at-ifX)
> (hif-ifdef-to-endif) ; find endif of nested if
> (hif-ifdef-to-endif)) ; find outer endif or else
> + ((hif-looking-at-elif)
> + (hif-ifdef-to-endif))
> ((hif-looking-at-else)
> (hif-ifdef-to-endif)) ; find endif following else
> ((hif-looking-at-endif)
> @@ -585,11 +590,14 @@
> (cond ((hif-looking-at-endif)
> (hif-endif-to-ifdef) ; find beginning of nested if
> (hif-endif-to-ifdef)) ; find beginning of outer if or else
> + ((hif-looking-at-elif)
> + (hif-endif-to-ifdef))
> ((hif-looking-at-else)
> (hif-endif-to-ifdef))
> ((hif-looking-at-ifX)
> 'done)
> - (t))) ; never gets here
> + (t
> + (error "Mismatched #endif")))) ; never gets here
This looks very much like the code currently in hideif.el, so I guess
this was applied already? Closing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-02-29 2:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11 23:03 Enhancement to hideif.el Joe Matarazzo
2009-11-12 4:13 ` Stefan Monnier
2009-11-13 21:23 ` Joe Matarazzo
[not found] ` <fp1vjqnlet.fsf@fencepost.gnu.org>
2011-03-01 4:31 ` bug#5013: " Tony Hecker
2016-02-28 6:34 ` Lars Ingebrigtsen
2016-02-28 10:05 ` Andreas Schwab
2016-02-29 2:26 ` Lars Ingebrigtsen
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.