GNU bug report logs -
#17815
24.4.50; (process-file) erroneously raises its buffer when running with TRAMP
Previous Next
Reported by: Dima Kogan <dima <at> secretsauce.net>
Date: Fri, 20 Jun 2014 08:11:02 UTC
Severity: normal
Found in version 24.4.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 17815 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> Well, all handlers I could factor out for several backends, live in
>> tramp.el as `tramp-handle-...'. `tramp-adb-handle-process-file' and
>> `tramp-sh-handle-process-file' contain subtle differences, it will be
>> harder to refactor them.
>
> Those functions are almost 100 lines long and yet the diff between the
> two is only the little thing below.
Right, that's why I wrote about "subtle" differences.
> Clearly, there's room for a good refactoring. Maybe you can't replace
> them with a single function, but you can create a third function that
> holds most of the code.
Sure. But lately I was plagued with recursive loading of Tramp packages,
so I'm a little bit conservative in moving code between the different
files.
Whenever it is possible to refactor code out I'll do. *-process-file is
on the list, but I cannot promise to do it immediately. One idea is to
generalize `tramp-send-command' and friends, for most of the handlers
this is the major difference between the different backends. Other
handlers but *-process-file would profit from this as well.
> Stefan
Best regards, Michael.
This bug report was last modified 10 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.