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

Bug#927751: elpa-lsp-ui: Race condition when using imenu and session restore



Package: elpa-lsp-ui
Version: 6.0-2
Severity: normal
Tags: patch

This complement Debian bug #927749. When using lsp-ui it needs to be patched
too, or imenu will be enabled at the wrong time. See the other bug and the
upstream bug for details:
     https://github.com/emacs-lsp/lsp-mode/issues/784

Thanks



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:us (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages elpa-lsp-ui depends on:
ii  elpa-dash             2.14.1+dfsg-1
ii  elpa-dash-functional  1.2.0+dfsg-5
ii  elpa-flycheck         31-2
ii  elpa-lsp-mode         6.0-1
ii  elpa-markdown-mode    2.3+154-2
ii  emacsen-common        3.0.4

Versions of packages elpa-lsp-ui recommends:
ii  emacs              1:26.1+1-3.2
ii  emacs-gtk [emacs]  1:26.1+1-3.2

elpa-lsp-ui suggests no packages.

-- no debconf information
--- lsp-ui-imenu.el.orig	2019-01-30 10:49:12.000000000 +0100
+++ lsp-ui-imenu.el	2019-04-22 19:08:24.025968556 +0200
@@ -325,11 +325,7 @@
   "Mode showing imenu entries.")
 
 (defun lsp-ui-imenu-enable (enable)
-  (if enable
-      (lsp-enable-imenu)
-    (when (eq imenu-create-index-function 'lsp--imenu-create-index)
-      (setq imenu-create-index-function
-            'imenu-default-create-index-function))))
+  )
 
 (provide 'lsp-ui-imenu)
 ;;; lsp-ui-imenu.el ends here

Reply to: