1. 30 Dec, 2012 1 commit
    • Jan Djärv's avatar
      Check for deprecated gtk_handle_box in configure. · 5a1d858b
      Jan Djärv authored
      * configure.ac: Check for GtkHandlebox.
      
      * src/gtkutil.c (TOOLBAR_TOP_WIDGET): New macro.
      (xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of
      handlebox_widget.  Set toolbar_in_hbox to false/true, set
      toolbar_is_packed to true.
      (xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET.
      (update_frame_tool_bar): Check toolbar_is_packed for packing.
      Show all on TOOLBAR_TOP_WIDGET.
      (free_frame_tool_bar): Check toolbar_is_packed.  Use widget returned
      by TOOLBAR_TOP_WIDGET.
      (xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET.
      Check toolbar_is_packed.
      
      * src/xterm.h (struct x_output): Surround handlebox_widget with
      #ifdef HAVE_GTK_HANDLE_BOX_NEW.  toolbar_is_packed is new,
      toolbar_in_hbox is bool.
      5a1d858b
  2. 29 Dec, 2012 1 commit
    • Andreas Schwab's avatar
      Properly configure GNUstep libraries · 2550c6e4
      Andreas Schwab authored
      * configure.ac (TEMACS_LDFLAGS2): Don't define.
      (LIBS_GNUSTEP): Set for GNUstep and substitute.
      (LD_SWITCH_SYSTEM_TEMACS): Don't set for GNUstep.
      
      * src/Makefile.in (TEMACS_LDFLAGS2): Remove.
      (LIBS_GNUSTEP): Define.
      (LIBES): Add $(LIBS_GNUSTEP).
      (temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).
      2550c6e4
  3. 27 Dec, 2012 1 commit
  4. 26 Dec, 2012 1 commit
    • Paul Eggert's avatar
      Revert static checking of stack smashing. · a8e1690b
      Paul Eggert authored
      * configure.ac (WARN_CFLAGS): Omit -Wstack-protector when
      configured with --enable-gcc-warnings.  -Wstack-protector causes
      diagnostics to be issued on Ubuntu 12.10 x86-64.
      a8e1690b
  5. 24 Dec, 2012 2 commits
  6. 20 Dec, 2012 1 commit
  7. 16 Dec, 2012 1 commit
    • Romain Francoise's avatar
      Add support for preserving ACL entries of files. · 7c3d167f
      Romain Francoise authored
      	* configure.ac (acl): New option.
      	(HAVE_POSIX_ACL): Test for POSIX ACL support.  This is typically
      	provided by libacl on GNU/Linux.
      
      	* fileio.c (Ffile_acl, Fset_file_acl): New functions.
      	(Fcopy_file): Change last arg to `preserve_extended_attributes'
      	and copy ACL entries of file in addition to SELinux context if
      	set.
      	(syms_of_fileio): Add `file-acl' and `set-file-acl'.
      
      	* Makefile.in (LIBACL_LIBS): New macro.
      	(LIBES): Use it.
      
      	* files.el (file-extended-attributes)
      	(set-file-extended-attributes): New functions.
      	(backup-buffer): Use them to handle both SELinux context and ACL
      	entries.
      	(backup-buffer-copy): Work with an alist of extended attributes,
      	rather than an SELinux context.
      	(basic-save-buffer-2): Ditto.
      
      	* files.texi (File Attributes): Document ACL support and new
      	`file-acl' function.
      	(Changing Files): Mention argument name change of `copy-file' and
      	document new function `set-file-acl'.
      7c3d167f
  8. 14 Dec, 2012 1 commit
    • Paul Eggert's avatar
      Fix permissions bugs with setgid directories etc. · 97976f9f
      Paul Eggert authored
      * configure.ac (BSD4_2): Remove; no longer needed.
      * admin/CPP-DEFINES (BSD4_2): Remove.
      * doc/lispintro/emacs-lisp-intro.texi (Files List):
      directory-files-and-attributes now outputs t for attribute that's
      now a placeholder.
      * doc/lispref/files.texi (Testing Accessibility): Document GROUP arg
      of file-ownership-preserved-p.
      (File Attributes): Document that 9th element is now
      just a placeholder.
      * doc/lispref/os.texi (User Identification): Document new functions group-gid,
      group-real-gid.
      * etc/NEWS: Document changes to file-attributes,
      file-ownership-preserved-p.
      Mention new functions group-gid, group-real-gid.
      * lisp/files.el (backup-buffer): Don't rely on 9th output of
      file-attributes, as it's now a placeholder.  Instead, use the new
      optional arg of file-ownership-preserved-p.
      (file-ownership-preserved-p): New optional arg GROUP.
      Fix mishandling of setuid directories that would cause this
      function to return t when it should have returned nil.
      Document what happens if the file does not exist, and when
      it's not known whether the ownership will be preserved.
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p):
      Likewise.
      (tramp-get-local-gid): Use group-gid for integer, as that's
      faster and more reliable.
      * src/dired.c (Ffile_attributes): Return t as the 9th attribute,
      to mark it as a placeholder.  The old value was often wrong.
      The only user of this attribute has been changed to use
      file-ownership-preserved-p instead, with its new group arg.
      * src/editfns.c (Fgroup_gid, Fgroup_real_gid): New functions.
      
      Fixes: debbugs:13125
      97976f9f
  9. 13 Dec, 2012 2 commits
    • Glenn Morris's avatar
      Add wisent manual to build process · bfe6ffb6
      Glenn Morris authored
      * doc/misc/wisent.texi: Small edits.  Set copyright to FSF, update license to
      GFDL 1.3+.
      
      * doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add wisent.
      (wisent, $(buildinfodir)/wisent$(INFO_EXT), wisent.dvi, wisent.pdf):
      New targets.
      
      * doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add wisent.
      ($(infodir)/wisent$(INFO_EXT), wisent.dvi): New targets.
      
      * info/dir: wisent.
      bfe6ffb6
    • Glenn Morris's avatar
      Add bovine manual to build process · 98c94021
      Glenn Morris authored
      * doc/misc/bovine.texi: Small edits.  Set copyright to FSF, update license to
      GFDL 1.3+, remove empty index.
      
      * doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add bovine.
      (bovine, $(buildinfodir)/bovine$(INFO_EXT), bovine.dvi, bovine.pdf):
      New targets.
      
      * doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add bovine.
      ($(infodir)/bovine$(INFO_EXT), bovine.dvi): New targets.
      
      * info/dir: Add bovine.
      98c94021
  10. 12 Dec, 2012 2 commits
    • Andreas Schwab's avatar
      * Makefile.in (install-info): Use `${MAKE} -s' for echo-info. · 0f59daaf
      Andreas Schwab authored
      (uninstall): Likewise.
      0f59daaf
    • Glenn Morris's avatar
      Add srecode manual to build process · 4c2dd4ee
      Glenn Morris authored
      * doc/misc/srecode.texi: Small edits.  Set copyright to FSF, add explicit
      GFDL 1.3+ license, fix up index.
      
      * doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add srecode.
      (srecode, $(buildinfodir)/srecode$(INFO_EXT), srecode.dvi)
      (srecode.pdf): New targets.
      
      * doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add srecode.
      ($(infodir)/srecode$(INFO_EXT), srecode.dvi): New targets.
      
      * info/dir: Add srecode.
      4c2dd4ee
  11. 11 Dec, 2012 3 commits
  12. 10 Dec, 2012 5 commits
  13. 09 Dec, 2012 2 commits
  14. 08 Dec, 2012 4 commits
    • Paul Eggert's avatar
      Use putenv+unsetenv instead of modifying environ directly. · 5745a7df
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add putenv, unsetenv.
      * lib/putenv.c, lib/unsetenv.c, m4/putenv.m4, m4/setenv.m4:
      New files, copied automatically from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/alloc.c (xputenv): New function.
      * src/dbusbind.c (Fdbus_init_bus):
      * src/emacs.c (main):
      * src/xterm.c (x_term_init):
      Use xputenv instead of setenv or putenv, to detect memory exhaustion.
      * src/editfns.c (initial_tz): Move static var decl up.
      (tzvalbuf_in_environ): New static var.
      (init_editfns):	Initialize these two static vars.
      (Fencode_time): Don't assume arbitrary limit on EMACS_INT width.
      Save old TZ value on stack, if it's small.
      (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly;
      instead, use xputenv+unsetenv to set and restore TZ.
      (environbuf): Remove static var.  All uses removed.
      (Fset_time_zone_rule): Do not save TZ and environ;
      no longer needed here.
      (set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]:
      Move to inside set_time_zone_rule; they don't need file scope any more.
      (set_time_zone_rule): Maintain the TZ=value string separately.
      (syms_of_editfns): Don't initialize initial_tz;
      init_editfns now does it.
      * src/emacs.c (dump_tz) [HAVE_TZSET]: Now const.
      * src/lisp.h (xputenv): New decl.
      
      Fixes: debbugs:13070
      5745a7df
    • Eli Zaretskii's avatar
      Windows followup to 2012-12-08T02:30:51Z!eggert@cs.ucla.edu. · 63999a7d
      Eli Zaretskii authored
       lib/makefile.w32-in ($(BLD)/sig2str.$(O)): New dependency.
       Remove a stray character at the beginning of the file.
      
      Fixes: debbugs:13026
      63999a7d
    • Paul Eggert's avatar
      Simplify get_lim_data. · 7be78020
      Paul Eggert authored
      * admin/CPP-DEFINES (ULIMIT_BREAK_VALUE): Remove.
      * configure.ac (ULIMIT_BREAK_VALUE): Remove.
      * src/vm-limit.c (get_lim_data): Combine RLIMIT_AS and RLIMIT_DATA methods.
      Remove USG and vlimit methods; no longer used these days.
      Add #error catchall just in case.
      7be78020
    • Paul Eggert's avatar
      Assume POSIX 1003.1-1988 or later for signal.h. · d983a10b
      Paul Eggert authored
      Exceptions: do not assume SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN,
      SIGTTOU, SIGUSR1, SIGUSR2, as Microsoft platforms lack these.
      * admin/CPP-DEFINES (SIGALRM, SIGCHLD, SIGHUP, SIGKILL, SIGPIPE, SIGQUIT):
      Remove.
      (SIGTRAP): Remove this one too, as config.h no longer defines it.
      * admin/merge-gnulib (GNULIB_MODULES): Add sig2str.
      * configure.ac (PTY_OPEN, PTY_TTY_NAME_SPRINTF):
      Use SIGCHLD rather than SIGCLD.
      * lib/sig2str.c, lib/sig2str.h, m4/sig2str.m4: New files, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/makefile.w32-in (GNULIBOBJS): Add $(BUILD)/sig2str.$(O).
      * src/process.c [subprocesses]: Include <c-ctype.h>, <sig2str.h>.
      (deleted_pid_list, Fdelete_process, create_process)
      (record_child_status_change, handle_child_signal, deliver_child_signal)
      (init_process_emacs, syms_of_process):
      Assume SIGCHLD is defined.
      (parse_signal): Remove.  All uses removed.
      (abbr_to_signal): New static function.
      (Fsignal_process): Use it to convert signal names to ints.
      * src/sysdep.c (sys_suspend) [!DOS_NT]: Use kill (0, ...) rather than
      kill (getpgrp (), ...).
      (emacs_sigaction_init): Assume SIGCHLD is defined.
      (init_signals): Assume SIGALRM, SIGCHLD, SIGHUP, SIGKILL,
      SIGPIPE, and SIGQUIT are defined.  Do not worry about SIGCLD any more.
      * src/syssignal.h (EMACS_KILLPG): Remove.
      All uses replaced by 'kill' with a negative pid.
      (SIGCHLD): Remove definition, as we now assume SIGCHLD.
      * src/w32proc.c (sys_kill): Support negative pids compatibly with POSIX.
      
      Fixes: debbugs:13026
      d983a10b
  15. 05 Dec, 2012 3 commits
  16. 30 Nov, 2012 1 commit
    • Paul Eggert's avatar
      Merge from gnulib for 'inline'. · f64898ab
      Paul Eggert authored
      2012-11-29 snippet/warn-on-use: no 'static inline'
      2012-11-29 ftruncate, fts, lstat, openat, raise: no 'static inline'
      2012-11-29 arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
      2012-11-29 fflush, stat: no 'static inline'
      2012-11-29 stdio: better 'inline'
      2012-11-29 sys_stat: no 'static inline'
      2012-11-29 unistd: better 'inline'
      2012-11-29 c-strtod, memcoll, readutmp: no 'static inline'
      2012-11-29 extern-inline: no 'static inline'
      2012-11-29 sys_socket: better 'inline'
      * lib/stdio.c, lib/unistd.c: New files, from gnulib.
      * build-aux/snippet/warn-on-use.h, lib/gnulib.mk, lib/lstat.c:
      * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c, lib/stat.c:
      * lib/stdio.in.h, lib/sys_stat.in.h, lib/unistd.in.h, m4/c-strtod.m4:
      * m4/extern-inline.m4, m4/gnulib-comp.m4, m4/lstat.m4, m4/md5.m4:
      * m4/sha1.m4, m4/sha256.m4, m4/sha512.m4, m4/stat.m4, m4/stdio_h.m4:
      * m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/unistd_h.m4:
      Update from gnulib.
      
      Fixes: debbugs:13040
      f64898ab
  17. 24 Nov, 2012 2 commits
  18. 23 Nov, 2012 1 commit
    • Paul Eggert's avatar
      Assume POSIX 1003.1-1988 or later for dirent.h. · 95ef7787
      Paul Eggert authored
      * admin/CPP-DEFINES (HAVE_CLOSEDIR, HAVE_DIRENT_H): Remove.
      * admin/notes/copyright: Adjust to src/ndir.h -> nt/inc/dirent.h renaming.
      * configure.ac: Do not check for dirent.h or closdir.
      * nt/inc/dirent.h: Rename from ../src/ndir.h, with these changes:
      (struct dirent): Rename from struct direct.  All uses changed.
      * nt/inc/sys/dir.h: Remove.
      * src/dired.c: Assume HAVE_DIRENT_H.
      (NAMLEN): Remove, replacing with ...
      (dirent_namelen): New function.  All uses changed.  Use the GNU macro
      _D_EXACT_NAMELEN if available, as it's faster than strlen.
      (DIRENTRY): Remove, replacing all uses with 'struct dirent'.
      (DIRENTRY_NONEMPTY): Remove.  All callers now assume it's nonzero.
      * src/makefile.w32-in (DIR_H): Remove.  All uses replaced with
      $(NT_INC)/dirent.h.
      ($(BLD)/w32.$(O)): Do not depend on $(SRC)/ndir.h.
      * src/ndir.h: Rename to ../nt/inc/dirent.h.
      * src/sysdep.h (closedir) [!HAVE_CLOSEDIR]: Remove.
      Do not include <dirent.h>; no longer needed.
      * src/w32.c: Include <dirent.h> rather than "ndir.h".
      
      Fixes: debbugs:12958
      95ef7787
  19. 21 Nov, 2012 2 commits
    • Paul Eggert's avatar
      Assume POSIX 1003.1-1988 or later for unistd.h. · 9239d970
      Paul Eggert authored
      * admin/CPP-DEFINES (BROKEN_GETWD, HAVE_GETCWD, HAVE_GETWD, HAVE_SIZE_T)
      (HAVE_UNISTD_H): Remove.
      * configure.ac: Do not check for getcwd or getwd.
      * lib-src/emacsclient.c (getcwd): Remove decl.
      (get_current_dir_name): Assume getcwd exists.
      * lib-src/etags.c (HAVE_GETCWD): Remove.
      (getcwd): Remove decl.
      (NO_LONG_OPTIONS): Remove this.  All uses removed.
      Emacs always has GNU getopt.
      (etags_getcwd): Assume getcwd exists.
      * lib-src/movemail.c (F_OK, X_OK, W_OK, R_OK): Remove.
      * nt/config.nt (HAVE_GETCWD): Remove.
      * src/alloc.c: Assume unistd.h exists.
      * src/fileio.c (Fexpand_file_name) [DOS_NT]: Use getcwd, not getwd.
      * src/sysdep.c (get_current_dir_name): Assume getcwd exists.
      (getwd) [USG]: Remove; no longer needed.
      (sys_subshell) [DOS_NT]: Use getcwd, not getwd.
      * src/w32.c (getcwd): Rename from getwd, and switch to getcwd's API.
      * src/w32.h (getcwd): Remove decl.
      
      Fixes: debbugs:12945
      9239d970
    • Glenn Morris's avatar
      1b3b7caa
  20. 20 Nov, 2012 1 commit
  21. 19 Nov, 2012 1 commit
  22. 17 Nov, 2012 1 commit
    • Paul Eggert's avatar
      Assume POSIX 1003.1-1988 or later for fcntl.h. · 49cdacda
      Paul Eggert authored
      * admin/CPP-DEFINES (O_RDONLY, O_RDWR, HAVE_FCNTL_H): Remove.
      * admin/merge-gnulib (GNULIB_MODULES): Add fcntl-h.
      * configure.ac: Do not check for fcntl.h.
      * lib/gnulib.mk: Regenerate.
      * lib-src/movemail.c, lib-src/update-game-score.c: Assume <fcntl.h> exists.
      * nt/inc/sys/socket.h (O_NONBLOCK): Rename from O_NDELAY, since the
      POSIX name for this flag is O_NONBLOCK.  All uses changed.
      * nt/inc/unistd.h (O_RDWR, O_NOCTTY): New macros.  Like AT_FDCWD etc.
      these really should be moved to a replacement <fcntl.h> if and
      when that gets implemented.  In the meantime, include <fcntl.h>
      to make sure we don't override its definitions.
      * src/callproc.c (relocate_fd): Assume F_DUPFD.
      * src/emacs.c, src/term.c (O_RDWR): Remove.
      * src/keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than
      O_NDELAY, since O_NONBLOCK is the standard name for this flag.
      * src/nsterm.m: Assume <fcntl.h> exists.
      * src/process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process)
      (create_pty, Fmake_network_process, server_accept_connection)
      (wait_reading_process_output, init_process_emacs):
      Assume O_NONBLOCK.
      (wait_reading_process_output): Put in a special case for WINDOWSNT
      to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK.
      It's not clear this is needed, but it's a more-conservative change.
      (create_process): Assume FD_CLOEXEC.
      (create_process, create_pty): Assume O_NOCTTY.
      * src/sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL.
      (reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY.
      Omit if not DOS_NT, since F_GETFL is not defined there.
      (serial_open): Assume O_NONBLOCK and O_NOCTTY.
      * src/term.c: Include <fcntl.h>, for flags like O_NOCTTY.
      (O_NOCTTY): Remove.
      (init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that
      lack it, since gnulib guarantees this.
      * src/w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY.
      
      Fixes: debbugs:12881
      49cdacda
  23. 16 Nov, 2012 1 commit
    • Paul Eggert's avatar
      Remove no-longer-used pty_max_bytes variable. · 3d082a26
      Paul Eggert authored
      * configure.ac (fpathconf): Remove unnecessary check.
      * admin/CPP-DEFINES (HAVE_FPATHCONF): Remove.
      * src/process.c (pty_max_bytes): Remove; unused.
      (send_process): Do not set it.
      3d082a26