|
|
Subject: Re: Tramp always wants password when using cscope - msg#00748
On Aug 23, 11:59 pm, Michael Albinus <michael.albi...@xxxxxx> wrote:
>
> What have you changed in xcscope.el?
>
Hi Michael.
Here are the diffs from the xcscope.el from the cscope-15.6 source:
1991c1991
< (apply 'start-process "cscope" outbuf
---
> (apply 'start-file-process "cscope" outbuf
2001c2001
< (apply 'call-process cscope-program nil outbuf t options)
---
> (apply 'process-file cscope-program nil outbuf t options)
2124c2124
< (apply 'start-process "cscope-indexer"
---
> (apply 'start-file-sprocess "cscope-indexer"
It seems as though xcscope is starting a new remote cscope process for
every query. This adds 10 to 20 seconds to each query, on top of the
time it takes the remote cscope to do the lookup, which is already
about 15 to 20 seconds. I changed my ssh setup to no longer require
passwords, but it still incurs these delays.
Thread at a glance:
Previous Message by Date:
Indent region
`C-u 10 C-x TAB' or `C-M-\' indent a region `line by line', whereas I want the
whole region to be indented, like:
The old lady pulled her spectacles down and looked over them about the
room; then she put them up and looked out under them. She seldom or never
looked through them for so small a thing as a boy; they were her state
pair, the pride of her heart, and were built for "style," not service --
she could have seen through a pair of stove-lids just as well. She looked
perplexed for a moment, and then said, not fiercely, but still loud enough
for the furniture to hear:
. In Emacs manual I couldn't find an answer to the problem.
Thanks for any help
Rodolfo
Next Message by Date:
Re: Indent region
On Aug 24, 9:55 am, Rodolfo Medina <rodolfo.med...@xxxxxxxxx> wrote:
> `C-u 10 C-x TAB' or `C-M-\' indent a region `line by line', whereas I want the
> whole region to be indented, like:
>
> The old lady pulled her spectacles down and looked over them about the
> room; then she put them up and looked out under them. She seldom or never
> looked through them for so small a thing as a boy; they were her state
> pair, the pride of her heart, and were built for "style," not service --
> she could have seen through a pair of stove-lids just as well. She looked
> perplexed for a moment, and then said, not fiercely, but still loud enough
> for the furniture to hear:
>
> . In Emacs manual I couldn't find an answer to the problem.
>
> Thanks for any help
> Rodolfo
C-x r t runs `string-rectangle'
`string-rectangle' is an interactive compiled Lisp function
-- loaded from "rect"
(string-rectangle START END STRING)
Documentation:
Insert STRING on each line of the region-rectangle, shifting text
right.
The left edge of the rectangle specifies the column for insertion.
If `pending-delete-mode' is active the string replace the region.
Otherwise this command does not delete or overwrite any existing text.
When called from a program, the rectangle's corners are START and END.
Previous Message by Thread:
Re: Tramp always wants password when using cscope
Neil Baylis <neil.baylis@xxxxxxxxx> writes:
> Michael,
Hi Neil,
> I think the problem is with xcscope. Every time I ask it to look
> something up in the tags database, xcscope opens a new shell session.
> This takes some seconds to set up before it can even begin to access
> the database. If xcscope would re-use the connection, it would not
> incur this delay.
Yes. It would require to rewrite xcsope that it opens just a shell on
the remote host (as asynchronous process), and then sends the commends
to the corresponding process, and reads the results from the associated
buffer.
> Here's an example, where I asked xcscope to find the global definition
> of a symbol. You can see that the entire process took about 15
> seconds. About half the time was spent before the "exec cscope"
> command was sent. The rest was actually looking up the symbol and
> returning the results.
What I don't see in the traces is where Tramp requires to enter the
password, again. Do I miss something?
> Thanks,
>
> Neil
Best regards, Michael.
Next Message by Thread:
partial completion and switch-to-buffer
Greetings,
With the advent of partial-completion-mode in Emacs 23, I was wondering
if there isn't any way to use this mechanism with switch-to-buffer ("C-x b")?
Switch-to-buffer still seems to do only prefix-matching.
I am aware of iswitch-mode and ido-mode, which does substring matching
(which is basically what I want), but find them too obtrusive. I do not
want any completion to be done unless I say so (by pressing <tab>).
I'm using Emacs CVS from 2009-07-30 (i.e. pretty much 23.1).
-Tobias
|
|