From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Live System User Newsgroups: gmane.emacs.bugs Subject: bug#23202: 24.5; emacsclient confusing server connection message Date: Sat, 02 Apr 2016 18:46:58 -0400 Message-ID: <87h9fjzl0d.fsf@aol.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459637309 10455 80.91.229.3 (2 Apr 2016 22:48:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 22:48:29 +0000 (UTC) To: 23202@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 03 00:48:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1amUKz-0000rY-EM for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 00:48:13 +0200 Original-Received: from localhost ([::1]:51231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUKy-0000P1-K8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 18:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUKt-0000NI-Tu for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:48:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amUKo-0004ob-TH for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:48:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUKo-0004oX-Ph for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amUKo-000786-J5 for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Live System User Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23202 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145963726527380 (code B ref -1); Sat, 02 Apr 2016 22:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2016 22:47:45 +0000 Original-Received: from localhost ([127.0.0.1]:49280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amUKX-00077X-CH for submit@debbugs.gnu.org; Sat, 02 Apr 2016 18:47:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amUKU-00077H-QH for submit@debbugs.gnu.org; Sat, 02 Apr 2016 18:47:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amUKO-0004h1-9j for submit@debbugs.gnu.org; Sat, 02 Apr 2016 18:47:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUKO-0004gv-6m for submit@debbugs.gnu.org; Sat, 02 Apr 2016 18:47:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUKM-0000Fx-PF for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:47:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amUKH-0004a9-LC for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:47:34 -0400 Original-Received: from omr-a016e.mx.aol.com ([204.29.186.65]:48386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUKH-0004W0-Ev for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 18:47:29 -0400 Original-Received: from mtaout-mbb01.mx.aol.com (mtaout-mbb01.mx.aol.com [172.26.254.109]) by omr-a016e.mx.aol.com (Outbound Mail Relay) with ESMTP id CD5263800081 for ; Sat, 2 Apr 2016 18:47:24 -0400 (EDT) Original-Received: from localhost.localdomain (c-50-163-96-131.hsd1.ma.comcast.net [50.163.96.131]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mtaout-mbb01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 8C74E38000092 for ; Sat, 2 Apr 2016 18:47:24 -0400 (EDT) x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1459637244; bh=K2zhqYAN4eRzymziPFzda8uuwela61vpvdcO69k2i8Q=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=12q8aftJcljYyl6lDTNTBqHwh0r+KJw3fvb0WfkIn10u5cf2XIoPQojZAIbJwDqc3 CfFRWk9BrKNdBXo6jDorbRrwRQG5CGfDzz0E0Eh3XHJ6ls9ULCdiscl3ZDU0zhfqTX OEBoGCJ/GiaO0y9FGS+vp0LaDY/VE+TRjYuNVnJM= x-aol-sid: 3039ac1afe6d57004bfc02aa X-AOL-IP: 50.163.96.131 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115905 Archived-At: When invoking `(server-start)' within ~/.emacs, Emacs corrrectly starts up the server and creates the server file: $ cat ~/.emacs.d/server/server | head -1 127.0.0.1:46791 18238 $ ps -ef | grep -v grep | grep 18238 liveuser 18238 7509 0 Mar31 pts/3 00:00:13 emacs $ netstat -tulpa | grep 46791 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 localhost.localdo:46791 0.0.0.0:* LISTEN 18238/emacs Now, when invoking emacsclient, I get the following message: $ emacsclient +12:2 ~/.emacs emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". Waiting for Emacs... Even though I get this message, apparently. emacsclient does find the network socket and brings up the "~/.emacs" file in an emacs window. In Emacs, invoking `(list-processes)' yields: server listen -- -- (network server on local) server <127.... open -- -- (network connection to 127.0.0.1) .% *Process List* 166 Process Menu * .emacs 73761 Emacs-Lisp ~/.emacs % *GNU Emacs* 858 Fundamental *scratch* 191 Lisp Interaction %* *Messages* 2285 Messages So why give a warning message of "can't find socket" if the connection is subsequentially successful (the server *was* started) and it gets its connection information from the server file, even though the server file is not an actual "socket"? Could it be that invoking emacsclient, by default, first looks for the server socket file in /tmp/emacs/server ? And then falls back to the ~/.emacs.d/server/server server file if that socket doesn't exists? But because of the default precedence. it doesn't determine whether a server actually doesn't exists before emitting the warning? Thanks. In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.7) of 2016-02-03 on buildhw-05.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11799901 Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: gnus-undo-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Checking new news...done Warning: Opening nnimap server on gmail...failed: ; Server nnimap+gmail previously determined to be down; not retrying; Opening nnimap server on gmail...failed: ; Server nnimap+gmail previously determined to be down; not retrying; Opening nnimap server on gmail...failed: ; Unable to open server nnimap+gmail due to: gmail/993 No address associated with hostname; Opening nnimap server on dada...failed: ; Opening nnimap server on gmail...failed: ; Unable to open server nnimap+gmail due to: gmail/993 No address associated with hostname Auto-saving... M-s e is undefined Read ~/.gnus v is undefined e is undefined Read ~/.gnus Quit [2 times] gnutls.c: [0] (Emacs) fatal error: Error in the pull function. Load-path shadows: ~/.emacs.d/lisp/ntlm hides /usr/share/emacs/24.5/lisp/net/ntlm Features: (shadow sort mail-extr emacsbug sendmail mule-util server nndraft nnmh nndoc utf-7 rfc2104 nnfolder nnimap utf7 parse-time netrc gnutls network-stream starttls tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache epa-file epa derived epg epg-config auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core sieve sieve-mode sieve-manage password-cache nnir gnus-sum gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems wid-edit cl-loaddefs cl-lib nnoo nnheader gnus-util mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 215242 19509) (symbols 48 118916 0) (miscs 40 70 226) (strings 32 83510 6948) (string-bytes 1 3112521) (vectors 16 20051) (vector-slots 8 576302 11990) (floats 8 226 496) (intervals 56 544 18) (buffers 960 29) (heap 1024 60858 19399))