Need help with errors

35 views
Skip to first unread message

Perry Smith

unread,
Jan 1, 2017, 7:19:33 PM1/1/17
to Helm Developers
I have a mode for cscope: https://github.com/pedz/cscope.el

It eventually calls find-tag-tag which is in etags.el.  When helm minor mode is on for the buffer and one of the cscope function is called such as cscope-find-references, I get an error:

Aborting an helm session running in background
custom-initialize-reset: In ‘cscope-find-references’ source: ‘#[0 \306\300\301\304\305$\307 \303\242\310=\204O \311\230\204O\312 "\204O\312\313 ! "\204O \235\204O \227 \235\204O \226 \235\204O\314\315\316\311 #C "\262 \310 \317\302 "\207 [#[771 r\300q\210\212\302 \303 \210)\304 \305 $*\207 [gen_compiler.c enable-recursive-minibuffers t visit-tags-table-buffer complete-with-action tags-completion-table] 8

(fn STRING PRED ACTION)] nil prepare_outfile (nil) nil nil helm-comp-read-get-candidates nil t  assoc intern append replace-regexp-in-string \s\ helm-cr-default helm-cr-unknown-pattern-flag helm-pattern] 6]’
 (user-error "No recursive edit is in progress")

find-tag-tag calls completing-read which ends up calling helm--completing-read-default (Note... all this is my best guess)

The truth is, I've never really liked find-tag-tag 100% because the patterns it uses are too sloopy for what I want.  I want the default to be the C identifier under the current point if the point is within a C identifier and find-tag-tag matches too much.  e.g. it matches all of foo->bar when point is at the beginning or within bar due to the syntax tables.

So, I think I want to do two things.  First is to remove the dependency on find-tag-tag and implement what I want directly.  And then I'd like to leverage helm if it is present.

The reason for the post is a few things. 

1) I thought there may be some interest by the helm developers in this use case.  Perhaps they believe it should work and are surprised that it does not.
2) I can (and have been) cruising the source but was wondering if there are any source material for developers that want to tie in to helm.  Good examples, etc.
3) I have no ambition to recreate the wheel so if there already exists something close to what I describe, can you please point me to it.  Currently I am thinking I am going to leverage thing-at-point and define c-identifier so that (thing-at-point 'c-identifier) will work.  I may spin this off into a separate package.  I'm a little surprised that nothing like that exists but so far I've not been able to find it.
4) The basic use case is the user is on an identifier and then hits a key sequence to get cscope to bring up a list of hits for that same identifier.  Are there features of helm such as history that you believe I should leverage to get a better user interface?

I appreciate your time and want to thank everyone for developing helm.  It is still very "odd" to me.  I want to hit TAB sooooo bad.  But I'm getting use to it.  Some things in Helm I find extremely powerful.

Perry

Zack Corr

unread,
Jan 2, 2017, 4:09:47 AM1/2/17
to Perry Smith, Helm Developers
Hey mate,

This group is for developers using the Helm game engine written in Haskell. I'm not sure where the group for your Helm is (looks like emacs-helm), but it's not here. Although as a [Spac]Emacs user, I too can appreciate the utility of the emacs Helm :)

Cheers,

--
You received this message because you are subscribed to the Google Groups "Helm Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helm-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages