[ESS] [OT] Enabled a hook and no longer find which

2021-07-30 Thread Dirk Eddelbuettel via ESS-help


tl;dr: I enabled an action 'on save' and I no longer find where :-/


Longer story: I settled upon GNU global and ggtags at some point for a
(mostly multilingual) system of tags in R and C++ (and some more). So a few
of source directories have these (ugly names) files GPATH, GTAGS, GRTAGS.
And at one point I became too clever by half and somehow enabled updating of
these files for at least some repos. But I no longer remember _how_ I did
that and can, for the life of me, find any trace in my .emacs (and, older
story, .elisp/*el) file(s). It is definitely active in ~/git/rcpp and
~/git/tiledb-r -- which maybe the two repos in work in the most.

This list has been very kind helpful in the past when I puzzled myself with
this one true editor.  I suspect I used an ESS hook somewhere.  How would I
find or debug this?

The net effect seems to be that as soon I save (C-x s) the files GTAGS and
GRTAGS get updated.  Which I otherwise do via a one-line script setting the
proper options (as GNU global at some point in the past needed a patch, I
think that is no longer needed)
gtags --gtagsconf=/home/edd/.globalrc --gtagslabel=pygments --verbose 
--statistics "$@"

I have been half-amused by this for a few weeks but I am approaching "white
flag" territory here on my own workstation: how do I find out how I enabled
this?  I looked into git commit hooks (nope), GNU global config (nope), and,
by looking more closely at the timestamps, have to suspect that is from
Emacs.  But nothing in the Emacs config gives it away. I have a vague memory
that it went via one of the XDG standard directories
(~/.config/share/SOMETHING ?) but no mas.  

Dirk, only moderately amuzed by now

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] [OT] Enabled a hook and no longer find which

2021-07-30 Thread Andreas Leha via ESS-help
Dirk Eddelbuettel via ESS-help  writes:

> tl;dr: I enabled an action 'on save' and I no longer find where :-/
>
>
> Longer story: I settled upon GNU global and ggtags at some point for a
> (mostly multilingual) system of tags in R and C++ (and some more). So a few
> of source directories have these (ugly names) files GPATH, GTAGS, GRTAGS.
> And at one point I became too clever by half and somehow enabled updating of
> these files for at least some repos. But I no longer remember _how_ I did
> that and can, for the life of me, find any trace in my .emacs (and, older
> story, .elisp/*el) file(s). It is definitely active in ~/git/rcpp and
> ~/git/tiledb-r -- which maybe the two repos in work in the most.
>
> This list has been very kind helpful in the past when I puzzled myself with
> this one true editor.  I suspect I used an ESS hook somewhere.  How would I
> find or debug this?
>
> The net effect seems to be that as soon I save (C-x s) the files GTAGS and
> GRTAGS get updated.  Which I otherwise do via a one-line script setting the
> proper options (as GNU global at some point in the past needed a patch, I
> think that is no longer needed)
> gtags --gtagsconf=/home/edd/.globalrc --gtagslabel=pygments --verbose 
> --statistics "$@"
>
> I have been half-amused by this for a few weeks but I am approaching "white
> flag" territory here on my own workstation: how do I find out how I enabled
> this?  I looked into git commit hooks (nope), GNU global config (nope), and,
> by looking more closely at the timestamps, have to suspect that is from
> Emacs.  But nothing in the Emacs config gives it away. I have a vague memory
> that it went via one of the XDG standard directories
> (~/.config/share/SOMETHING ?) but no mas.  
>
> Dirk, only moderately amuzed by now

wild guess:  file/dir local variable?

Best,
Andreas

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] [OT] Enabled a hook and no longer find which

2021-07-30 Thread Tyler Smith via ESS-help
On Fri, Jul 30, 2021, at 1:56 PM, Dirk Eddelbuettel via ESS-help wrote:
> 
> tl;dr: I enabled an action 'on save' and I no longer find where :-/

Maybe check the values of before-save-hook and after-save-hook while visiting 
one of the files this problem applies to? You might find a function name you 
can grep for in your config. 

If it's only in certain directories, check if there is a `.dir-locals.el` file 
in that directory (or one of its parents).

Good luck!

Tyler

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] [OT] Enabled a hook and no longer find which

2021-07-30 Thread Dirk Eddelbuettel via ESS-help


On 30 July 2021 at 21:32, Andreas Leha via ESS-help wrote:
| wild guess:  file/dir local variable?

I considered that too esp as I see it only in some repos. But no repo-local
file I can see or tell (and I know repo layout / files well enough).

On 30 July 2021 at 17:27, Tyler Smith via ESS-help wrote:
| Maybe check the values of before-save-hook and after-save-hook while
| visiting one of the files this problem applies to? You might find a function
| name you can grep for in your config.  

Yes hooks had come to mind and I tried 'C-h v' and 'C-h f' for a few
variables and functions. Still no smoking gun.

| If it's only in certain directories, check if there is a `.dir-locals.el`
| file in that directory (or one of its parents).

'locate' shows that I have a few .dir-locals.el on my machine but they all
come from different upstreams.


Good suggestions, though.  Thank you both.  Still poking, mostly in the dark.

Dirk

--
https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help