Show
Ignore:
Timestamp:
2006年07月16日 08時36分52秒 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/erc/erc-identd.el

    r4058 r4111  
    2525;;; Commentary: 
    2626 
    27 ;; You can have a local identd server (running on port 8113; I use DNAT 
    28 ;; to bind 113->8113) if you add this to .emacs.el: 
     27;; This module allows you to run a local identd server on port 8113. 
     28;; You will need to set up DNAT to bind 113->8113, or use a proxy. 
    2929 
    30 ;;    (add-hook 'erc-connect-pre-hook 'erc-identd-start) 
    31 ;;    (add-hook 'erc-disconnected-hook 'erc-identd-stop) 
     30;; To use this module, add identd to `erc-modules' and run 
     31;; `erc-update-modules'. 
     32 
     33;; Here is an example /etc/inetd.conf rule that forwards identd 
     34;; traffic to port 8113.  You will need simpleproxy installed for it 
     35;; to work. 
     36 
     37;; 113 stream tcp nowait nobody /usr/sbin/tcpd /usr/bin/simpleproxy simpleproxy -i -R 127.0.0.1:8113 
    3238 
    3339;;; Code: 
    3440 
     41(require 'erc) 
     42 
    3543(defvar erc-identd-process nil) 
     44 
     45;;;###autoload (autoload 'erc-identd-mode "erc-identd") 
     46(define-erc-module identd nil 
     47  "This mode launches an identd server on port 8113." 
     48  ((add-hook 'erc-connect-pre-hook 'erc-identd-start) 
     49   (add-hook 'erc-disconnected-hook 'erc-identd-stop)) 
     50  ((remove-hook 'erc-connect-pre-hook 'erc-identd-start) 
     51   (remove-hook 'erc-disconnected-hook 'erc-identd-stop))) 
    3652 
    3753(defun erc-identd-filter (proc string) 
     
    6480  (setq erc-identd-process 
    6581        (make-network-process :name "identd" 
    66                               :buffer (generate-new-buffer "identd") 
     82                              :buffer nil 
    6783                              :host 'local :service port 
    68                               :server t :noquery t 
    69                               :filter 'erc-identd-filter))) 
     84                              :server t :noquery t :nowait t 
     85                              :filter 'erc-identd-filter)) 
     86  (set-process-query-on-exit-flag erc-identd-process nil)) 
    7087 
    7188;;;###autoload