1. 13 Aug, 2013 8 commits
  2. 12 Aug, 2013 22 commits
    • Paul Eggert's avatar
      * process.c (deactivate_process): Reset fds to -1. · 297a545b
      Paul Eggert authored
      This fixes a problem introduced by the Bug#15035 patch
      when using GPG.  Reported by Herbert J. Skuhra.
      297a545b
    • Eli Zaretskii's avatar
      Fix zlib support on MS-Windows. · aa942e2b
      Eli Zaretskii authored
       configure.ac (HAVE_ZLIB): Don't use -lz on MinGW.
      
       src/decompress.c <zlib_initialized> [WINDOWSNT]: New static variable.
       (Fzlib_decompress_region) [WINDOWSNT]: Call init_zlib_functions if
       not yet initialized.
      aa942e2b
    • Lars Magne Ingebrigtsen's avatar
      7d8e68fe
    • Grégoire Jadi's avatar
      * mail/sendmail.el (sendmail-send-it): Don't kill the error buffer on error · 7997a2f1
      Grégoire Jadi authored
      This makes debugging easier.
      7997a2f1
    • Lars Magne Ingebrigtsen's avatar
      Rename `zlib-decompress-gzipped-region' to `zlib-decompress-region'. · 7699d09e
      Lars Magne Ingebrigtsen authored
      Also support zlib-format compression.
      7699d09e
    • Paul Eggert's avatar
      Minor zlib configuration tweaks. · 1d238bc7
      Paul Eggert authored
      * configure.ac (HAVE_ZLIB): Don't assume zlib is linked if PNG is.
      * src/decompress.c (fn_inflateInit2) [!WINDOWSNT]:
      Don't assume presence of fn_inflateInit2_ zlib internal function.
      1d238bc7
    • Juanma Barranquero's avatar
      lisp/xml.el (xml-parse-tag-1): Use looking-at. · 01f1a9ab
      Juanma Barranquero authored
      (This reverts change in 2013-08-11T00:07:48Z!lekktu@gmail.com, which breaks the test suite).
      https://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00263.html
      01f1a9ab
    • Lars Magne Ingebrigtsen's avatar
    • Eli Zaretskii's avatar
      Fix build with zlib on MS-Windows. · 594a4307
      Eli Zaretskii authored
       configure.ac (LIBZ): Comment on w32 peculiarities regarding LIBZ.
      
       src/decompress.c [WINDOWSNT]: Include windows.h and w32.h.
       (DEF_ZLIB_FN, LOAD_ZLIB_FN) [WINDOWSNT]: New macros.  Use them to
       define static variables that are pointers to zlib functions to be
       dynamically loaded.
       (init_zlib_functions) [WINDOWSNT]: New function.
       (fn_inflateInit2_, fn_inflate, fn_inflateEnd, fn_inflateInit2):
       New macros.
       (Fdecompress_gzipped_region, unwind_decompress): Use the fn_*
       macros instead of invoking the zlib functions directly.
       (syms_of_decompress): DEFSYM Qzlib_dll.  Staticpro
       Szlib_available_p.
      
       lisp/term/w32-win.el (dynamic-library-alist): Add DLLs for zlib.
      594a4307
    • Glenn Morris's avatar
      Auto-commit of generated files. · 7a67e06b
      Glenn Morris authored
      7a67e06b
    • Dmitry Antipov's avatar
      Avoid looping over all frame windows to freeze and unfreeze. · d2e113bc
      Dmitry Antipov authored
      * window.h (struct window): Drop frozen_window_start_p.
      (freeze_window_starts): Drop prototype.
      * frame.h (struct frame): New frozen_window_starts flag.
      (FRAME_WINDOWS_FROZEN): New macro.
      * window.c (freeze_window_start, freeze_window_starts):
      Remove.
      (select_window, replace_window): Adjust users.
      * xdisp.c (resize_mini_window): Use FRAME_WINDOWS_FROZEN.
      (window_frozen_p): New function.
      (redisplay_window): Use it.
      d2e113bc
    • Paul Eggert's avatar
      Fix some fd issues when running subprocesses. · 94fcd171
      Paul Eggert authored
      Fix bugs that can leak files or file descriptors on errors.
      Don't unlink open temp files, as that's hard for users to diagnose
      when things go awry (e.g., temp disk exhausted).
      Don't bother to lock temp files.  Check for invalid recursion.
      * callproc.c (synch_process_fd): Remove.  All uses removed.
      (synch_process_tempfile): New var or macro.
      (CALLPROC_STDOUT, CALLPROC_STDERR, CALLPROC_PIPEREAD, CALLPROC_FDS):
      New constants.
      (record_kill_process): New arg, the temp name.  All callers changed.
      (delete_temp_file): Now just a simple wrapper around unlink.
      (call_process_kill): New arg, the call_process_fd array.
      Close them all.  Clear synch_process_pid.  Remove the temp file,
      or arrange for it to be removed.
      (call_process_cleanup) [MSDOS]: Arg no longer contains file name;
      that's been moved to synch_process_tempfile.  Caller changed.
      Do not remove the tempfile; that's now call_process_kill's
      responsibility.
      (call_process_cleanup) [!MSDOS]: Do not record unwind-protect for
      call_process_kill; the caller now does that.
      (call_process_cleanup): Do not close the process fd; that's now
      call_process_kill's responsibility.
      (Fcall_process): Implement via new function call_process, which
      has most of the old body of Fcall_process, but with a different API.
      (call_process): New function that does not open or close filefd if
      it is nonnegative.  Record which fds need to be closed, and let
      call_process_kill close (and remove the tempfile, on MSDOS) on error.
      Signal an error if invoked recursively (could be done via a hook).
      Simplify creation of the tempfile in the MSDOS case.
      Don't create the output file until after checking for the executable.
      Report any failure to open /dev/null.
      Don't open /dev/null for writing twice; once is enough.
      Don't create pipe if all output is being discarded or sent to file.
      Don't worry about setting up the coding system or reading from the
      pipe if all output is being discarded.
      Hoist fd_error local into top level, to lessen block nesting.
      Don't record deleted pid here; now done by Fcall_process_region.
      (Fcall_process) [MSDOS]: Report mktemp failure immediately,
      and note its success in synch_process_tempfile.
      Do not leak resources when child_setup fails.
      (Fcall_process) [!MSDOS && !WINDOWSNT]: Remove duplicate assignment
      to child_errno.  Remove unnecessary close of fd0; it's close-on-exec.
      (create_temp_file): Now returns open fd, with an additional
      Lisp_Object * argument to return the name.  All callers changed.
      Do not close the file; rewind it instead, and leave it open for
      the caller.  Do not lock the temp file.  Unwind-protect the file
      and the file-descriptor.
      (Fcall_process_region): If the input is /dev/null, unwind-protect it.
      If an asynchrounous process, record it here, not in call_process.
      (syms_of_callproc) [MSDOS]: Initialize synch_process_tempfile.
      * eval.c (set_unwind_protect): New function.
      * fileio.c (write_region): New function, generalized from the
      old Fwrite_region.  Do not lock temp files.
      (Fwrite_region): Use it.
      * lisp.h (set_unwind_protect, write_region): New decls.
      * process.c: Include <verify.h>.
      (make_process): Mark fds as initially closed.
      (deleted_pid_list): Now a list of pid-filename pairs.
      All uses changed.
      (close_process_fd): New function.
      (SUBPROCESS_STDIN, WRITE_TO_SUBPROCESS, READ_FROM_SUBPROCESS)
      (SUBPROCESS_STDOUT, READ_FROM_EXEC_MONITOR, EXEC_MONITOR_OUTPUT):
      New constants.  Verify that their number matches PROCESS_OPEN_FDS.
      (create_process, create_pty, Fmake_serial_process)
      (server_accept_connection): Record which fds need to be closed,
      and let deactivate_process close them.
      (Fmake_network_process): Do not discard the unwind-protect
      until it's safe to do so.
      (deactivate_process): Close the fds opened by create_process etc.
      (Fprocess_send_eof): Adjust to new way of recording open fds.
      Report an error if /dev/null can't be opened, instead of aborting.
      * process.h (PROCESS_OPEN_FDS): New constant.
      (struct Lisp_Process): New member open_fds.
      (record_kill_process, record_deleted_pid): Adjust signatures.
      (record_deleted_pid): Move decl here ...
      * syswait.h (record_deleted_pid): ... from here.
      
      Fixes: debbugs:15035
      94fcd171
    • Katsumi Yamaoka's avatar
      lisp/gnus/ChangeLog: Fix typo · 4750fd7b
      Katsumi Yamaoka authored
      4750fd7b
    • Katsumi Yamaoka's avatar
      lisp/gnus/mm-decode.el (mm-display-external): Run a timer for the temp files... · 7cfa5cec
      Katsumi Yamaoka authored
      lisp/gnus/mm-decode.el (mm-display-external): Run a timer for the temp files deletion after a viwer exits; add a deletion timer for the needsterm case, too
      7cfa5cec
    • Katsumi Yamaoka's avatar
    • Glenn Morris's avatar
      * etc/refcards/Makefile (dist): New rule. · 72baeef2
      Glenn Morris authored
      72baeef2
    • Katsumi Yamaoka's avatar
    • Glenn Morris's avatar
      etc/refcards/Makefile tweaks · 45c33aa6
      Glenn Morris authored
      * etc/refcards/Makefile (all_pdf, all_ps, fr-survival.ps): New targets.
      (SURVIVAL_CARDS_PDF): Add fr_survival.pdf.
      45c33aa6
    • Paul Eggert's avatar
      Merge from gnulib. · eaca0446
      Paul Eggert authored
      This incorporates:
      2013-08-11 fpending: port to recent Cygwin change to stdio_ext.h
      2013-08-10 sys_time: port to OpenBSD
      eaca0446
    • Glenn Morris's avatar
      Reduce some duplication in doc/misc/Makefile.in · 808190e6
      Glenn Morris authored
      * doc/misc/Makefile.in (ada_mode_deps, auth_deps, autotype_deps)
      (bovine_deps, calc_deps, ccmode_deps, cl_deps, dbus_deps)
      (dired_x_deps, ebrowse_deps, ede_deps, ediff_deps, edt_deps)
      (eieio_deps, emacs_gnutls_deps, emacs_mime_deps, epa_deps)
      (erc_deps, ert_deps, eshell_deps, eudc_deps, faq_deps)
      (flymake_deps, forms_deps, gnus_deps, htmlfontify_deps)
      (idlwave_deps, ido_deps, info_deps, mairix_el_deps, message_deps)
      (mh_e_deps, newsticker_deps, nxml_mode_deps, org_deps)
      (pcl_cvs_deps, pgg_deps, rcirc_deps, reftex_deps, remember_deps)
      (sasl_deps, sc_deps, semantic_deps, ses_deps, sieve_deps)
      (smtpmail_deps, speedbar_deps, srecode_deps, todo_mode_deps)
      (tramp_deps, url_deps, vip_deps, viper_deps, widget_deps)
      (wisent_deps, woman_deps): New variables.  Use throughout.
      808190e6
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Add build, install, uninstall rules for all dvi, html, pdf, ps manuals · 8496d8d7
      Glenn Morris authored
      * configure.ac (etcdocdir): Rename from docdir, to avoid confusion
      with configure's standard --docdir argument.  All uses updated.
      
      * Makefile.in (etcdocdir): Rename from docdir.  All uses updated.
      (install-etcdoc): Rename from install-doc.  All uses updated.
      (uninstall): Run uninstall-doc.
      (PSS): Add misc-ps.
      (INSTALL_DVI, INSTALL_HTML, INSTALL_PDF, INSTALL_PS)
      (INSTALL_DOC, UNINSTALL_DVI, UNINSTALL_HTML, UNINSTALL_PDF)
      (UNINSTALL_PS, UNINSTALL_DOC): New variables.
      ($(INSTALL_DOC), install-doc, install-dvi, install-html, install-pdf)
      (install-ps, $(UNINSTALL_DOC), uninstall-doc, uninstall-dvi)
      (uninstall-html, uninstall-pdf, uninstall-ps): New .PHONY rules.
      
      * doc/emacs/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      New variables.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (dvi, html, pdf, ps): Use *_TARGETS variables.
      (emacs.ps, emacs-xtra.ps): Remove explicit rules.
      (emacs.html): Use HTML_OPTS.
      (clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
      (.PHONY): install-dvi, install-html, install-pdf, install-ps
      ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (install-dvi, install-html, install-pdf, install-ps, install-doc)
      (uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
      (uninstall-doc): New rules.
      
      * doc/lispintro/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      New variables.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (dvi, html, pdf, ps): Use *_TARGETS variables.
      (emacs-lisp-intro.ps): Remove explicit rule.
      (emacs-lisp-intro.html): Use HTML_OPTS.
      (clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
      (.PHONY): install-dvi, install-html, install-pdf, install-ps
      ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (install-dvi, install-html, install-pdf, install-ps, install-doc)
      (uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
      (uninstall-doc): New rules.
      
      * doc/lispref/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
      New variables.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (dvi, html, pdf, ps): Use *_TARGETS variables.
      (elisp.html): Use HTML_OPTS.
      (elisp.ps): Remove explicit rule.
      (.PHONY): install-dvi, install-html, install-pdf, install-ps
      ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (install-dvi, install-html, install-pdf, install-ps, install-doc)
      (uninstall-dvi, uninstall-html, uninstall-ps, uninstall-pdf)
      (uninstall-doc): New rules.
      (clean): Use DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS.
      
      * doc/misc/Makefile.in (prefix, datarootdir, datadir, PACKAGE_TARNAME)
      (docdir, dvidir, htmldir, pdfdir, psdir, GZIP_PROG, INSTALL)
      (INSTALL_DATA): New, set by configure.
      (HTML_OPTS, HTML_TARGETS, PS_TARGETS, DVIPS): New variables.
      (.PHONY): Add html, ps, install-dvi, install-html, install-pdf,
      install-ps ,install-doc, uninstall-dvi, uninstall-html, uninstall-pdf,
      uninstall-ps, and uninstall-doc.
      (.SUFFIXES): Add .ps and .dvi.
      (.dvi.ps): New suffix rule.
      (html, ps, ada-mode.html, auth.html, autotype.html, bovine.html)
      (calc.html, cc-mode.html, cl.html, dbus.html, dired-x.html)
      (ebrowse.html, ede.html, ediff.html, edt.html, eieio.html)
      (emacs-gnutls.html, emacs-mime.html, epa.html, erc.html)
      (ert.html, eshell.html, eudc.html, faq.html, flymake.html)
      (forms.html, gnus.html, htmlfontify.html, idlwave.html)
      (ido.html, mairix-el.html, message.html, mh-e.html)
      (newsticker.html, nxml-mode.html, org.html, pgg.html)
      (rcirc.html, reftex.html, remember.html, sasl.html, sc.html)
      (semantic.html, sieve.html, smtpmail.html, speedbar.html)
      (srecode.html, todo-mode.html, tramp.html, url.html, vip.html)
      (viper.html, widget.html, wisent.html, woman.html, install-dvi)
      (install-html, install-pdf, install-ps, install-doc, uninstall-dvi)
      (uninstall-html, uninstall-ps, uninstall-pdf, uninstall-doc):
      New rules.
      (clean): Remove HTML_TARGETS and PS_TARGETS.
      8496d8d7
  3. 11 Aug, 2013 10 commits
    • Paul Eggert's avatar
      * decompress.c: Fix bugs with large buffers and weird inputs. · d0e615c3
      Paul Eggert authored
      Tune a bit.  Reindent as per usual Emacs style.
      (BUFFER_SIZE): Remove.
      (Fdecompress_gzipped_region): Do not mishandle input buffers with
      more than UINT_MAX bytes.  Decompress into the gap instead of into
      an auto buffer, as this should avoid copying.  Return nil if
      'inflate' returns Z_NEED_DICT, as we have no dictionary.  Do not
      set immediate_quit; we shouldn't trust zlib code that much.
      d0e615c3
    • Paul Eggert's avatar
      Add --with-zlib to 'configure'. · 8d28d0ac
      Paul Eggert authored
      * configure.ac: Add --with-zlib option to 'configure', so that Emacs
      can be built without zlib.  Don't assume that -lz is needed on
      non-PNG hosts.  Mention zlib configuration status in 'configure' output.
      8d28d0ac
    • Lars Magne Ingebrigtsen's avatar
      * net/eww.el (eww-display-html): Ignore coding system errors. · 3e41a054
      Lars Magne Ingebrigtsen authored
      One web site uses "utf-8lias" as the coding system.
      3e41a054
    • Lars Magne Ingebrigtsen's avatar
      Add Content-Transfer gzip support to url · 6edea0a5
      Lars Magne Ingebrigtsen authored
      * url-http.el (url-handle-content-transfer-encoding): Support
      decompressing gzipped content.
      
      * url-vars.el (url-mime-encoding-string): If we have built-in gzip
      support, say that we accept gzipped content.
      6edea0a5
    • Lars Magne Ingebrigtsen's avatar
      Fix decompress gap handling bug · 99a32242
      Lars Magne Ingebrigtsen authored
      * decompress.c (Fdecompress_gzipped_region): Respect all zlib
      errors, and really move the gap to where we want it.
      99a32242
    • Lars Magne Ingebrigtsen's avatar
      Add zlib support via the `decompress-gzipped-region' function · 313546eb
      Lars Magne Ingebrigtsen authored
      This adds a new file, src/decompress.c, as well as tests for the
      presence of -lz.
      313546eb
    • Jan Djärv's avatar
      Fix crash on OSX >= 10.7. · f90e3ebd
      Jan Djärv authored
      * nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:frame:
      (initWithTitle:): Initialize frame to 0.
      (fillWithWidgetValue:): Call fillWithWidgetValue:frame.
      (fillWithWidgetValue:frame:): Renamed from
      fillWithWidgetValue:setDelegate, call initWithTile:frame: if f.
      
      * nsterm.h (EmacsMenu): fillWithWidgetValue:setDelegate renamed to
      fillWithWidgetValue:frame:
      f90e3ebd
    • Jan Djärv's avatar
      Fix memory leak warning. · 423d3b3f
      Jan Djärv authored
      * nsfns.m (Fns_convert_utf8_nfd_to_nfc): Allocate and release pool to
      remove memory leak warnings.
      423d3b3f
    • Jan Djärv's avatar
      * nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate. · d2d699ac
      Jan Djärv authored
      (x_activate_menubar): Update the whole menu.
      (trackingNotification:): Call ns_check_menu_open if tracking ends.
      (menuWillOpen:): Increment trackingMenu.  For OSX <= 10.6, exit if
      current event is not NSSystemDefined.
      Call ns_check_menu_open only if trackingMenu is 2.
      (menuDidClose:): New method, decrease trackingMenu.
      (fillWithWidgetValue:setDelegate:): New method.
      (fillWithWidgetValue:): Call the above.
      
      * nsterm.h (EmacsMenu): Add fillWithWidgetValue:setDelegate:
      
      * nsterm.m (menu_pending_title, ns_get_pending_menu_title): Remove.
      (ns_check_menu_open): Handle menu == nil.  Remove assignment to
      menu_pending_title.
      
      Fixes: debbugs:15001
      d2d699ac
    • Juanma Barranquero's avatar