GNU bug report logs -
#13251
Wishlist: Add ability to set initial buffer for new frames.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
argh. :( Sorry made a small typo in patch attached in previous message.
2012/12/22 Constantin Kulikov <zxnotdead <at> gmail.com>
> 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 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.