From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Defaults for elisp-mode files
Date: Thu, 04 Oct 2012 10:29:53 +0900 [thread overview]
Message-ID: <877gr7kory.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <jwvr4pfbfm7.fsf-monnier+emacs@gnu.org>
Stefan Monnier writes:
> So I think in the longer term these annotations should be made
> unnecessary because they're ugly.
`-*- coding: utf-8 -*-' should be unnecessary most of the time. But
> For the `utf-8', I guess we can simply set auto-coding-alist
I suppose you mean
(set-coding-system-priority 'utf-8)
XEmacs can't set `auto-coding-list' because 'iso-2022-jp[1] has been
our standard for non-ASCII files since about 1999. I mention this not
because compatibility is an issue here, but rather I suspect that
something similar, if unofficial, is true for Emacs. Also, there's
probably a lot of historical user code, especially in init files, with
comments (which will be unreadable) and strings (functionality breaks
silently if they're used for matching auto-detected text) and
occasionally even identifiers in legacy encodings.
Legacy encodings (especially GB 2312, Shift JIS, and Big5 in my
experience, and I bet Russians and Ukrainians will say the same about
KOI8, etc) continue to be in heavy use on Windows and in email.
While you *can* set `auto-coding-alist', I think it will cause a lot
of pain.
> But for the lexical-binding setting,
I think you have to live with that as long as for the foreseeable
future you're going to allow users to use implicit dynamic binding.
In other words, you shouldn't get rid of it until you actually
stop consulting the lexical-binding variable itself, and always use
lexical environments for non-special variables.
*Each* file really should contain a *prominent* statement about how
variables are evaluated, since the semantics differ. Worse, the
semantics are determined by the *file*, not by Emacs. That is, just
because Emacs changes its default, doesn't mean the developer will at
exactly the same time. The developer working on the file needs that
indication.
Footnotes:
[1] What I really meant was iso-2022-int, but we didn't have it at
the time, and there's very little difference. None that matters. :-)
Despite the "jp", in fact iso-2022-jp favors ASCII, not Japanese.
next prev parent reply other threads:[~2012-10-04 1:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-03 18:06 Defaults for elisp-mode files Stefan Monnier
2012-10-03 18:22 ` Drew Adams
2012-10-03 18:41 ` Christopher Schmidt
2012-10-04 0:59 ` Juanma Barranquero
2012-10-04 1:29 ` Stephen J. Turnbull [this message]
2012-10-04 3:48 ` Stefan Monnier
2012-10-04 3:56 ` Christopher Monsanto
2012-10-04 14:15 ` Juanma Barranquero
2012-10-04 15:37 ` Christopher Monsanto
2012-10-04 16:24 ` Juanma Barranquero
2012-10-04 17:00 ` Andreas Schwab
2012-10-04 17:12 ` Juanma Barranquero
2012-10-04 17:07 ` Stephen J. Turnbull
2012-10-04 6:01 ` Stephen J. Turnbull
2012-10-04 19:10 ` Andreas Röhler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gr7kory.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.