* bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buffer
@ 2018-08-10 21:09 Eric Hanchrow
2018-08-10 22:53 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Eric Hanchrow @ 2018-08-10 21:09 UTC (permalink / raw)
To: 32418
[-- Attachment #1: Type: text/plain, Size: 5792 bytes --]
;; 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(one=1,\ntwo=2)"
;; 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(one=1,
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))
[-- Attachment #2: Type: text/html, Size: 7662 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buffer
2018-08-10 21:09 bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buffer Eric Hanchrow
@ 2018-08-10 22:53 ` Glenn Morris
2018-08-10 22:55 ` Eric Hanchrow
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2018-08-10 22:53 UTC (permalink / raw)
To: Eric Hanchrow; +Cc: 32418
Isn't this an issue for whoever maintains lsp-python?
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buffer
2018-08-10 22:53 ` Glenn Morris
@ 2018-08-10 22:55 ` Eric Hanchrow
0 siblings, 0 replies; 3+ messages in thread
From: Eric Hanchrow @ 2018-08-10 22:55 UTC (permalink / raw)
To: Glenn Morris; +Cc: 32418
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
Yes, I suppose so; I hadn't even thought about it.
On Fri, Aug 10, 2018 at 3:53 PM Glenn Morris <rgm@gnu.org> wrote:
>
> Isn't this an issue for whoever maintains lsp-python?
>
[-- Attachment #2: Type: text/html, Size: 425 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-10 22:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-10 21:09 bug#32418: 26.1; M-C-q with lsp-python leaves point at beginning of buffer Eric Hanchrow
2018-08-10 22:53 ` Glenn Morris
2018-08-10 22:55 ` Eric Hanchrow
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.