Code Monkey home page Code Monkey logo

Comments (4)

twlz0ne avatar twlz0ne commented on July 1, 2024 2

Same here.

My reproduction steps:

  1. Start emacs via emacsq.sh
> emacsq.sh -P haskell-mode,symbol-overlay --eval "
    (progn
      (add-hook 'haskell-mode-hook 'interactive-haskell-mode)
      (add-hook 'haskell-mode-hook 'symbol-overlay-mode)
      (view-echo-area-messages)
      (toggle-debug-on-error)
      (profiler-start 'cpu)
      (switch-to-buffer \"*.hs\")
      (haskell-mode)
      (insert \"triples = [(a,b,c) | c <- [1..10], a <- [1..c], b <- [1\")
      (goto-char (point-max)))" -nw
  1. Wait until 1 is highliged

image

  1. Type ... (Get no response)

image

  1. Press C-g

image

  1. M-x profiler-report
Function                                                CPU samples    %
+ ...                                                           847  54%
- command-execute                                               717  45%
 - call-interactively                                           717  45%
  - funcall-interactively                                       703  44%
   - self-insert-command                                        639  40%
    - symbol-overlay-refresh                                    639  40%
     - looking-at                                               639  40%
      - internal--syntax-propertize                             639  40%
       - syntax-propertize                                      639  40%
        - haskell-syntax-propertize                             616  39%
         - haskell-lexeme-looking-at-token                      510  32%
            haskell-lexeme-looking-at-qidsym                    110   7%
            haskell-lexeme-looking-at-char-literal               38   2%
            haskell-lexeme-looking-at-string-lit...              28   1%
            match-string-no-properties                           10   0%

  • macOS 10.12.6
  • Emacs 27.1 / 28.0 (rev: 6f776fbc3532a96dc86eb4e6091ed94f4c52aae7)
  • haskell-mode-20210622.2049
  • symbol-overlay-20210422.2110

from symbol-overlay.

ksqsf avatar ksqsf commented on July 1, 2024

FWIW, I cannot reproduce this bug.

  • macOS 13.0.1 (22A400)
  • Emacs 29.0.60 (rev: 19ef86f775a39eab46231c3eb6fc702e06857a5a)
  • haskell-mode 20221113.1425
  • symbol-overlay 20220304.917

from symbol-overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.