unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Option to use Tor to communicate with repo site
@ 2019-10-14  1:42 Richard Stallman
  2019-10-26  9:58 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2019-10-14  1:42 UTC (permalink / raw)
  To: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Would someone please install this?


2019-10-12  Richard Stallman  <rms@gnu.org>

	* lisp/vc/vc-dispatcher.el (vc-tor): New user option.
	(vc-do-command): If vc-tor is non-nil, use torsocks.

The defcustom needs to say what version it is added in.

diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index 40c392b..bf238de 100644
--- a/lisp/vc/vc-dispatcher.el
+++ b/lisp/vc/vc-dispatcher.el
@@ -267,6 +267,11 @@ vc-delistify
   ;; FIXME what about file names with spaces?
   (if (not filelist) "."  (mapconcat 'identity filelist " ")))
 
+(defcustom vc-tor nil
+  "If non-nil, communicate with the repository site via Tor."
+  :type 'boolean
+  :group 'vc)
+
 ;;;###autoload
 (defun vc-do-command (buffer okstatus command file-or-list &rest flags)
   "Execute a slave command, notifying user and checking for errors.
@@ -295,7 +300,8 @@ vc-do-command
 	 ;; due to potential truncation of long messages.
 	 (message-truncate-lines t)
 	 (full-command
-	  (concat (if (string= (substring command -1) "\n")
+	  (concat (if vc-tor "torsocks " "")
+                  (if (string= (substring command -1) "\n")
 		      (substring command 0 -1)
 		    command)
 		  " " (vc-delistify flags)



-- 
Dr Richard Stallman
Founder, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





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

* Re: Option to use Tor to communicate with repo site
  2019-10-14  1:42 Option to use Tor to communicate with repo site Richard Stallman
@ 2019-10-26  9:58 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2019-10-26  9:58 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> From: Richard Stallman <rms@gnu.org>
> Date: Sun, 13 Oct 2019 21:42:53 -0400
> 
> Would someone please install this?
> 
> 
> 2019-10-12  Richard Stallman  <rms@gnu.org>
> 
> 	* lisp/vc/vc-dispatcher.el (vc-tor): New user option.
> 	(vc-do-command): If vc-tor is non-nil, use torsocks.
> 
> The defcustom needs to say what version it is added in.

Thanks, installed.



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

end of thread, other threads:[~2019-10-26  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-14  1:42 Option to use Tor to communicate with repo site Richard Stallman
2019-10-26  9:58 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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