Hello,
After last night's update to emacs on F32, I can no longer use emacs with my default font.
When I fire it up, I get a second window open and the following:
Warning (initialization): An error occurred while loading ‘/home/user/.emacs’:
Symbol's function definition is void: set-default-font
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the ‘--debug-init’ option to view a complete error backtrace.
----------------
My own .emacs has the following set at:
(set-default-font "10x20")
Any suggestions as to what I should look at/change?
Many thanks and best wishes, Ranjan
On Tue, Aug 25, 2020 at 4:14 PM Ranjan Maitra maitra@email.com wrote:
My own .emacs has the following set at:
(set-default-font "10x20")
Any suggestions as to what I should look at/change?
The Emacs NEWS file says that set-default-font was one of many obsolete functions that were removed in version Emacs 27. The NEWS.20 file notes:
** set-default-font has been renamed to set-frame-font
I found this with "grep -Fr set-default-font /usr/share/emacs/27.1/etc".
On Tue, 25 Aug 2020 17:13:53 -0500 Ranjan Maitra wrote:
Symbol's function definition is void: set-default-font
That says there is no such function as set-default-font (which is strange because my emacs on fedora 32 certainly has that function defined).
On Tue, 25 Aug 2020 16:28:15 -0600 Jerry James wrote:
** set-default-font has been renamed to set-frame-font
My emacs claims set-default-font is an alias defined in frame.el (for set-frame-font).
And the way to make a font be the default in all frames seems to be modifying the initial-frame-alist and default-frame-alist variables.
On Tue, 25 Aug 2020 16:28:15 -0600 Jerry James loganjerry@gmail.com wrote:
On Tue, Aug 25, 2020 at 4:14 PM Ranjan Maitra maitra@email.com wrote:
My own .emacs has the following set at:
(set-default-font "10x20")
Any suggestions as to what I should look at/change?
The Emacs NEWS file says that set-default-font was one of many obsolete functions that were removed in version Emacs 27. The NEWS.20 file notes:
** set-default-font has been renamed to set-frame-font
I found this with "grep -Fr set-default-font /usr/share/emacs/27.1/etc".
Jerry James http://www.jamezone.org/
Jerry, thanks very much! Replacing set-default-font with set-frame-font has provided a solution.
Many thanks again, and best wishes, Ranjan