From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: New session management patch.
Date: 28 Feb 2002 16:36:50 +0100 [thread overview]
Message-ID: <5xofi91uul.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <200202270551.g1R5p6k17632@aztec.santafe.edu>
"Jan D." <Jan.Djarv@mbox200.swipnet.se> writes:
> ...
>
> I have incorporated your ideas almost verbatim, Your remark about the
> problem of restore is well put. Also a default filename makes it
> easier for functions to save state.
>
I think your patch is in very good shape now. RMS already commented
on a few things, but other than that, there are only minor things I would
like to suggest you change:
1) Maybe you should use [.]emacs-session.%s for the save file name
rather than just [.]emacs.%s
2) The first line of the doc-string for emacs-session-save could be a little
more generic, as the functionality is explained in the text, i.e. change:
"Run the `emacs-save-session-functions' when window system is closing.
into something like
"This function is called when the window system wants emacs to terminate.
If this function returns non-nil, the window system shutdown is cancelled.
> But I haven't made variables for functions emacs-session-save and
> emacs-session-restore. I figured that anyone can redefine the
> functions if they so wish.
>
That is ok. Other parts of emacs "core" already calls lisp level
functions in the same way.
Richard Stallman <rms@gnu.org> writes:
> + if (proglen+len+1 <= MAXPATHLEN)
> + {
> + char maybe[MAXPATHLEN+1];
>
> That is an arbitrary limit, so please remove it. openp avoids having
> such a limit.
alloca is your friend :-)
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2002-02-28 15:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-17 19:11 Session management patch, please comment Jan D.
2002-02-19 6:37 ` Richard Stallman
2002-02-19 8:40 ` Kim F. Storm
2002-02-19 20:13 ` Jan D.
2002-02-19 20:12 ` Jan D.
2002-02-19 22:43 ` Kim F. Storm
2002-02-20 20:29 ` Jan Djärv
2002-02-20 22:50 ` Kim F. Storm
2002-02-21 19:57 ` Jan D.
2002-02-21 21:18 ` Kim F. Storm
2002-02-26 22:49 ` New session management patch Jan D.
2002-02-27 5:51 ` Richard Stallman
2002-02-27 10:23 ` Eli Zaretskii
2002-02-27 15:25 ` Andreas Schwab
2002-02-27 18:11 ` Colin Walters
2002-02-28 4:08 ` Richard Stallman
2002-02-27 19:43 ` Jan D.
2002-02-28 18:22 ` Richard Stallman
2002-02-28 15:36 ` Kim F. Storm [this message]
2002-03-01 1:11 ` Richard Stallman
2002-02-22 4:32 ` Session management patch, please comment Richard Stallman
2002-02-20 22:13 ` Richard Stallman
2002-02-21 20:01 ` Jan D.
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=5xofi91uul.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--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 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.