aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/include/inet_sctp.hrl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-08-22 14:37:30 +0200
committerFredrik Gustafsson <[email protected]>2013-08-27 10:16:00 +0200
commit1de48164c7b6812bfae88bf60fdd6e5af4b32259 (patch)
treea0d6fef1aa30486d644e34a815f0e24d01cea2cc /lib/kernel/include/inet_sctp.hrl
parente2c0f6dd1fc9b6bd506a481644b9c63f9d575aa1 (diff)
downloadotp-1de48164c7b6812bfae88bf60fdd6e5af4b32259.tar.gz
otp-1de48164c7b6812bfae88bf60fdd6e5af4b32259.tar.bz2
otp-1de48164c7b6812bfae88bf60fdd6e5af4b32259.zip
tools:
In Emacs it is possible to remotely edit a file, by opening for example /ssh:somehost.com:/path/to/file.erl. In Emacs, the feature that makes this possible, is called TRAMP. When compiling such a file, by typing C-c C-k, an inferior Erlang shell is opened on the remote host, but the compilation expression that was evaluated in the remote Erlang shell was: c("/ssh:somehost.com:/path/to/file", [...]). which resulted in a "no such file or directory" error. This commit changes the compilation expression into: c("/path/to/file", [...]). for files opened remotely via TRAMP. The file name is adjusted similarly when compiling .yrl and .xrl files. In a buffer opened remotely, the Elisp function buffer-file-name returns the full path with TRAMP syntax. In this example it would be "/ssh:somehost.com:/path/to/file.erl". A new function, erlang-local-buffer-file-name, has been introduced, which peels off the TRAMP syntax on remotely opened files, while for locally opened files, it just calls buffer-file-name.
Diffstat (limited to 'lib/kernel/include/inet_sctp.hrl')
0 files changed, 0 insertions, 0 deletions