all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Wolfgang Lux <wolfgang.lux@gmail.com>
Cc: 1453-done@debbugs.gnu.org
Subject: bug#1453: 23.0.60; Dead keys do not work in dired and similar modes in Cocoa port
Date: Sun, 22 Dec 2019 11:56:17 +0000	[thread overview]
Message-ID: <m2d0cgo9pa.fsf@breton.holly.idiocy.org> (raw)
In-Reply-To: <m21t0r78o1.fsf@breton.holly.idiocy.org> (Alan Third's message of "Sat, 10 Sep 2016 22:21:34 +0100")

Alan Third <alan@idiocy.org> writes:

> Wolfgang Lux <wolfgang.lux@gmail.com> writes:
>
>> Dired mode binds ~ to dired-flag-backup-files. When one attempts
>> entering
>> ~ via the dead-key combination Alt-n (assuming the Alt key is not used
>> as
>> a modifier key and Command is interpreted as Meta key), Emacs first
>> reports
>> an error message "Buffer is read-only: #<buffer ~>" followed by an error
>> message "Wrong type argument: overlayp, nil" upon the next event.
>
> This is still sort of an issue in Emacs 25. As far as I can tell Emacs
> still gives the "buffer is read-only" message, but as soon as another
> key is hit actually executes dired-flag-backup-files.
>
> I also suspect this won't be limited to the NS port, but will be an
> issue anywhere you can use dead-keys in a read-only buffer.
>
> I can't think of any reason to try and display the partially complete
> input when the buffer's read-only, but I can't see where this dead-key
> entry code is located to see if it's possible to do a check.

The fix for bug#23412 fixes this. It inserts the working text into the
buffer so you can see what's being typed, but once it completes it
deletes it and dired takes its action. It maybe looks a little weird,
but it works and I'm not sure what else we would do other than just not
display the working text at all.
-- 
Alan Third





      reply	other threads:[~2019-12-22 11:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-29 15:25 bug#1453: 23.0.60; Dead keys do not work in dired and similar modes in Cocoa port Wolfgang Lux
2016-09-10 21:21 ` Alan Third
2019-12-22 11:56   ` Alan Third [this message]

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=m2d0cgo9pa.fsf@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=1453-done@debbugs.gnu.org \
    --cc=wolfgang.lux@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 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.