unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "George L. Roman" <glroman@gmail.com>
Cc: 53538@debbugs.gnu.org
Subject: bug#53538: 27.2; default-major-mode no longer honored
Date: Wed, 26 Jan 2022 05:39:38 +0200	[thread overview]
Message-ID: <83wningo79.fsf@gnu.org> (raw)
In-Reply-To: <006c01d8124c$24eee4c0$6eccae40$@gmail.com> (glroman@gmail.com)

> From: "George L. Roman" <glroman@gmail.com>
> Date: Tue, 25 Jan 2022 19:32:04 -0500
> 
>     % emacs -Q
>     C-x b *scratch*
>     (setq default-major-mode "text-mode")
>     C-x b whatever
>     ; Observe "fundamental" mode
>     C-f /tmp/foo
>     ; Observe "fundamental" mode
> 
>     This used to work in 25.1; fails in 26.1, 27.1, and 27.2.

From NEWS of Emacs 26:

  ** Some obsolete functions, variables, and faces have been removed:
  [...]
  *** All the default-FOO variables that hold the default value of the
  FOO variable.  Use 'default-value' and 'setq-default' to access and
  change FOO, respectively.  The exhaustive list of removed variables is:
  'default-mode-line-format', 'default-header-line-format',
  'default-line-spacing', 'default-abbrev-mode', 'default-ctl-arrow',
  'default-truncate-lines', 'default-left-margin', 'default-tab-width',
  'default-case-fold-search', 'default-left-margin-width',
  'default-right-margin-width', 'default-left-fringe-width',
  'default-right-fringe-width', 'default-fringes-outside-margins',
  'default-scroll-bar-width', 'default-vertical-scroll-bar',
  'default-indicate-empty-lines', 'default-indicate-buffer-boundaries',
  'default-fringe-indicator-alist', 'default-fringe-cursor-alist',
  'default-scroll-up-aggressively', 'default-scroll-down-aggressively',
  'default-fill-column', 'default-cursor-type',
  'default-cursor-in-non-selected-windows',
  'default-buffer-file-coding-system', 'default-major-mode', and
  'default-enable-multibyte-characters'.

So you should use setq-default instead.





  reply	other threads:[~2022-01-26  3:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26  0:32 bug#53538: 27.2; default-major-mode no longer honored George L. Roman
2022-01-26  3:39 ` Eli Zaretskii [this message]
2022-01-26 15:31   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83wningo79.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=53538@debbugs.gnu.org \
    --cc=glroman@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).