unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* my cscope mode
@ 2011-02-17 13:58 Perry Smith
  2011-02-18  6:48 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Perry Smith @ 2011-02-17 13:58 UTC (permalink / raw)
  To: GNU Emacs List

Back around 1990 I wrote a mode for emacs so that I can use cscope from within emacs.  There are various other implementations of the same idea floating around.  It is now causing me great gnashing of teeth.  It has two bugs.

First, I've hooked in to find file because cscope may think the file is down /this/original/path but the tree is a build tree that has "backing" trees hooked together with symbolic links.  So, if the file is not down /this/original/path, I search down /this/link/original/path and then /this/link/link/original/path, until there are no more links to follow.

By the time I find the file, for some reason, my "goto line" fails.  It finds the file.  And if the file is loaded the first time, the "goto line" works.  But if the file is already loaded, the "goto line" doesn't work.  Any thoughts of what I might be doing wrong?  I'm completely guessing that I am doing a save excursion or something like that in the wrong place.

The other frustrating failure is it clobbers either the kill ring or the window system's paste buffer or both.  I think in this case, I'm trying to have a private history but I must be misusing it.  This problem is "new" as far as I can remember.  It started when I moved a few years ago up to Emacs 22 and it continues with Emacs 23.

I know this is a horrible bug description but I thought some might have some thoughts as to what I'm doing wrong or perhaps you have some ideas of nice ways to debug it.

Thank you,
Perry




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: my cscope mode
  2011-02-17 13:58 my cscope mode Perry Smith
@ 2011-02-18  6:48 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2011-02-18  6:48 UTC (permalink / raw)
  To: help-gnu-emacs

On 2/17/11 6:58 AM, Perry Smith wrote:
> I know this is a horrible bug description but I thought some might have some thoughts as to what I'm doing wrong or perhaps you have some ideas of nice ways to debug it.

Try byte-compiling the file in a bare emacs (invoked with the -Q option) and see 
if the byte compiler emits any useful diagnostics.

-- 
Kevin Rodgers
Denver, Colorado, USA




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-18  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 13:58 my cscope mode Perry Smith
2011-02-18  6:48 ` Kevin Rodgers

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).