GNU bug report logs - #13251
Wishlist: Add ability to set initial buffer for new frames.

Previous Next

Package: emacs;

Reported by: Constantin Kulikov <zxnotdead <at> gmail.com>

Date: Fri, 21 Dec 2012 21:18:02 UTC

Severity: wishlist

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Constantin Kulikov <zxnotdead <at> gmail.com>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 13251 <at> debbugs.gnu.org
Subject: bug#13251: Wishlist: Add ability to set initial buffer for new frames.
Date: Sat, 22 Dec 2012 22:51:25 +0300
[Message part 1 (text/plain, inline)]
Thanks for the tips.



2012/12/22 martin rudalics <rudalics <at> gmx.at>

> > (defcustom initial-buffer-choice nil
> >   "Buffer to show after starting Emacs.
> > If the value is nil and `inhibit-startup-screen' is nil, show the
> > startup screen.  If the value is a string, visit the specified file
> > or directory using `find-file'.  If t, open the `*scratch*'
> > buffer. If function, switch to a buffer returned by this function.
>
> As for the last sentence I'd prefer "If it is a function, switch to the
> buffer returned by that function."
>
> > A string value also causes emacsclient to open the specified file
> > or directory when no target file is specified."
> >   :type '(choice
> >       (const     :tag "Startup screen" nil)
> >       (directory :tag "Directory" :value "~/")
> >       (file      :tag "File" :value "~/.emacs")
> >       (function  :tag "Function")
> >       (const     :tag "Lisp scratch buffer" t))
> >   :version "23.1"
>
> Too late for "23.1" use "24.4" instead.
>
> >   :group 'initialization)
> >
> > This code allows setting `initial-buffer-choice' to a function returning
> > needed buffer.
>
> Could you please send us a patch based on these remarks (including the
> change you sketched in your second mail)?
>
> Thanks, martin
>
[Message part 2 (text/html, inline)]
[initial-buffer-choice-as-function.patch (application/octet-stream, attachment)]

This bug report was last modified 12 years and 139 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.