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

weird cursor behavior #3

Open
kevinboulain opened this issue Apr 28, 2019 · 1 comment
Open

weird cursor behavior #3

kevinboulain opened this issue Apr 28, 2019 · 1 comment

Comments

@kevinboulain
Copy link

Hi there,

It seems sometimes poly-rst introduces some unwanted cursor behavior.

Since it's a bit complicated to explain faithfully, here is a demo: https://asciinema.org/a/zbDx85g6BoQqvzbgMZDFjPqbX

There are two small issues (the links point to specific parts of the demo for easier understanding/comparison):

The issue.bash script used is as follow (be careful, the first line is destructive, the rest setups an Emacs configuration in /tmp/trash so feel free to execute):

rm -rf /tmp/trash && mkdir -p /tmp/trash

cat > /tmp/trash/config.el << EOF
(setq user-emacs-directory "/tmp/trash")

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)

(use-package command-log-mode
  :straight (:host github :repo "lewang/command-log-mode")
  :hook ((rst-mode . command-log-mode))
  :config
  (setq command-log-mode-auto-show t
        command-log-mode-window-size 80
        clm/log-command-exceptions* '()))

EOF

cat > /tmp/trash/example.rst << EOF
.. code-block::
EOF

emacs -Q -l /tmp/trash/config.el /tmp/trash/example.rst

cat >> /tmp/trash/config.el << EOF
(use-package poly-rst
  :straight (:host github :repo "polymode/poly-rst"))
EOF

exec emacs -Q -l /tmp/trash/config.el /tmp/trash/example.rst

Hope it helps, polymode seems nice otherwise.

On a kinda unrelated note, is the 3 spaces indentation removed while using the Python major mode? I get some linter errors telling me there is too much spaces.

Regards.

@vspinu
Copy link
Contributor

vspinu commented Apr 28, 2019

Thanks for the detailed report. I will have a look. Such point issues are generally difficult to track.

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

2 participants