Git Product home page Git Product logo

Comments (4)

scorecounter avatar scorecounter commented on July 28, 2024

goto-lineを使うべき所にforward-lineを使っているのが問題と考えます。

以下の行でforward-linegoto-lineに変更し、byte-compileし直してみてください:

  • 1268行目, 1271行目 (in moccur-view-file)
  • 2136行目 (in moccur-grep-goto)
  • 2934行目 (in moccur-mode-goto-occurence)
  • 3135行目 (in moccur-mode-start-ee-switch-before-buffer)

この変更でmoccur-grep-findだけでなく、以下の不具合も修正できます:

(1) moccur bufferから、検索対象bufferの対応する場所へ飛べない
(2) moccur bufferのカーソル移動で、検索対象bufferの対応箇所に移動しない

なお、私の環境は:

  • Emacs 24.3.1 w/ Ubuntu 14.04LTS (i386)
  • Emacs 25.0.50.3 (a8856cb50b6a99c23664cdb3c66b480bf880edcf) w/ Debian Sid (x86_64)

です

from color-moccur.el.

myuhe avatar myuhe commented on July 28, 2024

遅くなってすみません。
goto-lineはマークリングを汚すので、forward-lineを残しながら修正してみました。
お試しください。

from color-moccur.el.

scorecounter avatar scorecounter commented on July 28, 2024

修正ありがとうございます。正しい動作を確認できました。

goto-lineはマークリングを汚す

goto-lineのdocumentをよく見たら:

This function is usually the wrong thing to use in a Lisp program.

とありました。適当過ぎるworkaroundですみませんでした。

from color-moccur.el.

meltedice avatar meltedice commented on July 28, 2024

反応が遅くなってしまってすみません。。
対応ありがとうございました。
こちらの環境でも、M-x auto-install で入れていたバージョンから、
cask 経由でインストールする方へ切り替えて問題なく動作していることを確認しました。
color-moccur.el、検索は遅いものの、ag.el + wgrep.el よりも UI が使いやすく重宝しているので助かりました。

from color-moccur.el.

Related Issues (6)

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.