all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] rcirc.el (rcirc-connect): Make process name configurable.
@ 2011-01-14 18:23 Stefan Kangas
  2011-01-15 11:14 ` Deniz Dogan
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2011-01-14 18:23 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

When using rcirc to connect to a proxy that uses several ports on the
same host, one will get confusing results if joining a channel with the
same name on several servers.

If the proxy is running on localhost, one will get buffers (and log
files) named e.g. #emacs@localhost, #emacs@localhost<1> etc.

The attached patch changes (rcirc-connect) so that one can specify what
name the connecting process will have.

Thanks,
Stefan Kangas


[-- Attachment #2: rcirc-configure-process.txt --]
[-- Type: text/plain, Size: 2773 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: skangas@skangas.se-20110114011521-glws2d6ojsa0fyjp
# target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk
# testament_sha1: bae2aee2a7aea3671fed35dae50f3a0c64c34f28
# timestamp: 2011-01-14 02:28:45 +0100
# base_revision_id: monnier@iro.umontreal.ca-20110113231430-\
#   chaw2vxixdrrj3g4
# 
# Begin patch
=== modified file 'lisp/net/rcirc.el'
--- lisp/net/rcirc.el	2011-01-13 23:14:30 +0000
+++ lisp/net/rcirc.el	2011-01-14 01:15:21 +0000
@@ -471,7 +471,7 @@
 
 ;;;###autoload
 (defun rcirc-connect (server &optional port nick user-name
-                             full-name startup-channels password)
+                             full-name startup-channels password process-name)
   (save-excursion
     (message "Connecting to %s..." server)
     (let* ((inhibit-eol-conversion)
@@ -484,7 +484,9 @@
 	   (user-name (or user-name rcirc-default-user-name))
 	   (full-name (or full-name rcirc-default-full-name))
 	   (startup-channels startup-channels)
-           (process (make-network-process :name server :host server :service port-number)))
+           (process (make-network-process
+                     :name (if process-name process-name server)
+                     :host server :service port-number)))
       ;; set up process
       (set-process-coding-system process 'raw-text 'raw-text)
       (swit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RqSzmb17AQAgogrgNdqALwA1ROecnhFERogO
xA+kvQ4JOUnLjqB6ZLsLSIdHGIETkFCxdB67XegYathhixiY0mpme7synCrBX4MQOeGuAn5SYyFP
aE0P4XFvt0CsLQxFOLuYRqajk5bB7cWTkt4mJs3gVsbyZmhA5JWgJUTQKAjM8hnhjJbPBJCQ1iZ5
82Ns66xwztfgW0RhEeEAFYl9sbUwXDrQpfr3pOpqYdgvDkq7MRXK8OgWKavFOJD1F3JFOFCQD0yt
IQ==

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

end of thread, other threads:[~2011-01-16  0:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 18:23 [PATCH] rcirc.el (rcirc-connect): Make process name configurable Stefan Kangas
2011-01-15 11:14 ` Deniz Dogan
2011-01-16  0:20   ` Stefan Kangas

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.