bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buff


From: Eric Hanchrow
Subject: bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buffer
Date: Fri, 10 Aug 2018 14:09:30 -0700

  ;; mkdir ~/pyls-home
  ;; cd ~/pyls-home
  ;; python3 -m pip install --user pipenv
  ;; python3 -m pipenv install 'python-language-server[all]'

  ;; Use Emacs' package system to install both "lsp-mode" and "lsp-python"
  ;; start emacs with -Q
  ;; evaluate the following Emacs Lisp:

  (require 'lsp-mode)
  (lsp-define-stdio-client
   lsp-python-mode
   "python"
   (lambda () default-directory)
   '("bash" "-c" "cd ~/pyls-home ; python3 -m pipenv run pyls"))
  (add-hook 'python-mode-hook #'lsp-python-mode-enable)

  ;; now C-x C-f /tmp/wat.py RET, and insert into it

  "def wat():\n    this = dict(>

  ;; put point just before the ( on the second line

  ;; type M-C-q

  ;; That should -- and indeed does -- indent the last line.
  ;; But it _also_ leaves point at the beginning of the buffer, which is wrong; it should leave it before the ( on the second line.



In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu)
 of 2018-05-31 built on dev-dsk-erichan-2b-i-833ca944.us-west-2.amazon.com
Repository revision: 8378961cdc385a6b9a1b608e21f2329789a40cd7
Recent messages:
Wrote /tmp/repro.el
"def wat():
    this = dict(>
two=2)"
Char: ( (40, #o50, #x28) point=27 of 41 (63%) column=15
Mark set
Saving file /tmp/repro.el...
Wrote /tmp/repro.el
Saving file /tmp/wat.py...
Wrote /tmp/wat.py

Configured using:
 'configure --without-x --with-gnutls=no'

Configured features:
JPEG SOUND GPM NOTIFY LIBSELINUX LIBXML2 ZLIB THREADS

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
  projectile-mode: t
  global-magit-file-mode: t
  magit-auto-revert-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  savehist-mode: t
  global-flycheck-mode: t
  elisp-slime-nav-mode: t
  shell-dirtrack-mode: t
  global-auto-revert-mode: t
  recentf-mode: t
  ido-everywhere: t
  diff-auto-refine-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail cus-edit magit-extras
git-rebase align pulse dabbrev conf-mode bug-reference magit-ediff
ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init
ediff-util ediff vc vc-dispatcher cus-start cus-load ffap perl-mode
ibuffer-projectile ruler-mode fringe scroll-bar yasnippet misearch
multi-isearch pcmpl-unix projectile magit-bookmark magit-obsolete
magit-blame magit-stash magit-bisect magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-collab ghub-graphql ghub url-http url-gw
url-auth let-alist magit-files magit-refs magit-status magit magit-repos
magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode
magit-core magit-autorevert magit-process magit-margin magit-mode
git-commit magit-git magit-section magit-utils crm magit-popup log-edit
message rfc822 mml mml-sec epa epg mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log
with-editor async-bytecomp async server term/xterm xterm elec-pair
savehist work-log-mode flycheck elisp-slime-nav etags bookmark
flymake-proc flymake mwheel thingatpt python tramp-sh tramp tramp-compat
tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time advice
edit-list pp browse-kill-ring eww mm-url gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr
url-queue url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf mailcap shr image svg xml dom browse-url
format-spec dired-subtree dired-hacks-utils dash wat derived autorevert
recentf tree-widget wid-edit ido vc-git diff-mode ibuf-ext ibuffer
ibuffer-loaddefs ibuf-macs time-date lsp-mode network-stream puny nsm
rmc starttls lsp-methods em-glob esh-util inline lsp-io pcase
lsp-notifications lsp-common cl filenotify url-util subr-x xref project
json map dired-x dired dired-loaddefs grep compile comint ansi-color
ring regexp-opt find-func edmacro kmacro warnings cl-extra help-mode
face-remap tls gnutls use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core finder-inf info tool-bar package easymenu epg-config
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib rx mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list
replace newcomment text-mode elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow isearch timer select mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded 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 inotify multi-tty
make-network-process emacs)

Memory information:
((conses 16 624996 71344)
 (symbols 48 39729 3)
 (miscs 40 31263 2819)
 (strings 32 109320 14246)
 (string-bytes 1 4197129)
 (vectors 16 76731)
 (vector-slots 8 2235073 257908)
 (floats 8 234 2483)
 (intervals 56 18457 1334)
 (buffers 992 72)
 (heap 1024 49509 4044))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]