all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: How to expertly fold perl or other scripting code.
Date: Mon, 21 Sep 2009 17:51:01 +1000	[thread overview]
Message-ID: <87eiq091ne.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.7099.1253464623.2239.help-gnu-emacs@gnu.org

Harry Putnam <reader@newsguy.com> writes:

> Tim X <timx@nospam.dev.null> writes:
>
>> I personally find outline of limited use when it comes to folding
>> code. However, there are a few folding modes out there (check the emacs
>> wiki). I use an old mode called folding.el (which is bundled in the
>> emacs-goodies debian package. It works quite well, is easy to install
>> and provides good functionality. 
>
> Tim, does it byte-compile with emacs 23? for you.
>
> I get what looks like some errors that will require editing.
> When byte-compiling the version offered at the wiki you cite:
>
> http://git.savannah.gnu.org/cgit/emacs-tiny-tools.git/tree/lisp/other/folding.el?h=devel
>
> Maybe the debian pkg has an edited version?
> =====     *     =====     *     =====     *     =====
>  
> In folding-install-keymaps:
> folding.el:2360:8:Warning: `mapcar' called for effect; use `mapc' or `dolist'
>     instead
>
> In folding-event-posn:
> folding.el:2669:7:Warning: `error' called with 1 args to fill 0 format
>     field(s)
> folding.el:2671:5:Warning: `error' called with 1 args to fill 0 format
>     field(s)
>
> In folding-is-hooked:
> folding.el:2702:39:Warning: `write-file-hooks' is an obsolete variable (as of
>     Emacs 22.1); use `write-file-functions' instead.
> folding.el:2703:39:Warning: `find-file-hooks' is an obsolete variable (as of
>     Emacs 22.1); use `find-file-hook' instead.
>
> In folding-install-hooks:
> folding.el:2718:38:Warning: `write-file-hooks' is an obsolete variable (as of
>     Emacs 22.1); use `write-file-functions' instead.
>
> In folding-mode-add-find-file-hook:
> folding.el:2996:37:Warning: `find-file-hooks' is an obsolete variable (as of
>     Emacs 22.1); use `find-file-hook' instead.

Hi Harry,

to be honest, I have no idea. The package is automatically built when
you install it and I've not looked at the compile output. It seems to
work. 

Note that there are at least three packages called folding.el. The one
use is an old one that has ben around for a while (last update I think
was in 2004). There were other versions that attempted to update how
the package owrked using 'newer' emacs features. 

I'll try to look and see what version info I can find in the source
file.

Not sure how many of those 'warnings' are a real issue. The ones about
obsolete versions of functions can be ignored. The ones concerning wrong
number of arguments may be a concern. 


Tim
>

-- 
tcross (at) rapttech dot com dot au


      parent reply	other threads:[~2009-09-21  7:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-19 21:58 How to expertly fold perl or other scripting code Harry Putnam
2009-09-19 23:16 ` Andreas Politz
2009-09-20  1:44   ` Bernardo
2009-09-20 17:24     ` Harry Putnam
2009-09-20 22:31       ` Wang Lei
     [not found] ` <mailman.7073.1253402286.2239.help-gnu-emacs@gnu.org>
2009-09-20  4:01   ` Tim X
2009-09-20  5:22     ` Wang Lei
2009-09-20 16:36     ` Harry Putnam
     [not found]     ` <mailman.7099.1253464623.2239.help-gnu-emacs@gnu.org>
2009-09-21  7:51       ` Tim X [this message]

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=87eiq091ne.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /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.