aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/emacsclient.c
Commit message (Collapse)AuthorAgeFilesLines
* * emacsclient.c (decode_options): Use a dummy display name under NS/Cocoa.Adrian Robert2009-01-231-1/+9
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* * emacs.c (main): Print and error and exit when no data is readDan Nicolaescu2008-12-181-7/+15
| | | | | | | | | | from the pipe. * startup.el (command-line): Do not mention the server name in case the user has not mentioned it, print a more explicit message. * emacsclient.c (start_daemon_and_retry_set_socket): Improve error checking.
* Include syswait.h instead of sys/types.h.Dan Nicolaescu2008-12-141-1/+1
|
* (WCONTINUED): New compatibility define for older systems.Dan Nicolaescu2008-12-111-0/+4
|
* (main): Fix previous change.Dan Nicolaescu2008-12-101-4/+0
|
* * emacsclient.c (main): Fix mindless breakage where emacsclientJuanma Barranquero2008-12-101-0/+2
| | | | does not work *at all* on Windows, even if it *can* connect.
* (main): Fail in case of not being able to connect.Dan Nicolaescu2008-12-101-0/+2
|
* (decode_options): Fix typo.Dan Nicolaescu2008-12-101-1/+1
|
* (EMACS_DAEMON): Remove definition.Dan Nicolaescu2008-12-101-9/+14
| | | | | | | (decode_options): Do not allow an empty alternate_editor on WINDOWSNT. (print_help_and_exit): Replace EMACS_DAEMON with WINDOWSNT. (start_daemon_and_retry_set_socket): Likewise.
* * emacsclient.c [!WINDOWSNT] (EMACS_DAEMON): New define.Juanma Barranquero2008-12-101-7/+13
| | | | | | | Changes when EMACS_DAEMON is not defined: (print_help_and_exit): Don't add daemon information to help. (start_daemon_and_retry_set_socket): Make a no-op. (main): Don't set `start_daemon_if_needed' (which is initialized to 0).
* * misc.texi (emacsclient Options): Describe what an empty stringDan Nicolaescu2008-12-101-6/+80
| | | | | | | | | | | | | | argument does for --alternate-editor. * emacsclient.1: Describe what an empty string argument does for --alternate-editor. * emacsclient.c (print_help_and_exit): Describe what an empty string argument does for --alternate-editor. (set_socket): Make it possible to not exit in case of an error. (start_daemon_and_retry_set_socket): New function. (main): Use it. Restore the NULL value for socket_name and server_file after the set_socket call.
* Fix typo in include.Dan Nicolaescu2008-12-031-1/+1
|
* Include <darpa/inet.h>.Dan Nicolaescu2008-12-031-0/+2
|
* Fix last change.Chong Yidong2008-11-021-52/+51
|
* (window_system): Delete redundant variable.Chong Yidong2008-11-021-79/+85
| | | | | | (decode_options): Don't use it. (find_tty): New function. (main): Use find_tty, and don't use window_system.
* (main) [WINDOWSNT]: Don't ifdef away the call to `ttyname'.Eli Zaretskii2008-11-011-6/+15
| | | | | | (w32_getenv): Treat $TERM specially: if not found in the environment and in the Registry, return "w32console". (ttyname) [WINDOWSNT]: New function.
* (main): Don't force sending tty when in eval mode.Andreas Schwab2008-10-311-1/+1
|
* (main): If using the current frame, send tty information to Emacs inChong Yidong2008-10-301-1/+4
| | | | case daemon mode needs to occupy this tty.
* * emacsclient.c (EXTRA_SPACE): New macro.Juanma Barranquero2008-10-291-7/+14
| | | | (get_server_config, set_local_socket): Use it.
* * server.el, emacsclient.c: Use TMPDIR (default /tmp) instead of hardcoded /tmp.Juanma Barranquero2008-10-291-6/+11
|
* (longopts, print_help_and_exit): Add -nw.Dan Nicolaescu2008-10-131-2/+3
| | | | (decode_options): Use getopt_long_only.
* (main): Fix a typo in a comment.Eli Zaretskii2008-09-191-1/+1
|
* (main): Use stdout rather than stdin to obtain the terminal (bug#427).Chong Yidong2008-09-191-1/+1
|
* * bitmaps/README:Dan Nicolaescu2008-07-311-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xfns.c: * termcap.c: * term.c: * syswait.h: * systty.h: * systime.h: * syssignal.h: * sysdep.c: * process.h: * process.c: * print.c: * ndir.h: * lread.c: * keyboard.c: * getpagesize.h: * floatfns.c: * fileio.c: * emacs.c: * doc.c: * dispnew.c: * dired.c: * data.c: * callproc.c: * buffer.c: * README: * Makefile.in: * s/template.h: * s/msdos.h: * m/vax.h: Remove VMS support. * s/vms.h: * vlimit.h: * uaf.h: * temacs.opt: * param.h: * ioctl.h: Remove file. * descrip.mms: * compile.com: Remove file. * Create.c: Remove VMS support. * message.el (Module): * gnus-start.el (Module): * gnus-registry.el (Module): * textmodes/texinfmt.el: * nxml/nxml-enc.el: * mail/feedmail.el: * international/mule.el: * international/latexenc.el: * emulation/viper-util.el: * emulation/viper-init.el: * emulation/viper-ex.el: * emacs-lisp/bytecomp.el: * version.el: * subr.el: * startup.el: * sort.el: * shadowfile.el: * recentf.el: * printing.el: * paths.el: * minibuffer.el: * ls-lisp.el: * loadup.el: * hippie-exp.el: * finder.el: * files.el: * ediff-util.el: * ediff-ptch.el: * ediff-init.el: * ediff-diff.el: * dired.el: * dired-aux.el: * cus-edit.el: * bindings.el: * arc-mode.el: * add-log.el: Remove VMS support. * obsolete/vmsproc.el: * obsolete/vms-pmail.el: * obsolete/vms-patch.el: Remove file. * etags.c: * emacsclient.c: Remove VMS support. * termcap.src: Remove file. * README: * PROBLEMS: * MACHINES: Remove VMS info. * ediff.texi: Remove VMS support. * os.texi: * intro.texi: * files.texi: Remove VMS support. * emacs.texi: Remove VMS support. * make-dist: * README: Remove VMS support. * vms: Remove directory.
* Remove support for Mac Carbon.Dan Nicolaescu2008-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-091-6/+4
|
* * configure.in: Remove references to obsolete variables andDan Nicolaescu2008-02-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | systems. * configure: Regenerate. * Makefile.in (NO_SHORTNAMES): * emacsclient.c (NO_SHORTNAMES): * fakemail.c (NO_SHORTNAMES): * make-docfile.c (NO_SHORTNAMES): * movemail.c (NO_SHORTNAMES): * pop.c (NO_SHORTNAMES): Remove references to obsolete variable. * config.nt (SHORTNAMES): Remove reference to obsolete variable. * s/vms4-0.h: * s/vms4-2.h: * s/vms4-4.h: * s/vms5-5.h: Remove, unused. * s/irix5-2.h: * s/irix6-0.h: * s/riscos5.h: * s/mach-bsd4-3.h: * m/mips4.h: Remove files for obsolete systems * Makefile.in: * filelock.c: * unexmips.c: * m/hp9000s300.h: * m/iris4d.h: * s/aix3-1.h: * s/hpux.h: * s/msdos.h: * s/usg5-0.h: * s/usg5-2-2.h: * s/usg5-2.h: * s/usg5-3.h: Remove references to obsolete variables. * s/irix5-0.h: Remove, move all the contents ... * s/irix6-5.h: ... here. Simplify. * config.in: Regenerate.
* Fix typo in comment.Juanma Barranquero2008-02-201-1/+1
|
* (main) [WINDOWSNT]: Understand DRIVE:NAME, whereJuanma Barranquero2008-02-201-34/+24
| | | | NAME is relative to DRIVE'S current directory.
* (print_help_and_exit): Show -d option on Windows.Juanma Barranquero2008-02-151-4/+2
|
* (decode_options): Fix last change so as not to override an explicit -display.Stefan Monnier2008-02-081-1/+1
|
* (decode_options): Pass --display implicitly if -cStefan Monnier2008-02-081-10/+12
| | | | is specified. Only set tty if -t or -c is specified.
* (decode_options): Default to a NULL display, as Emacs-22.Stefan Monnier2008-01-261-4/+15
| | | | | Allow the -d option under w32 again, for those rare cases where it actually does make sense.
* (set_tcp_socket): Don't send a "\n" after the authentication string;Juanma Barranquero2008-01-251-3/+3
| | | | there's no need to haste.
* (decode_options) [WINDOWSNT]: Don't use the value of DISPLAY in theEli Zaretskii2008-01-121-2/+10
| | | | | | environment. Don't support -d. (print_help_and_exit) [WINDOWSNT]: Don't show the --display option. (longopts) [WINDOWSNT]: Remove --display.
* Add missing final newlines to message calls.Glenn Morris2008-01-091-6/+6
|
* Daniel Hackney <dan at haxney.org> (tiny change)Glenn Morris2008-01-091-1/+1
| | | | (set_socket): Add trailing newline to socket error message.
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: [email protected]/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | Comment change.Juanma Barranquero2007-10-271-2/+2
| |
* | Merge from emacs--rel--22Miles Bader2007-10-271-2/+25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 131-137) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 261-262) - Update from CVS Revision: [email protected]/emacs--devo--0--patch-908
| * Add a wrapper for getenv so it also checks the registry on Windows.Juanma Barranquero2007-10-261-7/+116
| | | | | | | | | | | | | | | | | | | | | | Suggestion and algorithm by Eli Zaretskii. Code partially based on w32_get_resource and init_environment (w32.c). (xmalloc): New function by Károly Lőrentey (backported from the trunk). (quote_file_name): Use it. (egetenv): New wrapper for getenv. (get_current_dir_name, decode_options, get_server_config, set_local_socket, set_socket, main): Use egetenv, not getenv. (w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
| * (sock_err_message): New function.Jason Rumney2007-10-251-2/+25
| | | | | | | | (set_tcp_socket): Use it.
* | Add a wrapper for getenv so it also checks the registry on Windows.Juanma Barranquero2007-10-261-9/+102
| | | | | | | | | | | | | | | | | | Suggestion and algorithm by Eli Zaretskii. Code partially based on w32_get_resource and init_environment (w32.c). (egetenv): New wrapper for getenv. (get_current_dir_name, decode_options, get_server_config, set_local_socket, set_socket, main): Use egetenv, not getenv. (w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
* | (print_help_and_exit): Fix space to improve alignment in output messages.Juanma Barranquero2007-10-091-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-10-091-3/+8
|\| | | | | | | Revision: [email protected]/emacs--devo--0--patch-875
| * (w32_window_app): Init common controls when windowed.Jason Rumney2007-09-271-3/+8
| |
* | (decode_options): -t implies -c.Stefan Monnier2007-09-211-0/+1
| |
* | (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP)Stefan Monnier2007-09-201-37/+22
| | | | | | | | | | | | (IS_ANY_SEP): Only define if !defined(HAVE_GET_CURRENT_DIR_NAME). (main_argc): Remove. (strprefix): Use strncmp.