1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 22:40:51 -08:00
Commit graph

555 commits

Author SHA1 Message Date
Chong Yidong
678bc1f524 * b2m.c (main): Ensure that each message ends in two newlines. 2009-07-08 03:20:03 +00:00
Jason Rumney
0a3472c7b9 * w32term.c (w32_initialize): Use standard types.
* runemacs.c (set_user_model_id): Use standard types.
* emacsclient.c (w32_set_user_model_id): Use standard types.
2009-07-03 15:32:02 +00:00
Eli Zaretskii
f2d6b71469 (WINNT_SUPPORT): Add common-win.elc, like src/Makefile.in did. 2009-07-03 13:42:29 +00:00
Jason Rumney
ff90fbdecc bug#1849 - Windows 7 Taskbar Support
* w32term.c (w32_initialize): Use GetModuleHandle for library that
is already loaded.
Set user model ID if supported (bug#1849).

* runemacs.c (set_user_model_id): New function.
(WinMain): Use it.

* emacsclient.c (w32_give_focus): Use GetModuleHandle for library
that is already loaded.
(w32_set_user_model_id): New function.
(main): Use it to associate emacsclient with emacs (bug#1849).
2009-06-30 15:48:23 +00:00
Jim Meyering
e0f591953b Remove useless if-before-free test.
* make-docfile.c (scan_lisp_file): Remove useless test.
2009-06-29 05:27:53 +00:00
Dan Nicolaescu
f5f20f6c67 (movemail.o): Don't pass -Demacs, unused. 2009-06-23 06:45:39 +00:00
Chong Yidong
7024347875 Add "Branch for 23.1" ChangeLog entry. 2009-06-21 14:35:26 +00:00
Adrian Robert
fa44da6ea6 * mac-fix-env.m: * Makefile.in (mac-fix-env): Remove. 2009-06-09 01:55:02 +00:00
Adrian Robert
a7f2b0b17e Makefile.in (mac-fix-env): Compile it using ALL_CFLAGS. 2009-06-07 03:50:01 +00:00
Juanma Barranquero
9dfda22f23 * emacsclient.c (print_help_and_exit): Fix typo and tabify (careful
spacing is required in the message output, as the comment suggests).
2009-04-20 03:19:19 +00:00
Chong Yidong
24d5010d9f * emacsclient.c (print_help_and_exit): Clarify argument placement
for short option names.
2009-04-20 02:52:56 +00:00
Dan Nicolaescu
6133a1a9b7 (print_help_and_exit): Fix typo. 2009-04-02 19:43:27 +00:00
Eli Zaretskii
22749e9acb inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
inc/pwd.h (struct passwd): Change the types of pw_uid and pw_gid to unsigned.
	  (getpwuid): Argument is now unsigned.
	  uid_t is now unsigned.

ntlib.c (setuid): Argument is now unsigned.
	(getuid): Return value is now unsigned.
	(getpwuid): Argument is now unsigned.
	(fchown): UID and GID arguments are now unsigned.

ntlib.h (fchown): UID and GID arguments are now unsigned.
	(getuid): Return value is now unsigned.
	(setuid): Argument is now unsigned.
	(getpwuid): Remove prototype (it's declared in nt/inc/pwd.h).

w32.c   (getpwuid): Change argument type to unsigned.
	(struct w32_id): Change type of `rid' member to unsigned.
	(w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
	argument ID to unsigned.  All callers changed.
	(getuid, geteuid, getgid, getegid): Change return type to unsigned.
2009-03-21 11:31:50 +00:00
Juanma Barranquero
b57ac69d07 Fix date in entry. 2009-03-11 01:04:23 +00:00
Juanma Barranquero
6cde1b2138 * emacsclient.c (main): Revert part of last change,
so drive-relative file names again work on Windows.
2009-03-11 00:57:03 +00:00
Stefan Monnier
ba528748a1 * server.el (server-process-filter): Use expand-file-name rather than
command-line-normalize-file-name so as to use the `dir' when provided.
* emacsclient.c (main): Always pass cwd via "-dir".  Pass the file
names without prepending cwd to them, so Emacs uses its customary
rules to determine how to interpret the file name.
2009-03-10 14:08:52 +00:00
Glenn Morris
f213f2c07e (main) [MAIL_USE_POP]: Add -r to usage message. 2009-03-04 04:16:39 +00:00
Chong Yidong
8ee7d7be1d * movemail.c: Include time.h unconditionally.
(main): Use time_t for time variables.
2009-02-13 14:21:16 +00:00
Glenn Morris
d228a23c4a (mbx_delimit_begin): Also write the current time. 2009-02-11 03:59:52 +00:00
Glenn Morris
3f32be22c6 (mbx_delimit_begin, mbx_delimit_end): Write mbox rather than Babyl
format.  (Bug#2196)
2009-02-10 03:30:39 +00:00
Adrian Robert
e7534fc4ed * emacsclient.c (decode_options): Use a dummy display name under NS/Cocoa. 2009-01-23 09:08:03 +00:00
Chong Yidong
9eb67dd9d4 * ebrowse.c (matching_regexp): Fix OB1 error. 2009-01-14 13:41:04 +00:00
Glenn Morris
9021bb4998 Add missing entry. 2009-01-10 23:52:50 +00:00
Glenn Morris
f5d0ac07d6 Add 2009 to copyright years. 2009-01-08 03:38:51 +00:00
Glenn Morris
b433a99104 (Copyright): Update copyright for 2009. 2009-01-05 00:53:04 +00:00
Chong Yidong
81f82586c4 * movemail.c (main): Fatal if hard links cannot be created. 2009-01-01 09:34:15 +00:00
Glenn Morris
30a7ee9fa3 File name fix, for AUTHORS. 2008-12-19 03:12:18 +00:00
Juanma Barranquero
f013149203 Fix typos and author's names. 2008-12-19 01:50:43 +00:00
Dan Nicolaescu
fd95644b93 * emacs.c (main): Print and error and exit when no data is read
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.
2008-12-18 08:48:26 +00:00
Juanma Barranquero
d483550724 Fix typos. 2008-12-17 15:25:54 +00:00
Dan Nicolaescu
67c1df0180 Include syswait.h instead of sys/types.h. 2008-12-14 03:23:43 +00:00
Dan Nicolaescu
5445ab06ef (WCONTINUED): New compatibility define for older systems. 2008-12-11 17:32:44 +00:00
Dan Nicolaescu
d50299d55d (main): Fix previous change. 2008-12-10 23:36:03 +00:00
Juanma Barranquero
5201664703 * emacsclient.c (main): Fix mindless breakage where emacsclient
does not work *at all* on Windows, even if it *can* connect.
2008-12-10 22:18:21 +00:00
Dan Nicolaescu
45ce457074 (main): Fail in case of not being able to connect. 2008-12-10 15:24:22 +00:00
Dan Nicolaescu
802bdb3c6b (EMACS_DAEMON): Remove definition.
(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.
2008-12-10 14:57:20 +00:00
Juanma Barranquero
c3f995a2cb * emacsclient.c [!WINDOWSNT] (EMACS_DAEMON): New define.
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).
2008-12-10 09:47:06 +00:00
Dan Nicolaescu
636b507bcc * misc.texi (emacsclient Options): Describe what an empty string
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.
2008-12-10 07:56:51 +00:00
Dan Nicolaescu
7b64124198 *** empty log message *** 2008-12-03 04:37:24 +00:00
Dan Nicolaescu
448d408588 Include <darpa/inet.h>. 2008-12-03 03:37:37 +00:00
Dan Nicolaescu
938ebc4fcd (scan_lisp_file): Use xmalloc instead of malloc. 2008-12-01 20:29:02 +00:00
Glenn Morris
3d86432513 Derek Peschel <dpeschel at eskimo.com> (tiny change)
(add_regex): Pass correct length to re_compile_pattern.
2008-11-22 03:18:03 +00:00
Chong Yidong
48c2dc6801 * emacsclient.c (window_system): Delete redundant variable.
(decode_options): Don't use it.
(find_tty): New function.
(main): Use find_tty, and don't use window_system.
2008-11-02 21:41:49 +00:00
Eli Zaretskii
d41784eef4 (main) [WINDOWSNT]: Don't ifdef away the call to `ttyname'.
(w32_getenv): Treat $TERM specially: if not found in the environment and in
the Registry, return "w32console".
(ttyname) [WINDOWSNT]: New function.
2008-11-01 13:49:23 +00:00
Andreas Schwab
322ca65006 (main): Don't force sending tty when in eval mode. 2008-10-31 23:17:13 +00:00
Chong Yidong
8a8a7cd396 * emacsclient.c (main): If using the current frame, send tty
information to Emacs in case daemon mode needs to occupy this tty.
2008-10-30 15:54:31 +00:00
Juanma Barranquero
bc558f3edb * emacsclient.c (EXTRA_SPACE): New macro.
(get_server_config, set_local_socket): Use it.
2008-10-29 15:34:06 +00:00
Juanma Barranquero
f8baa6395e * makefile.w32-in ($(BLD)/sorted-doc.$(O)): Remove spurious backslash.
Reported by Guillaume Conjat <gconjat.ext@orange-ftgroup.com>.
2008-10-29 13:09:57 +00:00
Juanma Barranquero
f77b11a051 * server.el, emacsclient.c: Use TMPDIR (default /tmp) instead of hardcoded /tmp. 2008-10-29 10:42:31 +00:00
Dan Nicolaescu
dc1cd5f755 (longopts, print_help_and_exit): Add -nw.
(decode_options): Use getopt_long_only.
2008-10-13 02:32:51 +00:00