unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15151: 24.3.50; flyspell-mode messes up input method
@ 2013-08-21  9:06 Ashish SHUKLA
  2013-08-25  2:28 ` Vladimir Lomov
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ashish SHUKLA @ 2013-08-21  9:06 UTC (permalink / raw)
  To: 15151

[-- Attachment #1: Type: text/plain, Size: 7203 bytes --]


If you enable 'flyspell-mode' in a buffer, and switch to `english-dvorak'
input method, you'll notice keys are not outputting expected characters. As
soon as you disable 'flyspell-mode' it starts working as expected.

I'm running Emacs bzr HEAD r113965.



In GNU Emacs 24.3.50.1 (amd64-portbld-freebsd9.1, X toolkit, Xaw3d scroll bars)
 of 2013-08-21 on chateau.d.if
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
Configured using:
 `configure --localstatedir=/var --with-x-toolkit=athena --with-xft
 --with-m17n-flt --with-libotf --with-imagemagick --with-gsettings
 --with-gconf --with-xim --with-sound --with-dbus --with-xml2 --with-gnutls
 --with-acl --with-file-notification=gfile --x-libraries=/usr/local/lib
 --x-includes=/usr/local/include --prefix=/usr/local --mandir=/usr/local/man
 --infodir=/usr/local/share/emacs/info/ --build=amd64-portbld-freebsd9.1
 CFLAGS='-fstack-protector -march=nocona -g' CPPFLAGS='-I/usr/local/include'
 LDFLAGS=' -L/usr/local/lib''

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  shell-dirtrack-mode: t
  global-auto-complete-mode: t
  delete-selection-mode: t
  display-time-mode: t
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<up> <return> 3 0 <return> <C-end> q g <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <return> q <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <s-up> 
2 <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> g <down-mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> <return> q g <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <return> <C-end> 
<up> <up> <up> <up> <up> q <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<C-end> C-u a C-\ J g ; SPC ; j M-x f l y <tab> s p 
<tab> m o <tab> <return> <C-down> <down> <up> <down> 
<return> <return> <up> K J <backspace> <backspace> 
J g ; SPC k j g ; SPC ; g k l f m n o d <backspace> 
<backspace> d o SPC J <S-home> <S-up> <S-up> <S-down> 
J g SPC G q m SPC A ; j g ; j SPC : J F V P A S-SPC 
g k j <backspace> <backspace> <backspace> k j g ; SPC 
g ; SPC m t SPC l a m d e C-z c M-x f l y s <tab> m 
o <tab> <return> C-\ J g ; ; ; SPC k j g ; SPC C-\ 
C-z 0 C-c C-k y e s <return> M-x r e p <tab> r <backspace> 
o r <tab> b u <tab> <return>

Recent messages:
Can't find directory separator in global.SCORE
No more unseen articles
Mark set
Exiting summary buffer and applying spam rules
Mark set [9 times]
Making completion list...
Flyspell mode disabled
Mark set
Flyspell mode enabled
Making completion list...

Load-path shadows:
/home/abbe/.emacs.d/elisp/apel/env hides /usr/local/share/emacs/24.3.50/lisp/env
/home/abbe/.emacs.d/elisp/apel/timezone hides /usr/local/share/emacs/24.3.50/lisp/timezone
/home/abbe/.emacs.d/elisp/full-ack/.dir-locals hides /usr/local/share/emacs/24.3.50/lisp/gnus/.dir-locals

Features:
(shadow thingatpt emacsbug mm-archive pp mailalias smtpmail sendmail gnus-fun
bbdb-gui sort smiley gnus-bcklg qp quail help-mode flyspell ispell gnus-cite
hashcash footnote nnir gnus-async gnus-ml disp-table gnus-topic utf-7 nndraft
nnmh nnmaildir epa-file epa epg network-stream starttls nnimap parse-time utf7
netrc bbdb-gnus bbdb-snarf mail-extr nnnil gnus-agent gnus-srvr gnus-score
score-mode nnvirtual nntp gnus-cache spam spam-stat bbdb-com warnings bbdb
gnus-uu yenc gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime
smime dig mm-url nnmairix nnml gnus-sum gnus-group gnus-undo nnmail
mail-source nnoo supercite regi w3m browse-url doc-view jka-compr dired
image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon
w3m-image w3m-proc w3m-util gnus-start gnus-spec gnus-int gnus-range message
idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils
mailheader gnus-win gnus gnus-ems nnheader mail-utils server wombat-theme
tramp tramp-compat tramp-loaddefs trampver shell geiser blog metaweblog
xml-rpc timezone url-http tls url url-proxy url-privacy url-expand url-methods
url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
url-cookie url-domsuf url-util url-parse auth-source eieio eieio-core
gnus-util mm-util mail-prsvr password-cache url-gw url-vars xml muse-html
muse-xml-common cus-edit cus-start cus-load muse-publish muse-project
muse-protocols info muse-regexps wid-edit derived muse muse-nested-tags
muse-mode org-agenda org byte-opt bytecomp byte-compile cconv ob-tangle ob-ref
ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete
comint ansi-color ring org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs
format-spec find-func cal-menu easymenu calendar cal-loaddefs
auto-complete-config auto-complete easy-mmode popup slime-autoloads
clojure-mode edmacro kmacro scim-bridge mule-util advice help-fns alist pym
static apel-ver product elscreen bbdb-autoloads w3m-load erlang-start boxquote
cl-macs gv rect cl cl-loaddefs cl-lib delsel time paren uniquify go-mode-load
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese
hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting x-toolkit x multi-tty emacs)

Let me know if you need more information.

Thanks
-- 
Ashish SHUKLA

“Few false ideas have more firmly gripped the minds of so many intelligent men
than the one that, if they just tried, they could invent a cipher that no one
could break.” (David Kahn, "The Codebreakers", 1967)

Sent from my Emacs

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151: 24.3.50; flyspell-mode messes up input method
  2013-08-21  9:06 bug#15151: 24.3.50; flyspell-mode messes up input method Ashish SHUKLA
@ 2013-08-25  2:28 ` Vladimir Lomov
  2013-11-03 14:07 ` bug#15151: Sergei Gluschenko
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Vladimir Lomov @ 2013-08-25  2:28 UTC (permalink / raw)
  To: 15151

Hello,

I have similar problem with flyspell-mode:
- emacs bzr 113973
- start emacs in terminal emulator:
  emacs -Q
- open a text buffer, enable flyspell-mode, switch to 'russian-computer'
  input method;
- begin type a text, instead of any punctuation symbols (.,-'"?:;)
  letters are typed.

---
WBR, Vladimir Lomov

-- 
Be careful what you set your heart on -- for it will surely be yours.
		-- James Baldwin, "Nobody Knows My Name"





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151:
  2013-08-21  9:06 bug#15151: 24.3.50; flyspell-mode messes up input method Ashish SHUKLA
  2013-08-25  2:28 ` Vladimir Lomov
