Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provided emacs workaround gets emacs stuck #158

Open
svalaskevicius opened this issue Mar 23, 2016 · 15 comments
Open

provided emacs workaround gets emacs stuck #158

svalaskevicius opened this issue Mar 23, 2016 · 15 comments

Comments

@svalaskevicius
Copy link

I had to comment three lines in the provided workaround:

;;                 (45 . ".\\(?:\\(?:-[>-]\\|<<\\|>>\\)\\|[<>}~-]\\)")
;;                 (46 . ".\\(?:\\(?:\\.[.<]\\)\\|[.=]\\)")
;;                 (47 . ".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)")

these get emacs stuck on some spacemacs UI elements, e.g. opening a project selection with projectile.

other regexps seem to be working

@mcepl
Copy link

mcepl commented May 1, 2016

For me the line with 45 in the beginning breaks Gnus. When it is not commented out, gnus starts with the endless (seemingly) series of beepis and error messages "attempt to shape unibyte text"

@glyph
Copy link

glyph commented May 13, 2016

I had the same issue, but (63 . ".\\(?:\\(\\?\\?\\)\\|[:=?]\\)") was the problem line for me; I seem to be able to run OK with all the other lines left in.

@zackp30
Copy link

zackp30 commented May 19, 2016

I've also triggered this in the past, I believe it's an Emacs bug, which makes Emacs freeze with the message "attempted to shape unibyte text". It also affected other modes such as the Ediff helper window which had a certain piece of text which I never looked into. Anyway, I ran an edebug session on a few functions invoked when running ediff, which gave me the message. I can't remember how I figured out it was the ligature code, but it was, since I edited it out and everything worked fine.

@NOBLES5E
Copy link

I also encounter this. Emacs freezes whenever I open a helm buffer.

@clange
Copy link

clange commented Jul 27, 2016

I found another one: (58 . ".\\(?:::\\|[:=]\\)") crashes org-mode's org-set-tags-command for me.

@dmitry-saritasa
Copy link

dmitry-saritasa commented Sep 22, 2016

on my side this is making emacs 25.1.0.3 to freeze (fedora 24):

 ;;(124 . ".\\(?:\\(?:|[=|]\\)\\|[=>|]\\)")

@pdawczak
Copy link

pdawczak commented Mar 7, 2017

Hello! I'm afraid I'm experiencing very similar issue. I use spacemacs on Mac:

Spacemacs: 0.200.7
Emacs: 24.5.1

The problem looks like it's affecting helm integration (whatever I try M-x, or C-x C-f, then the helm should appear, but instead, Emacs hangs indefinitely).

For me, it looks like commenting the following fixes the problem:

                 (45 . ".\\(?:\\(?:-[>-]\\|<<\\|>>\\)\\|[<>}~-]\\)")
                 (46 . ".\\(?:\\(?:\\.[.<]\\)\\|[.=-]\\)")
                 (47 . ".\\(?:\\(?:\\*\\*\\|//\\|==\\)\\|[*/=>]\\)")

Unfortunately, within those there are the symbols I'd love to use, but I think they appear in helm buffer, thus, causing the problem...

Thank you for your help!

@jaseemabid
Copy link

Had to uncomment 45, 46, 47 on GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10) of 2017-04-22 on archlinux.

Does anyone know the root cause of this problem?

@anmonteiro
Copy link

FWIW, and for people that are having problems with Helm, I simply disable ligatures altogether in the helm buffers:

(add-hook 'helm-major-mode-hook
          (lambda ()
            (setq auto-composition-mode nil)))

@mahaarbo
Copy link

The ligatures also freezes my Emacs when I enter c++-mode. Disabling auto-composition-mode for c++-mode did not seem to help.

@jasongoodwin
Copy link

45 crashes eshell for me.

@edgarkhanzadian
Copy link

edgarkhanzadian commented Mar 12, 2018

I had the same for a c++ mode. So I commented out line 43 and now it works properly. @mahaarbo I think this fix may help you.
Also where can I find out which line stands for which character? :D

@togakangaroo
Copy link

The problem for me was

;; (46 . ".\\(?:\\(?:\\.[.<]\\)\\|[.=-]\\)") ;; This line forces emacs to lock up whenever HELM opens

It made emacs lock up whenever I opened the HELM menu

@mpolden
Copy link

mpolden commented May 22, 2018

Freezes in mu4e-headers-mode for me so I had to add:

(add-hook 'mu4e-headers-mode-hook
            (lambda () (setq-local auto-composition-mode nil)))

Happens when I start mu4e and use one of the built-in bookmarks: M-x mu4e, bw

@guidoschmidt
Copy link

For me, the ligatures workaround breaks ediff-mode, turned out the suggestion by @mpolden fixed it using:

(add-hook 'ediff-mode-hook
          (lambda () (setq-local auto-composition-mode nil)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests