Thanks for the tips.2012/12/22 martin rudalics <rudalics@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