unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: dired.c
Date: Sun, 24 Apr 2011 23:08:50 -0700	[thread overview]
Message-ID: <4DB50FF2.6060906@cs.ucla.edu> (raw)
In-Reply-To: <5B0C3CF2-85D0-4D68-BFA1-B30B19F8A36C@gmail.com>

On 04/23/11 01:57, Andrea Crotti wrote:
> #include <setjmp.h>

> So why is not included in lisp.h instead?
> What's the reason to do such a thing?

I expect this has to do with how Emacs was configured,
long ago, and that whatever reasons applied way back then
are no longer relevant.

Perhaps we should move the setjmp-related part of lisp.h
into a different header, anyway, for modularity purposes?
Only a few modules (alloc.c and eval.c come to mind)
need to know about the internals of struct handler and
struct catchtag, surely.  We could call this new header
"throw-catch.h", say.  Then, throw-catch.h could include
setjmp.h and we could banish setjmp.h from most of Emacs's
source code.



  reply	other threads:[~2011-04-25  6:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-23  8:57 dired.c Andrea Crotti
2011-04-25  6:08 ` Paul Eggert [this message]
2011-04-25  6:50   ` dired.c Eli Zaretskii
2011-04-25 13:40   ` dired.c Stefan Monnier
2011-04-26 11:58     ` dired.c Andrea Crotti
2011-05-04 19:53       ` dired.c 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=4DB50FF2.6060906@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-devel@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 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).