unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: yuan  <czy463@163.com>
To: "Lars Ingebrigtsen" <larsi@gnus.org>
Cc: 50150@debbugs.gnu.org
Subject: bug#50150: Re: bug#50150: 28.0.50; press a key will become a lot of keys
Date: Mon, 23 Aug 2021 14:18:34 +0800 (CST)	[thread overview]
Message-ID: <4344afe.33e3.17b71a92216.Coremail.czy463@163.com> (raw)
In-Reply-To: <87h7fhzhcd.fsf@gnus.org>


[-- Attachment #1.1: Type: text/plain, Size: 1619 bytes --]



I recompiled emacs. Removed native-comp. But the problem still appeared.



In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2))
 of 2021-08-23 built on chenzhiyuandeMacBook-Pro.local
Repository revision: 20e32f3c3fee1446768786c04b52cde4ce313e37
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7

Configured using:
 'configure --with-xwidgets --with-mailutils'

Configured features:
ACL GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS
PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS ZLIB

Important settings:
  value of $LANG: zh_CN.UTF-8
  locale-coding-system: utf-8




Use the following command to start emacs.
/Applications/Emacs.app/Contents/MacOS/Emacs -Q





Then use the configuration in test.el.
I open a go file. Then use

The command on the right is the information displayed after using view-lossage




Does it have something to do with the Chinese input method I use? Or this bug caused by the interaction between the input method and emacs? Because after inputting Chinese, an auto-complete prompt message will pop up






At 2021-08-22 22:25:54, "Lars Ingebrigtsen" <larsi@gnus.org> wrote:
>yuan  <czy463@163.com> writes:
>
>> The summary is:
>>
>>    emacs-28 native-compile version, turn on completion. Quick input will
>> reproduce this bug. 
>
>Do you have a recipe, starting from "emacs -Q", for how to reproduce the
>problem?
>
>-- 
>(domestic pets only, the antidote for overdose, milk.)
>   bloggy blog: http://lars.ingebrigtsen.no




[-- Attachment #1.2: Type: text/html, Size: 33723 bytes --]

[-- Attachment #2: test.el --]
[-- Type: application/octet-stream, Size: 3031 bytes --]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 包管理
(require 'package)
(setq package-enable-at-startup nil)
;; 添加melpa源(更多package)
(add-to-list 'package-archives
			 '("melpa" . "https://melpa.org/packages/"))

(package-initialize)

;; 安装use package
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

;; 编码和语言环境
(prefer-coding-system 'utf-8)

(setenv "LANG" "en_US.UTF-8")
(setenv "LC_ALL" "en_US.UTF-8")
(setenv "LC_CTYPE" "en_US.UTF-8")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 状态栏相关


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 皮肤,Theme
;; 安全的加载theme
(setq custom-safe-themes t)
;; 白天 座位这屏幕反光. 不能用这个皮肤
;; ;; 使用 doom theme
;; (use-package doom-themes
;;   :ensure t
;;   :config
;;   ;; Global settings (defaults)
;;   (setq doom-themes-enable-bold t    ; if nil, bold is universally disabled
;;     doom-themes-enable-italic t) ; if nil, italics is universally disabled
;;   (load-theme 'doom-one t)
;;   ;; Enable flashing mode-line on errors
;;   (doom-themes-visual-bell-config)
;;   ;; for treemacs users
;;   ;; (setq doom-themes-treemacs-theme "doom-colors") ; use the colorful treemacs theme
;;   ;; (doom-themes-treemacs-config)
;;   ;; Corrects (and improves) org-mode's native fontification.
;;   (doom-themes-org-config))

(use-package monokai-theme
  :ensure t
  :config
  (load-theme 'monokai t))


(use-package company
  :ensure t
  :config
  (global-company-mode)
  ;; (add-to-list 'company-backends #'company-tabnine)
  ;; Optionally enable completion-as-you-type behavior.
  (setq company-idle-delay 0)
  ;; show quik select number
  (setq company-show-numbers t)
  (setq company-minimum-prefix-length 1)
  ;; 大小写问题修复
  (setq company-dabbrev-downcase nil)
  )


(use-package lsp-mode
  :ensure t
  :init
  (setq lsp-keymap-prefix "C-c l")
  :commands (lsp lsp-deferred)
  :hook(
		(go-mode . lsp-deferred)
		(lsp-mode . lsp-enable-which-key-integration)
		)
  :bind (:map lsp-mode-map
			  ("M-." . lsp-find-definition)
			  ("M-n" . lsp-find-references))
  :custom ((lsp-log-io nil)
		   (lsp-eldoc-render-all nil)
		   (lsp-completion-provider t)
		   (lsp-signature-render-documentation nil)
		   (lsp-rust-server 'rust-analyzer)
		   (lsp-rust-analyzer-cargo-watch-enable nil)
		   (lsp-go-hover-kind "NoDocumentation")
		   (lsp-go-use-placeholders t)
		   (lsp-diagnostics-provider :none)
		   (lsp-modeline-diagnostics-enable nil)
		   (lsp-file-watch-threshold 2000))
  )

;; Optional - provides fancier overlays.
(use-package lsp-ui
  :ensure t
  :commands lsp-ui-mode)


;; go语言支持
(use-package go-mode
  :mode "\\.go\\'"
  :init
  (setq gofmt-command "goimports")
  :config
  ;; (add-hook 'go-mode-hook #'nox-go-install-save-hooks)
  ;; (add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
  :hook ((go-mode . lsp))
  :bind
  (:map go-mode-map
		("<f9>" . gofmt))
  )

  reply	other threads:[~2021-08-23  6:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 10:41 bug#50150: 28.0.50; press a key will become a lot of keys yuan
2021-08-22 14:25 ` Lars Ingebrigtsen
2021-08-23  6:18   ` yuan [this message]
2021-08-23  6:24     ` bug#50150: " yuan
2021-08-23 13:29     ` Lars Ingebrigtsen
2021-09-21  5:39       ` Lars Ingebrigtsen
     [not found]         ` <530b3e72.56b5.17c07a860f9.Coremail.czy463@163.com>
2021-09-21 16:56           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4344afe.33e3.17b71a92216.Coremail.czy463@163.com \
    --to=czy463@163.com \
    --cc=50150@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).