unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: Is Emacs becoming Word?
Date: Sat, 26 Mar 2005 12:14:04 +0100	[thread overview]
Message-ID: <x53buihd6r.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.257.1111822540.28103.help-gnu-emacs@gnu.org

Greg Novak <novak@ucolick.org> writes:

> * David Kastrup <dak@gnu.org> wrote:
>>> Today when I was editing source code and tried to type pi/2 in a
>>> buffer, Emacs replaced it with some special character that appeared
>>> as "1/2" as a single character.
>> Unlikely.  Let me name a few things that might have happened:
>> a) you use Leim (C-\) for input of international characters and the
>> transliteration for ½ is /2.  Leim is not on unless you enable it.  It
>> should be easy to find an input method that suits your bill better.
>> b) you use font-lock-mode in LaTeX and write something like ^2, in
>> which case a subscript 2 appears.  font-lock-mode is not turned on by
>> default.  Even if you turn it on, you can remove the script
>> highlighting.
>
> None of the above?  I've never (intentionally) used Leim, and I didn't
> type C-\ before the /2.

Typing it once in the buffer is sufficient.  Your mode line will then
show a "1" pretty much at the start, and the corresponding tooltip
will explain this is the "latin-1" input encoding.

> I had font-lock-mode on, but wasn't in Latex mode.  I was in Python
> mode, and I typed nothing other than pi/2, which got translated to
> "pi(one_half_as_one_character)"

Again: input encodings don't switch themselves onall by themselves.

> And another thing: when I type " or ', Emacs seems to think that I'm
> trying to input a special character.  If I type 'a, I get an angstrom
> symbol, even though (again) I'm editing python code and I'm just
> trying to type a string that starts with a.

You have the latin-1 input encoding enabled.  This does not happen
automatically.  You can verify this by calling

    emacs -q

and then editing a Python file: that should give you the
out-of-the-box configuration of Emacs (plus site-wide
configurations).  And if you suspect the site-wide configuration, try

    emacs -q -no-site-file

instead.  Again: Emacs is not doing anything by default here.  _You_
or your packager are doing something here.

>>> The other day I was editing Lisp code and found that instead of the
>>> usual paren highlighting, Emacs was highlighting the entire enclosed
>>> expression.
>> I don't get that here.  What did you switch on to get it?
>
> This suddenly appeared after updating software, in this case on an
> OS X machine.  I didn't enable any switch (myself), I just got it.

Again: this is not an Emacs default.  You are likely using some
customization that the one responsible for packaging Emacs thinks a
good idea.

Complain to your packager.

>> But they are rarely on by default.
>
> I'm afraid I have to disagree.  All three of the above issues
> appeared after version upgrades: the first two on a Linux machine,
> the last on an OS X laptop.

They are off by default, really.  The Emacs default is what you get
with

    emacs -q -no-site-file

> Maybe there are 3000 new features, and these are the three that are
> on by default, in which case I guess you'd be right, in principle.

No, really.  Please try out emacs -q -no-site-file.  _That_'s the
state you can complain about to Emacs developers.  All the rest is
somebody else's responsibility.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  parent reply	other threads:[~2005-03-26 11:14 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.223.1111775070.28103.help-gnu-emacs@gnu.org>
2005-03-25 21:37 ` Is Emacs becoming Word? David Kastrup
2005-03-25 23:30   ` Jochen Küpper
2005-03-26  7:15   ` Greg Novak
2005-03-26 11:43     ` Eli Zaretskii
2005-03-26 12:04     ` Peter Dyballa
     [not found]   ` <mailman.257.1111822540.28103.help-gnu-emacs@gnu.org>
2005-03-26 11:08     ` Chong Yidong
2005-03-26 11:14     ` David Kastrup [this message]
2005-03-28 10:50 ` Olive
2005-03-28 21:04   ` Miles Bader
2005-03-28 22:52   ` David Kastrup
2005-03-25 18:05 Greg Novak
2005-03-25 18:21 ` Joe Corneli
2005-03-25 18:35 ` nfreimann
     [not found] ` <mailman.224.1111776025.28103.help-gnu-emacs@gnu.org>
2005-03-25 21:20   ` David Kastrup
2005-03-25 21:30     ` Joe Corneli
2005-03-26 12:44       ` Eli Zaretskii
     [not found]     ` <mailman.238.1111787876.28103.help-gnu-emacs@gnu.org>
2005-03-25 22:29       ` David Kastrup
2005-03-25 22:58         ` Joe Corneli
2005-03-26  9:55           ` Gian Uberto Lauri
2005-03-26 11:24             ` Joe Corneli
     [not found]           ` <mailman.260.1111832868.28103.help-gnu-emacs@gnu.org>
2005-03-26 11:24             ` David Kastrup
     [not found]         ` <mailman.245.1111792713.28103.help-gnu-emacs@gnu.org>
2005-03-25 23:37           ` David Kastrup
2005-03-26  1:30       ` Henrik Enberg
2005-03-26  2:06         ` Joe Corneli
2005-03-26 12:37         ` Eli Zaretskii
2005-03-26 12:53 ` Eli Zaretskii
2005-03-26 17:11   ` Joe Corneli
2005-03-26 17:32     ` Eli Zaretskii
2005-03-27  1:08   ` Greg Novak
2005-03-27  4:35     ` Eli Zaretskii
     [not found]   ` <mailman.300.1111886723.28103.help-gnu-emacs@gnu.org>
2005-03-27  2:02     ` David Kastrup
2005-03-27 10:05     ` Steinar Børmer
2005-03-27 17:08       ` Joe Corneli
2005-03-28  0:17         ` Greg Novak
2005-03-28  0:54           ` Joe Corneli
     [not found]           ` <mailman.370.1111972552.28103.help-gnu-emacs@gnu.org>
2005-03-28  2:13             ` Thomas A. Horsley
2005-03-28  3:13               ` Henrik Enberg
2005-03-28  4:39                 ` Joe Corneli
2005-03-31 20:52               ` Greg Novak
2005-03-31 21:26                 ` Joe Corneli
     [not found]               ` <mailman.808.1112304527.28103.help-gnu-emacs@gnu.org>
2005-04-01  0:35                 ` Thien-Thi Nguyen
     [not found] ` <mailman.272.1111843857.28103.help-gnu-emacs@gnu.org>
2005-03-26 16:45   ` Thomas A. Horsley

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=x53buihd6r.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    /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.
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).