tramp

Tramp using ssh does not source .bash_profile / .profile

蹲街弑〆低调 提交于 2020-06-25 10:00:45
问题 I'm using Aquamacs (graphical emacs for OSX using emacs 24 and tramp version 2.2.3) to edit some files on a remote server. Tramp is set up to use ssh and works fine in terms of editing files. It fails when it comes to compiling because the compiler is not in the path. It seems like tramp does not source any of the profile files like .profile or .bash_profile . /bin/sh is a link to /bin/bash so bash should be the shell used by tramp. A shell started within emacs on the remote server won't

emacs tramp mode under windows 7, using plink method

左心房为你撑大大i 提交于 2020-01-24 14:06:16
问题 I'm trying to get tramp working under emacs 24.3 (tramp version 2.2.6-24.3) on windows 7 and I'm almost there. I've got putty/plink installed and in the path. Here's what's in my .emacs: ;;; TRAMP for remote editing ;;; (require 'tramp) (setq tramp-default-method "plink" tramp-default-user "dbraze" tramp-default-host "camille.haskins.edu" ) when I do M-x find-file /plink:: I'm prompted for a password. When I type it in all seems well, but eventually the connection fails. This is what I end up

emacs tramp mode under windows 7, using plink method

99封情书 提交于 2020-01-24 14:02:08
问题 I'm trying to get tramp working under emacs 24.3 (tramp version 2.2.6-24.3) on windows 7 and I'm almost there. I've got putty/plink installed and in the path. Here's what's in my .emacs: ;;; TRAMP for remote editing ;;; (require 'tramp) (setq tramp-default-method "plink" tramp-default-user "dbraze" tramp-default-host "camille.haskins.edu" ) when I do M-x find-file /plink:: I'm prompted for a password. When I type it in all seems well, but eventually the connection fails. This is what I end up

Stop tramp from opening remote directories when using ido-mode

*爱你&永不变心* 提交于 2020-01-04 05:33:08
问题 I have a problem with ido-mode. As I cycle through work directories (using M-n), one of the directories is inevitably on a remote server, which makes tramp start authenticating. I know I can edit the ido-work-directory-list-ignore-regexps variable, but maybe I'm misunderstanding that, or how it works with tramp. If the directory is someguy@example.com:/home/public/ what regexp should I use? 回答1: I would suggest trying this: (require 'ido) (add-to-list 'ido-work-directory-list-ignore-regexps

How do I fix a “Wrong Type Argument: listp,” error when trying to access remote file using tramp?

醉酒当歌 提交于 2020-01-04 03:02:00
问题 I am unable to access remote files in my usual way: C-x C-f [server]:[path][file] and am thrown this error: Wrong Type Argument: listp, [[server]:[path][file] I'm not even sure how to debug this further. any help is appreciated. edit: output when trying to debug: Debugger entered: nil (progn (debug) (ido-mode t) (progn (ad-add-advice (quote completing-read) (quote (foo nil t (advice lambda nil (if (boundp ...) ad-do-it (setq ad-return-value ...))))) (quote around) (quote nil)) (ad-activate

How do I fix a “Wrong Type Argument: listp,” error when trying to access remote file using tramp?

穿精又带淫゛_ 提交于 2020-01-04 03:01:14
问题 I am unable to access remote files in my usual way: C-x C-f [server]:[path][file] and am thrown this error: Wrong Type Argument: listp, [[server]:[path][file] I'm not even sure how to debug this further. any help is appreciated. edit: output when trying to debug: Debugger entered: nil (progn (debug) (ido-mode t) (progn (ad-add-advice (quote completing-read) (quote (foo nil t (advice lambda nil (if (boundp ...) ad-do-it (setq ad-return-value ...))))) (quote around) (quote nil)) (ad-activate

How to create a trampoline function for hook

和自甴很熟 提交于 2020-01-01 08:18:14
问题 I'm interested in hooking and I decided to see if I could hook some functions. I wasn't interested in using a library like detours because I want to have the experience of doing it on my own. With some sources I found on the internet, I was able to create the code below. It's basic, but it works alright. However when hooking functions that are called by multiple threads it proves to be extremely unstable. If two calls are made at nearly the same time, it'll crash. After some research I think

How to create a trampoline function for hook

独自空忆成欢 提交于 2020-01-01 08:18:06
问题 I'm interested in hooking and I decided to see if I could hook some functions. I wasn't interested in using a library like detours because I want to have the experience of doing it on my own. With some sources I found on the internet, I was able to create the code below. It's basic, but it works alright. However when hooking functions that are called by multiple threads it proves to be extremely unstable. If two calls are made at nearly the same time, it'll crash. After some research I think

emacs 24 on windows 7, tramp cannot find plink program

邮差的信 提交于 2019-12-21 20:26:11
问题 I am trying to use Emacs 24.2 with Tramp on windows 7 to remotely edit files on a linux server. I installed the Putty suit program and OpenSSH. I also placed the plink.exe in the putty suit into the bin folder under the emacs 24 folder, and added the folder emacs24/bin into the PATH environment variable. However, when I try to access the remote file from emacs with the command in the minibuffer: /username@host:filename, I get the following error message from emacs: plink is not recognized as

Error when loading emacs with emacs-live

早过忘川 提交于 2019-12-13 06:52:01
问题 When I start emacs I get the error Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("cmd\\.exe" nil) (if (string-match "cmd\\.exe" tramp-encoding-shell) "/c" "-c") eval((if (string-match "cmd\\.exe" tramp-encoding-shell) "/c" "-c")) this appears to occur when loading the magit pack eval-buffer(#<buffer *load*-330059> nil "c:/cygwin64/home/johnstonk/.emacs.d/emacs-live/packs/stable/git-pack/lib/magit/magit.el" nil t) ; Reading at buffer position 3100 I confirmed