all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient: bug fixes
@ 2006-11-30  5:19 Michael Mauger
  2006-11-30 22:17 ` Juanma Barranquero
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Mauger @ 2006-11-30  5:19 UTC (permalink / raw)


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

A couple of small fixes for emacsclient:

* Make sure fprintf has a proper format string and flush the results in message()
* Make the message when emacsclient connects to a non-localhost emacs informational rather than an error (This was especially notable in emacsclientw where a error dialog was displayed)

[-- Attachment #2: ec-bug.diff --]
[-- Type: text/plain, Size: 1194 bytes --]

Index: emacs/lib-src/emacsclient.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/emacsclient.c,v
retrieving revision 1.96
diff -c -r1.96 emacsclient.c
*** emacs/lib-src/emacsclient.c	25 Nov 2006 00:32:40 -0000	1.96
--- emacs/lib-src/emacsclient.c	30 Nov 2006 04:38:06 -0000
***************
*** 193,199 ****
      }
    else
  #endif
!     fprintf (is_error ? stderr : stdout, msg);
  }
  
  /* Decode the options from argv and argc.
--- 193,204 ----
      }
    else
  #endif
!     {
!       FILE *f = is_error ? stderr : stdout;
! 
!       fprintf (f, "%s", msg);
!       fflush (f);
!     }
  }
  
  /* Decode the options from argv and argc.
***************
*** 589,595 ****
      return INVALID_SOCKET;
  
    if (server.sin_addr.s_addr != inet_addr ("127.0.0.1"))
!     message (TRUE, "%s: connected to remote socket at %s\n",
               progname, inet_ntoa (server.sin_addr));
  
    /*
--- 594,600 ----
      return INVALID_SOCKET;
  
    if (server.sin_addr.s_addr != inet_addr ("127.0.0.1"))
!     message (FALSE, "%s: connected to remote socket at %s\n",
               progname, inet_ntoa (server.sin_addr));
  
    /*

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

* Re: emacsclient: bug fixes
  2006-11-30  5:19 emacsclient: bug fixes Michael Mauger
@ 2006-11-30 22:17 ` Juanma Barranquero
  0 siblings, 0 replies; 2+ messages in thread
From: Juanma Barranquero @ 2006-11-30 22:17 UTC (permalink / raw)
  Cc: Emacs Devel

On 11/30/06, Michael Mauger <mmaug@yahoo.com> wrote:

> * Make sure fprintf has a proper format string and flush the results in message()
> * Make the message when emacsclient connects to a non-localhost emacs informational rather than an error (This was especially notable in emacsclientw where a error dialog was displayed)

Good catches!

Though, strictly speaking, message() doesn't need to use fprintf();
fputs() is enough.

                    /L/e/k/t/u

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

end of thread, other threads:[~2006-11-30 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30  5:19 emacsclient: bug fixes Michael Mauger
2006-11-30 22:17 ` Juanma Barranquero

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.