@ 2013-11-03 14:07 ` Sergei Gluschenko
  2013-11-03 21:41   ` bug#15151: Stefan Monnier
  2014-02-06  2:14 ` bug#15151: 24.3.50; flyspell-mode messes up input method Anton Nazarov
  2021-09-06  9:59 ` Lars Ingebrigtsen
  3 siblings, 1 reply; 8+ messages in thread
From: Sergei Gluschenko @ 2013-11-03 14:07 UTC (permalink / raw)
  To: 15151

[-- Attachment #1: Type: text/plain, Size: 3599 bytes --]

HI

I have very similar issue with my custom defined keyboard layout. Here it is

;;========================================================

(quail-define-package
 "russian-no-windows" "Russian" "RU" nil
 "ЙЦУКЕН Russian computer layout"
 nil t t t t nil nil nil nil nil t)

;;  1! 2" 3№ 4% 5: 6, 7. 8; 9( 0) -_ =+ \/ ёЁ
;;   Й  Ц  У  К  Е  Н  Г  Ш  Щ  З  Х  Ъ
;;    Ф  Ы  В  А  П  Р  О  Л  Д  Ж  Э
;;     Я  Ч  С  М  И  Т  Ь  Б  Ю  /?

(quail-define-rules
 ("1" ?1)
 ("2" ?2)
 ("3" ?3)
 ("4" ?4)
 ("5" ?5)
 ("6" ?6)
 ("7" ?7)
 ("8" ?8)
 ("9" ?9)
 ("0" ?0)
 ("-" ?-)
 ("=" ?=)
 ("|" ?Ё)
 ("`" ?])
 ("q" ?й)
 ("w" ?ц)
 ("e" ?у)
 ("r" ?к)
 ("t" ?е)
 ("y" ?н)
 ("u" ?г)
 ("i" ?ш)
 ("o" ?щ)
 ("p" ?з)
 ("[" ?х)
 ("]" ?ъ)
 ("a" ?ф)
 ("s" ?ы)
 ("d" ?в)
 ("f" ?а)
 ("g" ?п)
 ("h" ?р)
 ("j" ?о)
 ("k" ?л)
 ("l" ?д)
 (";" ?ж)
 ("'" ?э)
 ("\\" ?\ё)
 ("z" ?я)
 ("x" ?ч)
 ("c" ?с)
 ("v" ?м)
 ("b" ?и)
 ("n" ?т)
 ("m" ?ь)
 ("," ?б)
 ("." ?ю)
 ("/" ?/)
 ("!" ?!)
 ("@" ?\")
 ("#" ?№)
 ("$" ?\%)
 ("%" ?:)
 ("^" ?,)
 ("&" ?.)
 ("*" ?\;)
 ("(" ?()
 (")" ?))
 ("_" ?_)
 ("+" ?+)
 ("~" ?[)
 ("Q" ?Й)
 ("W" ?Ц)
 ("E" ?У)
 ("R" ?К)
 ("T" ?Е)
 ("Y" ?Н)
 ("U" ?Г)
 ("I" ?Ш)
 ("O" ?Щ)
 ("P" ?З)
 ("{" ?Х)
 ("}" ?Ъ)
 ("A" ?Ф)
 ("S" ?Ы)
 ("D" ?В)
 ("F" ?А)
 ("G" ?П)
 ("H" ?Р)
 ("J" ?О)
 ("K" ?Л)
 ("L" ?Д)
 (":" ?Ж)
 ("\"" ?Э)
 ("|" ?Ё)
 ("Z" ?Я)
 ("X" ?Ч)
 ("C" ?С)
 ("V" ?М)
 ("B" ?И)
 ("N" ?Т)
 ("M" ?Ь)
 ("<" ?Б)
 (">" ?Ю)
 ("?" ??)
 ("§" ?<)
 ("±" ?>)
)

(global-set-key (kbd "M-2") '(lambda() (interactive) (insert "@")))
(global-set-key (kbd "M-3") '(lambda() (interactive) (insert "#")))
(global-set-key (kbd "M-4") '(lambda() (interactive) (insert "$")))
(global-set-key (kbd "M-5") '(lambda() (interactive) (insert "%")))
(global-set-key (kbd "M-6") '(lambda() (interactive) (insert "^")))
(global-set-key (kbd "M-7") '(lambda() (interactive) (insert "&")))
(global-set-key (kbd "M-8") '(lambda() (interactive) (insert "*")))
(global-set-key (kbd "M--") '(lambda() (interactive) (insert "—")))

;; Local Variables:
;; coding: utf-8
;; End:

;;; russian-nowinkeys.el ends here
(provide 'russian-no-windows)

;;========================================================

Here is my flyspell rules:

(add-to-list
 'ispell-local-dictionary-alist
 '("russian"       ; combo english+russian

 "[a-zA-ZАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя]"

 "[^a-zA-ZАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюя]"
   "[-']"
   nil
   ("-d" "en_US,ru_RU")
   nil utf-8))

When flyspell mode is turned off everything works OK, but with flyspell
turned on I get strange behavior of "," and "." symbols which are mapped to
"^" and "&" (which are Shift+6 and shift+7. Usually I want type "," at the
end of the word and it doesn't work. "б" typed instead. But when I type
shift+6 in the beginning of the word, I am getting ",", but any subsequent
shift+6 gives me "б" again.

What I want:
Здравствуйте, товарищ!

What I got:
Здравствуйтеб товарищ!

I believe it related to fact that I have rules "^" -> "," and "," -> "б",
but on emacs 24.3 everything worked just fine and still working without
flyspell.


Thanks in advance,
Sergei

[-- Attachment #2: Type: text/html, Size: 6875 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151:
  2013-11-03 14:07 ` bug#15151: Sergei Gluschenko
@ 2013-11-03 21:41   ` Stefan Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2013-11-03 21:41 UTC (permalink / raw)
  To: Sergei Gluschenko; +Cc: 15151, gl.sergei

> (global-set-key (kbd "M-2") '(lambda() (interactive) (insert "@")))
> (global-set-key (kbd "M-3") '(lambda() (interactive) (insert "#")))
> (global-set-key (kbd "M-4") '(lambda() (interactive) (insert "$")))
> (global-set-key (kbd "M-5") '(lambda() (interactive) (insert "%")))
> (global-set-key (kbd "M-6") '(lambda() (interactive) (insert "^")))
> (global-set-key (kbd "M-7") '(lambda() (interactive) (insert "&")))
> (global-set-key (kbd "M-8") '(lambda() (interactive) (insert "*")))
> (global-set-key (kbd "M--") '(lambda() (interactive) (insert "—")))

[ Unrelated to the bug report itself, sorry.  ]

Please don't quote your lambdas.


        Stefan





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151: 24.3.50; flyspell-mode messes up input method
  2013-08-21  9:06 bug#15151: 24.3.50; flyspell-mode messes up input method Ashish SHUKLA
  2013-08-25  2:28 ` Vladimir Lomov
  2013-11-03 14:07 ` bug#15151: Sergei Gluschenko
@ 2014-02-06  2:14 ` Anton Nazarov
  2021-09-06  9:59 ` Lars Ingebrigtsen
  3 siblings, 0 replies; 8+ messages in thread
From: Anton Nazarov @ 2014-02-06  2:14 UTC (permalink / raw)
  To: 15151

Hi,

I have the same problem with russian-computer input method.

I was not able to debug it, but I think that it is related to
flyspell delayed commands. When I set flyspell-delay to 0.01, the
problem with input method disappear.

So I  suggest as a workaround
(setq flyspell-delay 0.01)

-- 
With best wishes,
Anton Nazarov		mailto:nazarov@uchicago.edu
      			mailto:antonnaz@gmail.com
      			mailto:anton.nazarov@hep.phys.spbu.ru
      			http://hep.phys.spbu.ru/staff/nazarov





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151: 24.3.50; flyspell-mode messes up input method
  2013-08-21  9:06 bug#15151: 24.3.50; flyspell-mode messes up input method Ashish SHUKLA
                   ` (2 preceding siblings ...)
  2014-02-06  2:14 ` bug#15151: 24.3.50; flyspell-mode messes up input method Anton Nazarov
@ 2021-09-06  9:59 ` Lars Ingebrigtsen
  2021-09-06 12:42   ` Ashish via Bug reports for GNU Emacs, the Swiss army knife of text editors
  3 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-06  9:59 UTC (permalink / raw)
  To: Ashish SHUKLA; +Cc: 15151

ashish.is@lostca.se (Ashish SHUKLA) writes:

> If you enable 'flyspell-mode' in a buffer, and switch to `english-dvorak'
> input method, you'll notice keys are not outputting expected characters. As
> soon as you disable 'flyspell-mode' it starts working as expected.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I tried reproducing this in Emacs 28 from "emacs -Q":

M-x flyspell-mode
M-x set-input-method english-dvorak

I then typed the qwerty line of keys and got:

',.pyf

I switched flyspell-mode off and repeated:

',.pyf

So this seems to work the same with or without flyspell-mode now.  Are
you still seeing this issue in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151: 24.3.50; flyspell-mode messes up input method
  2021-09-06  9:59 ` Lars Ingebrigtsen
@ 2021-09-06 12:42   ` Ashish via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-09-06 12:47     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Ashish via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-06 12:42 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 15151

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

On Mon, Sep 06, 2021 at 11:59:21AM +0200, Lars Ingebrigtsen wrote:
> ashish.is@lostca.se (Ashish SHUKLA) writes:
> 
> > If you enable 'flyspell-mode' in a buffer, and switch to `english-dvorak'
> > input method, you'll notice keys are not outputting expected characters. As
> > soon as you disable 'flyspell-mode' it starts working as expected.
> 
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
> 
> I tried reproducing this in Emacs 28 from "emacs -Q":
> 
> M-x flyspell-mode
> M-x set-input-method english-dvorak
> 
> I then typed the qwerty line of keys and got:
> 
> ',.pyf
> 
> I switched flyspell-mode off and repeated:
> 
> ',.pyf
> 
> So this seems to work the same with or without flyspell-mode now.  Are
> you still seeing this issue in recent Emacs versions?

I tested with Emacs 28.0.50 (git commit: 4c49ec7f865bdad1629d2f125f71f4e506b258f2), and am not able to reproduce it anymore.

Feel free to close this bug report.

Thanks!
-- 
Ashish | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0

"Should I kill myself, or have a cup of coffee?" (Albert Camus)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15151: 24.3.50; flyspell-mode messes up input method
  2021-09-06 12:42   ` Ashish via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-09-06 12:47     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-09-06 12:47 UTC (permalink / raw)
  To: Ashish; +Cc: 15151

Ashish <ashish.is@lostca.se> writes:

> I tested with Emacs 28.0.50 (git commit:
> 4c49ec7f865bdad1629d2f125f71f4e506b258f2), and am not able to
> reproduce it anymore.
>
> Feel free to close this bug report.

Thanks for checking; I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-09-06 12:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21  9:06 bug#15151: 24.3.50; flyspell-mode messes up input method Ashish SHUKLA
2013-08-25  2:28 ` Vladimir Lomov
2013-11-03 14:07 ` bug#15151: Sergei Gluschenko
2013-11-03 21:41   ` bug#15151: Stefan Monnier
2014-02-06  2:14 ` bug#15151: 24.3.50; flyspell-mode messes up input method Anton Nazarov
2021-09-06  9:59 ` Lars Ingebrigtsen
2021-09-06 12:42   ` Ashish via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-06 12:47     ` Lars Ingebrigtsen

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).