]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 years agomerge from trunk
Joakim Verona [Tue, 13 Aug 2013 02:30:54 +0000 (04:30 +0200)]
merge from trunk

11 years ago* doc/lispref/frames.texi (Display Feature Testing): Add an index.
Xue Fuqiao [Tue, 13 Aug 2013 02:15:57 +0000 (10:15 +0800)]
* doc/lispref/frames.texi (Display Feature Testing): Add an index.

11 years ago* process.c (deactivate_process): Reset fds to -1.
Paul Eggert [Mon, 12 Aug 2013 20:17:32 +0000 (13:17 -0700)]
* process.c (deactivate_process): Reset fds to -1.

This fixes a problem introduced by the Bug#15035 patch
when using GPG.  Reported by Herbert J. Skuhra.

11 years agomerge from trunk
Joakim Verona [Mon, 12 Aug 2013 20:14:05 +0000 (22:14 +0200)]
merge from trunk

11 years agoremove FRAME_PTR
root [Mon, 12 Aug 2013 20:12:40 +0000 (22:12 +0200)]
remove FRAME_PTR

11 years agoFix zlib support on MS-Windows.
Eli Zaretskii [Mon, 12 Aug 2013 19:48:04 +0000 (22:48 +0300)]
Fix zlib support on MS-Windows.

 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.

11 years agoAdd a test for decompressing gzipped data
Lars Magne Ingebrigtsen [Mon, 12 Aug 2013 18:36:05 +0000 (20:36 +0200)]
Add a test for decompressing gzipped data

11 years ago* mail/sendmail.el (sendmail-send-it): Don't kill the error buffer on error
Grégoire Jadi [Mon, 12 Aug 2013 17:25:22 +0000 (19:25 +0200)]
* mail/sendmail.el (sendmail-send-it): Don't kill the error buffer on error

This makes debugging easier.

11 years agoRename `zlib-decompress-gzipped-region' to `zlib-decompress-region'.
Lars Magne Ingebrigtsen [Mon, 12 Aug 2013 17:02:31 +0000 (19:02 +0200)]
Rename `zlib-decompress-gzipped-region' to `zlib-decompress-region'.

Also support zlib-format compression.

11 years agoMinor zlib configuration tweaks.
Paul Eggert [Mon, 12 Aug 2013 16:05:58 +0000 (09:05 -0700)]
Minor zlib configuration tweaks.

* 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.

11 years agolisp/xml.el (xml-parse-tag-1): Use looking-at.
Juanma Barranquero [Mon, 12 Aug 2013 15:11:35 +0000 (17:11 +0200)]
lisp/xml.el (xml-parse-tag-1): Use looking-at.
(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

11 years agoAdd the zlib prefix to `decompress-gzipped-region'
Lars Magne Ingebrigtsen [Mon, 12 Aug 2013 13:54:45 +0000 (15:54 +0200)]
Add the zlib prefix to `decompress-gzipped-region'

11 years agoFix build with zlib on MS-Windows.
Eli Zaretskii [Mon, 12 Aug 2013 13:15:01 +0000 (16:15 +0300)]
Fix build with zlib on MS-Windows.

 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.

11 years agomerge from trunk
Joakim Verona [Mon, 12 Aug 2013 10:29:06 +0000 (12:29 +0200)]
merge from trunk

11 years agomerge from trunk
root [Mon, 12 Aug 2013 10:27:22 +0000 (12:27 +0200)]
merge from trunk

Conflicts:
src/Makefile.in

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 12 Aug 2013 10:17:43 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoAvoid looping over all frame windows to freeze and unfreeze.
Dmitry Antipov [Mon, 12 Aug 2013 09:34:00 +0000 (13:34 +0400)]
Avoid looping over all frame windows to freeze and unfreeze.
* 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.

11 years agoFix some fd issues when running subprocesses.
Paul Eggert [Mon, 12 Aug 2013 07:12:07 +0000 (00:12 -0700)]
Fix some fd issues when running subprocesses.

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
11 years agolisp/gnus/ChangeLog: Fix typo
Katsumi Yamaoka [Mon, 12 Aug 2013 06:32:15 +0000 (06:32 +0000)]
lisp/gnus/ChangeLog: Fix typo

11 years agolisp/gnus/mm-decode.el (mm-display-external): Run a timer for the temp files deletion...
Katsumi Yamaoka [Mon, 12 Aug 2013 05:59:47 +0000 (05:59 +0000)]
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

11 years agodoc/misc/gnus.texi (Mail Source Specifiers): Fix description for pop3's :leave
Katsumi Yamaoka [Mon, 12 Aug 2013 01:48:11 +0000 (01:48 +0000)]
doc/misc/gnus.texi (Mail Source Specifiers): Fix description for pop3's :leave

11 years agolisp/gnus/mm-decode.el (mm-display-external): Try to delete temporary files by using...
Katsumi Yamaoka [Mon, 12 Aug 2013 01:03:33 +0000 (01:03 +0000)]
lisp/gnus/mm-decode.el (mm-display-external): Try to delete temporary files by using a 1-min. timer

11 years agoMerge from gnulib.
Paul Eggert [Mon, 12 Aug 2013 00:52:17 +0000 (17:52 -0700)]
Merge from gnulib.

This incorporates:
2013-08-11 fpending: port to recent Cygwin change to stdio_ext.h
2013-08-10 sys_time: port to OpenBSD

11 years agoReduce some duplication in doc/misc/Makefile.in
Glenn Morris [Mon, 12 Aug 2013 00:41:34 +0000 (17:41 -0700)]
Reduce some duplication in doc/misc/Makefile.in

* 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.

11 years agoMerge from emacs-24; up to 2013-01-02T10:15:31Z!michael.albinus@gmx.de
Glenn Morris [Mon, 12 Aug 2013 00:09:11 +0000 (17:09 -0700)]
Merge from emacs-24; up to 2013-01-02T10:15:31Z!michael.albinus@gmx.de

11 years agoAdd build, install, uninstall rules for all dvi, html, pdf, ps manuals
Glenn Morris [Mon, 12 Aug 2013 00:04:15 +0000 (17:04 -0700)]
Add build, install, uninstall rules for all dvi, html, pdf, ps manuals

* 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.

11 years ago* decompress.c: Fix bugs with large buffers and weird inputs.
Paul Eggert [Sun, 11 Aug 2013 23:09:26 +0000 (16:09 -0700)]
* decompress.c: Fix bugs with large buffers and weird inputs.

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.

11 years agoAdd --with-zlib to 'configure'.
Paul Eggert [Sun, 11 Aug 2013 22:58:47 +0000 (15:58 -0700)]
Add --with-zlib to 'configure'.

* 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.

11 years ago* net/eww.el (eww-display-html): Ignore coding system errors.
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 21:51:10 +0000 (23:51 +0200)]
* net/eww.el (eww-display-html): Ignore coding system errors.

One web site uses "utf-8lias" as the coding system.

11 years agoAdd Content-Transfer gzip support to url
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 20:52:50 +0000 (22:52 +0200)]
Add Content-Transfer gzip support to url

* 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.

11 years agoFix decompress gap handling bug
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 20:51:47 +0000 (22:51 +0200)]
Fix decompress gap handling bug

* decompress.c (Fdecompress_gzipped_region): Respect all zlib
errors, and really move the gap to where we want it.

11 years agoAdd zlib support via the `decompress-gzipped-region' function
Lars Magne Ingebrigtsen [Sun, 11 Aug 2013 19:43:36 +0000 (21:43 +0200)]
Add zlib support via the `decompress-gzipped-region' function

This adds a new file, src/decompress.c, as well as tests for the
presence of -lz.

11 years agoFix crash on OSX >= 10.7.
Jan Djärv [Sun, 11 Aug 2013 15:34:26 +0000 (17:34 +0200)]
Fix crash on OSX >= 10.7.

* 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:

11 years agoFix memory leak warning.
Jan Djärv [Sun, 11 Aug 2013 15:05:13 +0000 (17:05 +0200)]
Fix memory leak warning.

* nsfns.m (Fns_convert_utf8_nfd_to_nfc): Allocate and release pool to
remove memory leak warnings.

11 years ago* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
Jan Djärv [Sun, 11 Aug 2013 14:57:12 +0000 (16:57 +0200)]
* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
(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
11 years agolisp/frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.
Juanma Barranquero [Sun, 11 Aug 2013 03:09:21 +0000 (05:09 +0200)]
lisp/frameset.el (frameset-valid-p): Fix check; STATES can indeed be nil.

11 years agoOmit some unnecessary casts.
Paul Eggert [Sun, 11 Aug 2013 01:30:20 +0000 (18:30 -0700)]
Omit some unnecessary casts.

Many of these go back to the old pre-C89 days, when they may have
been needed, but we've been assuming C89 or later for a while now.
* alloc.c (live_string_p, live_cons_p, live_symbol_p)
(live_float_p, live_misc_p, live_vector_p):
* buffer.c (compare_overlays, cmp_for_strings, mmap_find)
(mmap_alloc, alloc_buffer_text, enlarge_buffer_text)
(defvar_per_buffer):
* callint.c (Fcall_interactively):
* doc.c (Fsubstitute_command_keys):
* filelock.c (get_boot_time):
* frame.c (xrdb_get_resource):
* gtkutil.c (hierarchy_ch_cb, qttip_cb, style_changed_cb)
(delete_cb, xg_dialog_response_cb, xg_maybe_add_timer)
(xg_get_file_name_from_selector, menuitem_destroy_callback)
(menuitem_highlight_callback, menu_destroy_callback)
(xg_update_menu_item, xg_modify_menubar_widgets, menubar_map_cb)
(xg_tool_bar_callback, xg_get_tool_bar_widgets)
(xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(xg_tool_bar_help_callback, tb_size_cb):
* image.c (xpm_alloc_color, png_read_from_memory)
(png_read_from_file, png_load_body, our_memory_skip_input_data)
(jpeg_memory_src, jpeg_file_src, imagemagick_load_image)
(syms_of_image):
* keymap.c (describe_map):
* nsfns.m (Fns_display_monitor_attributes_list):
* nsmenu.m (process_dialog:):
* nsterm.m (hold_event):
* process.c (wait_reading_process_output):
* regex.c (REGEX_REALLOCATE, re_set_registers, re_exec, regexec):
* scroll.c (do_direct_scrolling, scrolling_1):
* termcap.c (tgetent):
* window.c (check_window_containing, add_window_to_list)
(freeze_window_starts):
* xdisp.c (compare_overlay_entries, vmessage):
* xfns.c (x_window, x_get_monitor_attributes_xinerama)
(x_get_monitor_attributes_xrandr)
(Fx_display_monitor_attributes_list, x_display_info_for_name)
(Fx_open_connection, file_dialog_cb, file_dialog_unmap_cb):
* xfont.c (xfont_match, xfont_open):
* xmenu.c (x_menu_wait_for_event, menu_highlight_callback)
(menubar_selection_callback, menu_position_func)
(popup_selection_callback, create_and_show_popup_menu)
(dialog_selection_callback, create_and_show_dialog):
* xrdb.c (x_get_string_resource):
(main) [TESTRM]:
* xsmfns.c (x_session_check_input):
* xterm.c (x_draw_glyphless_glyph_string_foreground)
(xm_scroll_callback, xg_scroll_callback, xg_end_scroll_callback)
(xaw_jump_callback, xaw_scroll_callback):
Omit unnecessary casts.

11 years agolisp/*.el: More lexical-binding warnings' cleanups.
Juanma Barranquero [Sun, 11 Aug 2013 00:07:48 +0000 (02:07 +0200)]
lisp/*.el: More lexical-binding warnings' cleanups.

* tutorial.el (tutorial--describe-nonstandard-key): Use string-match-p.
  (tutorial--detailed-help): Remove unused local variables.
  (tutorial--save-tutorial-to): Use ignore-errors.
  (help-with-tutorial): Use looking-at-p.

* view.el (view-buffer-other-window, view-buffer-other-frame):
  Mark unused arguments.

* woman.el (woman-parse-colon-path, woman-parse-colon-path)
  (woman-select-symbol-fonts, woman, woman-find-file)
  (woman-insert-file-contents, woman-non-underline-faces):
  Use string-match-p.
  (woman1-unquote): Move declaration.

* xml.el (xml-parse-tag-1, xml-parse-string): Use looking-at-p.
  (xml-parse-dtd): Use looking-at-p, string-match-p.  Mark unused
  argument.  Remove unused local variable.
  (xml-parse-elem-type): Use string-match-p.
  (xml-substitute-numeric-entities): Use ignore-errors.

11 years agoAdd some notes related to continuous build on Hydra
Xue Fuqiao [Sat, 10 Aug 2013 22:54:32 +0000 (06:54 +0800)]
Add some notes related to continuous build on Hydra

11 years agoMinor string-length refactoring.
Paul Eggert [Sat, 10 Aug 2013 15:42:08 +0000 (08:42 -0700)]
Minor string-length refactoring.

* alloc.c (xstrdup): Use memcpy, not strcpy, since the length's known.
* frame.c (make_monitor_attribute_list):
Prefer build_string to strlen + make_string.

11 years agolisp/*.el: Remove lexical-binding warnings; additional small cleanups.
Juanma Barranquero [Sat, 10 Aug 2013 15:17:29 +0000 (17:17 +0200)]
lisp/*.el: Remove lexical-binding warnings; additional small cleanups.

* calculator.el (calculator): Mark unused argument.
  (calculator-paste, calculator-quit, calculator-integer-p):
  Use ignore-errors.
  (calculator-string-to-number, calculator-decimal, calculator-exp)
  (calculator-op-or-exp): Use string-match-p.

* dired-aux.el (dired-compress): Use ignore-errors.
  (dired-do-chxxx, dired-do-chmod, dired-trample-file-versions)
  (dired-do-async-shell-command, dired-do-shell-command)
  (dired-shell-stuff-it, dired-compress-file, dired-insert-subdir)
  (dired-insert-subdir-validate): Use string-match-p.
  (dired-map-dired-file-lines, dired-subdir-hidden-p): Use looking-at-p.
  (dired-add-entry): Use string-match-p, looking-at-p.
  (dired-insert-subdir-newpos): Remove unused local variable.

* dired.el (dired-buffer-more-recently-used-p): Declare.
  (dired-insert-set-properties, dired-insert-old-subdirs):
  Use ignore-errors.

* filenotify.el (file-notify-callback): Remove unused local variable.

* filesets.el (filesets-error): Mark unused argument.
  (filesets-which-command-p, filesets-filter-dir-names)
  (filesets-directory-files, filesets-get-external-viewer)
  (filesets-ingroup-get-data): Use string-match-p.

* find-file.el (ff-other-file-name, ff-other-file-name)
  (ff-find-the-other-file, ff-cc-hh-converter):
  Remove unused local variables.
  (ff-get-file-name): Use string-match-p.
  (ff-all-dirs-under): Use ignore-errors.

* follow.el (follow-comint-scroll-to-bottom): Mark unused argument.
  (follow-select-if-visible): Remove unused local variable.

* forms.el (read-file-filter): Move declaration.
  (forms--make-format, forms--make-parser, forms-insert-record):
  Quote function with #'.
  (forms--update): Use string-match-p.  Quote function with #'.

* help-mode.el (help-dir-local-var-def): Mark unused argument.
  (help-make-xrefs): Use looking-at-p.
  (help-xref-on-pp): Use looking-at-p, ignore-errors.

* ibuffer.el (ibuffer-ext-visible-p): Declare.
  (ibuffer-confirm-operation-on): Use string-match-p.

* msb.el (msb-item-handler, msb-dired-item-handler):
  Mark unused arguments.

* ses.el (ses-decode-cell-symbol)
  (ses-kill-override): Remove unused local variable.
  (ses-create-cell-variable, ses-relocate-formula): Use string-match-p.
  (ses-load): Use ignore-errors, looking-at-p.
  (ses-jump-safe): Use ignore-errors.
  (ses-export-tsv, ses-export-tsf, ses-unsafe): Mark unused arguments.

* tabify.el (untabify, tabify): Mark unused arguments.

  * thingatpt.el (thing-at-point--bounds-of-well-formed-url):
  Mark unused argument.
  (bounds-of-thing-at-point, thing-at-point-bounds-of-list-at-point)
  (thing-at-point-newsgroup-p, form-at-point): Use ignore-errors.

11 years agolisp/emacs-lisp/timer.el (timer--time): Define setter with gv-define-setter.
Juanma Barranquero [Sat, 10 Aug 2013 12:30:38 +0000 (14:30 +0200)]
lisp/emacs-lisp/timer.el (timer--time): Define setter with gv-define-setter.

11 years agolisp/completion.el: Remove stuff unused since 2013-03-15T16:06:12Z!handa@gnu.org.
Juanma Barranquero [Sat, 10 Aug 2013 12:00:19 +0000 (14:00 +0200)]
lisp/completion.el: Remove stuff unused since 2013-03-15T16:06:12Z!handa@gnu.org.
(*record-cmpl-statistics-p*): Remove (was commented out ).
(cmpl-statistics-block): Remove (body was commented out).
All callers changed.
(add-completions-from-buffer, load-completions-from-file):
Remove unused variables.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 10 Aug 2013 10:18:08 +0000 (06:18 -0400)]
Auto-commit of generated files.

11 years ago* xterm.c (x_error_handler): Also ignore BadWindow for X_SetInputFocus,
Jan Djärv [Sat, 10 Aug 2013 09:16:37 +0000 (11:16 +0200)]
* xterm.c (x_error_handler): Also ignore BadWindow for X_SetInputFocus,
don't check minor_code.

Fixes: debbugs:14417
11 years agoProvide a Windows manifest for update-game-score.exe.
Eli Zaretskii [Sat, 10 Aug 2013 07:43:41 +0000 (10:43 +0300)]
Provide a Windows manifest for update-game-score.exe.

 lib-src/update-game-score.exe.manifest: New file.
 lib-src/Makefile.in (UPDATE_MANIFEST): New variable.
 (SCRIPTS): Add $(UPDATE_MANIFEST).

 configure.ac: Define and substitute UPDATE_MANIFEST.

11 years ago* doc/lispref/edebug.texi (Instrumenting Macro Calls): Use @defmac for macros.
Xue Fuqiao [Sat, 10 Aug 2013 05:03:11 +0000 (13:03 +0800)]
* doc/lispref/edebug.texi (Instrumenting Macro Calls): Use @defmac for macros.

11 years ago* doc/misc/ido.texi (Working Directories):
Xue Fuqiao [Sat, 10 Aug 2013 04:58:31 +0000 (12:58 +0800)]
* doc/misc/ido.texi (Working Directories):
(Flexible Matching, Regexp Matching, Find File At Point)
(Ignoring, Misc Customization): Use @defopt for user options.

11 years agolisp/filecache.el (file-cache-delete-file-list): Print message only when told so.
Juanma Barranquero [Fri, 9 Aug 2013 23:15:39 +0000 (01:15 +0200)]
lisp/filecache.el (file-cache-delete-file-list): Print message only when told so.
(file-cache-files-matching): Use #' in mapconcat argument.

11 years agolisp/ffap.el: Fix reference to variable thing-at-point-default-mail-uri-scheme.
Juanma Barranquero [Fri, 9 Aug 2013 23:08:46 +0000 (01:08 +0200)]
lisp/ffap.el: Fix reference to variable thing-at-point-default-mail-uri-scheme.

11 years ago* doc/lispref/control.texi (Error Symbols): Minor fix for previous change.
Xue Fuqiao [Fri, 9 Aug 2013 22:34:05 +0000 (06:34 +0800)]
* doc/lispref/control.texi (Error Symbols): Minor fix for previous change.

11 years ago* lisp/subr.el (define-error): New function.
Stefan Monnier [Fri, 9 Aug 2013 21:22:44 +0000 (17:22 -0400)]
* lisp/subr.el (define-error): New function.
* doc/lispref/control.texi (Signaling Errors): Refer to define-error.
(Error Symbols): Add `define-error'.
* doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
* lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
error-file-not-found and define with define-error.
* lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
and define with define-error.
* lisp/userlock.el (file-locked, file-supersession):
* lisp/simple.el (mark-inactive):
* lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
* lisp/progmodes/ada-mode.el (ada-mode-errors):
* lisp/play/life.el (life-extinct):
* lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
* lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
* lisp/nxml/rng-util.el (rng-error):
* lisp/nxml/rng-uri.el (rng-uri-error):
* lisp/nxml/rng-match.el (rng-compile-error):
* lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
* lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
* lisp/nxml/nxml-rap.el (nxml-scan-error):
* lisp/nxml/nxml-outln.el (nxml-outline-error):
* lisp/net/soap-client.el (soap-error):
* lisp/net/gnutls.el (gnutls-error):
* lisp/net/ange-ftp.el (ftp-error):
* lisp/mpc.el (mpc-proc-error):
* lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
(json-number-format, json-string-escape, json-string-format)
(json-key-format, json-object-format):
* lisp/jka-compr.el (compression-error):
* lisp/international/quail.el (quail-error):
* lisp/international/kkc.el (kkc-error):
* lisp/emacs-lisp/ert.el (ert-test-failed):
* lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
(math-underflow):
* lisp/bookmark.el (bookmark-error-no-filename):
* lisp/epg.el (epg-error): Define with define-error.

11 years agoFix bug #15064 with assertion violation due to mouse face.
Eli Zaretskii [Fri, 9 Aug 2013 21:19:42 +0000 (00:19 +0300)]
Fix bug #15064 with assertion violation due to mouse face.

 src/xdisp.c (draw_glyphs): Don't compare row pointers, compare row
 vertical positions instead.  This avoids calling MATRIX_ROW with
 row numbers that are possibly beyond valid limits.

11 years ago* lisp/time.el (display-time-event-handler)
Stefan Monnier [Fri, 9 Aug 2013 18:49:36 +0000 (14:49 -0400)]
* lisp/time.el (display-time-event-handler)
(display-time-next-load-average): Don't call sit-for since it seems
unnecessary.

Fixes: debbugs:15045
11 years agoUse xstrdup and build_unibyte_string where applicable.
Dmitry Antipov [Fri, 9 Aug 2013 12:25:34 +0000 (16:25 +0400)]
Use xstrdup and build_unibyte_string where applicable.
* alloc.c (xstrdup): Tiny cleanup.  Add eassert.
* xfns.c (x_window):
* xrdb.c (x_get_customization_string):
* xterm.c (xim_initialize):
* w32fns.c (w32_window): Use xstrdup.
(w32_display_monitor_attributes_list):
* emacs.c (init_cmdargs):
* keyboard.c (PUSH_C_STR):
* nsfont.m (nsfont_open):
* sysdep.c (system_process_attributes):
* w32.c (system_process_attributes):
* xdisp.c (message1, message1_nolog): Use build_unibyte_string.

11 years agoDefine a few variables of obscure types to aid debugging exceptions on Windows.
Eli Zaretskii [Fri, 9 Aug 2013 10:18:48 +0000 (13:18 +0300)]
Define a few variables of obscure types to aid debugging exceptions on Windows.

 src/w32.c (PEXCEPTION_POINTERS, PEXCEPTION_RECORD, PCONTEXT): Define
 variables of these types so that GDB would know about them, as aid
 for debugging fatal exceptions.  (Bug#15024)  See also
 http://sourceware.org/ml/gdb/2013-08/msg00010.html for related
 discussions.

11 years agolisp/gnus/mm-decode.el (mm-temp-files-delete): Fix last commit
Katsumi Yamaoka [Fri, 9 Aug 2013 09:17:25 +0000 (09:17 +0000)]
lisp/gnus/mm-decode.el (mm-temp-files-delete): Fix last commit

11 years agoGnus: delete temporary files when Gnus exits instead of using timers
Katsumi Yamaoka [Fri, 9 Aug 2013 08:05:56 +0000 (08:05 +0000)]
Gnus: delete temporary files when Gnus exits instead of using timers

lisp/gnus/mm-decode.el (mm-temp-files-to-be-deleted,
  mm-temp-files-cache-file): New internal variables.
(mm-temp-files-delete): New function; add it to gnus-exit-gnus-hook.
(mm-display-external): Use it to delete temporary files instead of
  using timers.

11 years ago* lisp/emacs-lisp/checkdoc.el: Remove redundant :group keywords.
Stefan Monnier [Fri, 9 Aug 2013 01:19:42 +0000 (21:19 -0400)]
* lisp/emacs-lisp/checkdoc.el: Remove redundant :group keywords.
Use #' instead of ' to quote functions.
(checkdoc-output-mode): Use setq-local.
(checkdoc-spellcheck-documentation-flag, checkdoc-ispell-lisp-words)
(checkdoc-verb-check-experimental-flag, checkdoc-proper-noun-regexp)
(checkdoc-common-verbs-regexp): Mark safe-local-variable.
(checkdoc-ispell, checkdoc-ispell-current-buffer)
(checkdoc-ispell-interactive, checkdoc-ispell-message-interactive)
(checkdoc-ispell-message-text, checkdoc-ispell-start)
(checkdoc-ispell-continue, checkdoc-ispell-comments)
(checkdoc-ispell-defun): Remove unused arg `take-notes'.

Fixes: debbugs:15010
11 years ago* lisp/ido.el (ido-completion-help): Fix up compiler warning.
Stefan Monnier [Fri, 9 Aug 2013 00:54:22 +0000 (20:54 -0400)]
* lisp/ido.el (ido-completion-help): Fix up compiler warning.

11 years ago* doc/misc/htmlfontify.texi (Customization): Minor fixes.
Xue Fuqiao [Fri, 9 Aug 2013 00:51:03 +0000 (08:51 +0800)]
* doc/misc/htmlfontify.texi (Customization): Minor fixes.

11 years ago* doc/misc/htmlfontify.texi (Customization): Remove documentation of `hfy-fast-lock...
Xue Fuqiao [Fri, 9 Aug 2013 00:46:25 +0000 (08:46 +0800)]
* doc/misc/htmlfontify.texi (Customization): Remove documentation of `hfy-fast-lock-save'.

11 years agoMove frameset-to-register stuff from register.el to frameset.el.
Juanma Barranquero [Fri, 9 Aug 2013 00:30:24 +0000 (02:30 +0200)]
Move frameset-to-register stuff from register.el to frameset.el.

lisp/register.el (frameset-frame-id, frameset-frame-with-id, frameset-p)
(frameset-restore, frameset-save, frameset-session-filter-alist):
Remove declarations.
(register-alist): Doc fix.
(frameset-to-register): Move to frameset.el.
(jump-to-register, describe-register-1): Remove frameset-specific code.

lisp/frameset.el (frameset-p): Add autoload cookie.
(frameset--jump-to-register): New function, based on code moved from
register.el.
(frameset-to-register): Move from register.el.  Adapt to `registerv'.

11 years agolisp/*.el: Silence lexical-binding warnings.
Juanma Barranquero [Thu, 8 Aug 2013 23:59:14 +0000 (01:59 +0200)]
lisp/*.el: Silence lexical-binding warnings.

11 years agodoc/misc/ido.texi: Document some user options.
Xue Fuqiao [Thu, 8 Aug 2013 23:56:25 +0000 (07:56 +0800)]
doc/misc/ido.texi: Document some user options.

11 years ago* lisp/emacs-lisp/edebug.el (edebug-debugger): Use edebug-eval to run the
Stefan Monnier [Thu, 8 Aug 2013 23:14:20 +0000 (19:14 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-debugger): Use edebug-eval to run the
break-condition in the context of the debugged code.

Fixes: debbugs:12685
11 years ago* lisp/comint.el:
Christopher Schmidt [Thu, 8 Aug 2013 19:22:58 +0000 (21:22 +0200)]
* lisp/comint.el:
Do not use an overlay to highlight the last prompt.  (Bug#14744)
(comint-mode): Make comint-last-prompt buffer local.
(comint-last-prompt): New variable.
(comint-last-prompt-overlay): Remove.  Superseded by
comint-last-prompt.
(comint-snapshot-last-prompt, comint-output-filter): Use
comint-last-prompt.

11 years ago* nsterm.m (ns_update_begin): Don't change clip path if it would be
Jan Djärv [Thu, 8 Aug 2013 17:52:00 +0000 (19:52 +0200)]
* nsterm.m (ns_update_begin): Don't change clip path if it would be
larger than the NSWindow.

Fixes: debbugs:14934
11 years agolisp/ChangeLog: Fix typo in previous change.
Juanma Barranquero [Thu, 8 Aug 2013 16:13:32 +0000 (18:13 +0200)]
lisp/ChangeLog: Fix typo in previous change.

11 years agolisp/frameset.el (frameset-save): Check validity of the resulting frameset.
Juanma Barranquero [Thu, 8 Aug 2013 15:59:14 +0000 (17:59 +0200)]
lisp/frameset.el (frameset-save): Check validity of the resulting frameset.
(frameset-valid-p): Doc fix.

11 years agoRedesign redisplay interface to drop global variable updated_window.
Dmitry Antipov [Thu, 8 Aug 2013 14:51:07 +0000 (18:51 +0400)]
Redesign redisplay interface to drop global variable updated_window.
Always pass currently updated window as a parameter to update routines.
* dispextern.h (updated_window): Remove declaration.
(struct redisplay_interface): Pass window parameter to
write_glyphs, insert_glyphs, clear_end_of_line, cursor_to
and after_update_window_hook.
(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line, x_cursor_to):
Adjust prototypes.
* dispnew.c (updated_window): Remove.
(redraw_overlapped_rows, update_marginal_area, update_text_area)
(update_window_line): Adjust to match redisplay interface changes.
* nsterm.m (ns_update_window_begin, ns_update_window_end)
(ns_scroll_run, ns_after_update_window_line):
* w32term.c (x_update_window_begin, x_update_window_end)
(x_after_update_window_line, x_scroll_run):
* xterm.c (x_update_window_begin, x_update_window_end)
(x_after_update_window_line, x_scroll_run):
* xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
Likewise.  Adjust comments where appropriate.
(x_cursor_to): Simplify because this is always called during window
update (but install debugging check anyway).
(expose_window): Check must_be_updated_p flag to see whether this
function is called during window update.

11 years agodoc/lispref/buffers.texi: Add documentation for ido-record-command(s).
Xue Fuqiao [Thu, 8 Aug 2013 14:03:56 +0000 (22:03 +0800)]
doc/lispref/buffers.texi: Add documentation for ido-record-command(s).

* lisp/ido.el (ido-record-command): Add doc string.

11 years agodoc/lispref/buffers.texi: Add documentation of some user options for Ido.
Xue Fuqiao [Thu, 8 Aug 2013 13:53:30 +0000 (21:53 +0800)]
doc/lispref/buffers.texi: Add documentation of some user options for Ido.

11 years agoAdd documentation of `ido-confirm-unique-completion'.
Xue Fuqiao [Thu, 8 Aug 2013 12:52:25 +0000 (20:52 +0800)]
Add documentation of `ido-confirm-unique-completion'.

doc/misc/ido.texi: (Misc Customization): Add documentation of `ido-confirm-unique-completion'.

11 years agoAdd documentation for working directory in Ido.
Xue Fuqiao [Thu, 8 Aug 2013 12:31:38 +0000 (20:31 +0800)]
Add documentation for working directory in Ido.

* doc/misc/ido.texi (Top): Insert node "Working Directories" in menu.
(Working Directories): New node.

doc/misc/sc.texi: (What Supercite Does): Typo fix.

11 years agolisp/frameset.el: Doc fixes.
Juanma Barranquero [Thu, 8 Aug 2013 10:44:07 +0000 (12:44 +0200)]
lisp/frameset.el: Doc fixes.

11 years agolisp/frameset.el: Revert to built-in frameset-p; document slot accessors.
Juanma Barranquero [Thu, 8 Aug 2013 09:54:29 +0000 (11:54 +0200)]
lisp/frameset.el: Revert to built-in frameset-p; document slot accessors.
(frameset): Do not disable creation of the default frameset-p predicate.
Doc fix.
(frameset-valid-p): New function, copied from the old predicate-p.
Add additional checks.
(frameset-restore): Check with frameset-valid-p.
(frameset-p, frameset-version, frameset-timestamp, frameset-app)
(frameset-name, frameset-description, frameset-properties)
(frameset-states): Add docstring.

11 years agoDo not reset window modification event counters excessively.
Dmitry Antipov [Thu, 8 Aug 2013 04:42:40 +0000 (08:42 +0400)]
Do not reset window modification event counters excessively.
These leftovers and poor man's tricky methods to catch extra
redisplay's attention are no longer needed.
* frame.c (set_menu_bar_lines_1):
* minibuf.c (read_minibuf_unwind):
* window.c (Fset_window_start, set_window_buffer, window_resize_apply)
(grow_mini_window, shrink_mini_window, window_scroll_pixel_based)
(window_scroll_line_based, Fset_window_configuration):
* xdisp.c (redisplay_window): Do not reset last_modified and
last_overlay_modified counters.

11 years agolisp/frameset.el (frameset-p, frameset-prop): Doc fixes.
Juanma Barranquero [Thu, 8 Aug 2013 03:54:41 +0000 (05:54 +0200)]
lisp/frameset.el (frameset-p, frameset-prop): Doc fixes.

11 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): New function,
Stefan Monnier [Thu, 8 Aug 2013 01:37:47 +0000 (21:37 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-function-warn): New function,
extracted from byte-compile-callargs-warn and byte-compile-normal-call.
(byte-compile-callargs-warn, byte-compile-function-form): Use it.
(byte-compile-normal-call): Remove obsolescence check.

11 years agolisp/frameset.el (frameset-restore): Doc fix.
Juanma Barranquero [Thu, 8 Aug 2013 01:19:11 +0000 (03:19 +0200)]
lisp/frameset.el (frameset-restore): Doc fix.

11 years agoetc/NEWS: Document new keybinding of `C-x r f' to frameset-to-register.
Juanma Barranquero [Thu, 8 Aug 2013 00:46:48 +0000 (02:46 +0200)]
etc/NEWS: Document new keybinding of `C-x r f' to frameset-to-register.

11 years ago* lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register.
Juanma Barranquero [Thu, 8 Aug 2013 00:44:22 +0000 (02:44 +0200)]
* lisp/bindings.el (ctl-x-r-map): Bind ?f to frameset-to-register.

* lisp/register.el: Add support for framesets.
  (frameset-frame-id, frameset-frame-with-id)
  (frameset-p, frameset-restore, frameset-save): Declare.
  (register-alist): Document framesets.
  (frameset-session-filter-alist): Declare.
  (frameset-to-register): New function.
  (jump-to-register): Implement jumping to framesets.  Doc fix.
  (describe-register-1): Describe framesets.

11 years agolisp/frameset.el: Convert `frameset' to vector and add new slots.
Juanma Barranquero [Wed, 7 Aug 2013 22:54:08 +0000 (00:54 +0200)]
lisp/frameset.el: Convert `frameset' to vector and add new slots.
(frameset): Use type vector, not list (incompatible change).
Do not declare a new constructor, use the default one.
Upgrade suggested properties `app', `name' and `desc' to slots `app',
`name' and `description', respectively, and add read-only slot `timestamp'.
Doc fixes.
(frameset-copy, frameset-persistent-filter-alist)
(frameset-filter-alist, frameset-switch-to-gui-p)
(frameset-switch-to-tty-p, frameset-filter-tty-to-GUI)
(frameset-filter-sanitize-color, frameset-filter-minibuffer)
(frameset-filter-iconified, frameset-keep-original-display-p):
Doc fixes.
(frameset-filter-shelve-param, frameset-filter-unshelve-param):
Rename from frameset-filter-(save|restore)-param.  All callers changed.
Doc fix.
(frameset-p): Adapt to change to vector and be more thorough.
Change arg name to OBJECT.  Doc fix.
(frameset-prop): Rename arg PROP to PROPERTY.  Doc fix.
(frameset-session-filter-alist): Rename from frameset-live-filter-alist.
All callers changed.
(frameset-frame-with-id): Rename from frameset-locate-frame-id.
All callers changed.
(frameset--record-minibuffer-relationships): Rename from
frameset--process-minibuffer-frames.  All callers changed.
(frameset-save): Add new keyword arguments APP, NAME and DESCRIPTION.
Use new default constructor (again).  Doc fix.
(frameset--find-frame-if): Rename from `frameset--find-frame.
All callers changed.
(frameset--reuse-frame): Rename arg FRAME-CFG to PARAMETERS.
(frameset--initial-params): Rename arg FRAME-CFG to PARAMETERS.
Doc fix.
(frameset--restore-frame): Rename args FRAME-CFG and WINDOW-CFG to
PARAMETERS and WINDOW-STATE, respectively.
(frameset-restore): Add new keyword argument PREDICATE.
Reset frameset--target-display to nil.  Doc fix.

lisp/desktop.el (desktop-save-frameset): Use new frameset-save args.
Use lexical-binding.

11 years ago* lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var.
Stefan Monnier [Wed, 7 Aug 2013 22:53:18 +0000 (18:53 -0400)]
* lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var.
(bat-mode): Use it.
(bat-mode-syntax-table): Mark \n as end-of-comment.
(bat-font-lock-keywords): Remove comment rule.

11 years ago* lisp/progmodes/bat-mode.el: Rename from dos.el. Use "bat-" prefix.
Stefan Monnier [Wed, 7 Aug 2013 22:42:44 +0000 (18:42 -0400)]
* lisp/progmodes/bat-mode.el: Rename from dos.el.  Use "bat-" prefix.
(dos-mode-help): Remove.  Use describe-mode (C-h m) instead.

11 years ago* lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f.
Stefan Monnier [Wed, 7 Aug 2013 17:33:30 +0000 (13:33 -0400)]
* lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f.
(byte-compile-callargs-warn): Use `push'.
(byte-compile-arglist-warn): Ignore higher-order "calls".
(byte-compile-file-form-autoload): Use `pcase'.
(byte-compile-function-form): If quoting a symbol, check that it exists.

11 years agoFix typo in ChangeLog entry.
Dmitry Antipov [Wed, 7 Aug 2013 17:03:46 +0000 (21:03 +0400)]
Fix typo in ChangeLog entry.

11 years ago* xselect.c (x_send_client_event): Set send_event and serial, memset
Jan Djärv [Wed, 7 Aug 2013 16:59:23 +0000 (18:59 +0200)]
* xselect.c (x_send_client_event): Set send_event and serial, memset
data.l as it might be bigger than data.b.   Use 24 bit mask to
XSendEvent.

Fixes: debbugs:15034
11 years agoMinor fixes in lisp/progmodes/dos.el.
Eli Zaretskii [Wed, 7 Aug 2013 16:37:04 +0000 (19:37 +0300)]
Minor fixes in lisp/progmodes/dos.el.

 lisp/progmodes/dos.el (dos-font-lock-keywords): Rename LINUX to UNIX
 and add a few popular commands found in batch files.
 (dos, dos-label-face, dos-cmd-help, dos-run, dos-run-args)
 (dos-mode): Doc fixes.

11 years ago* lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode.
Stefan Monnier [Wed, 7 Aug 2013 15:50:16 +0000 (11:50 -0400)]
* lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode.
(dos-mode): Use setq-local.  Add space after "rem".
(dos-mode-syntax-table): Don't use "w" for symbol chars.
(dos-font-lock-keywords): Try to adjust font-lock rules accordingly.

11 years ago* lisp/progmodes/dos.el: New file.
Arni Magnusson [Wed, 7 Aug 2013 15:43:57 +0000 (11:43 -0400)]
* lisp/progmodes/dos.el: New file.
* lisp/generic-x.el (bat-generic-mode): Redefine as an obsolete alias to
dos-mode.

11 years agoxdisp.c: Fix a typo in a comment for the last commit.
Eli Zaretskii [Wed, 7 Aug 2013 15:14:23 +0000 (18:14 +0300)]
xdisp.c: Fix a typo in a comment for the last commit.

11 years agoMinor fixes in the ToDo Mode manual.
Eli Zaretskii [Wed, 7 Aug 2013 14:15:23 +0000 (17:15 +0300)]
Minor fixes in the ToDo Mode manual.

 doc/misc/todo-mode.texi: Update @dircategory.
 (Overview, Todo Items as Diary Entries, Todo Mode Entry Points)
 (File Editing, Marked Items, Item Prefix): Fix usage of @xref and
 @ref.

11 years agoFix bug #15038 with incorrect Texinfo in Emacs Lisp Intro manual.
Eli Zaretskii [Wed, 7 Aug 2013 13:58:41 +0000 (16:58 +0300)]
Fix bug #15038 with incorrect Texinfo in Emacs Lisp Intro manual.

 doc/lispintro/emacs-lisp-intro.texi (Beginning init File): Rename from
 "Beginning a .emacs File", since a node name cannot include a
 period.
 (Top, Emacs Initialization, Change a defun): All references
 changed.

11 years agoFix bug #14616 with unnecessary redrawing of TTY frames.
Eli Zaretskii [Wed, 7 Aug 2013 13:49:47 +0000 (16:49 +0300)]
Fix bug #14616 with unnecessary redrawing of TTY frames.

 src/xdisp.c (prepare_menu_bars): Don't call x_consider_frame_title
 for TTY frames that are not the top frame on their console.

11 years agoIn w32fullscreen_hook really maximize frame when asked for (Bug#14841).
Martin Rudalics [Wed, 7 Aug 2013 13:34:17 +0000 (15:34 +0200)]
In w32fullscreen_hook really maximize frame when asked for (Bug#14841).

* w32term.c (w32fullscreen_hook): Really maximize frame when
asked for (Bug#14841).

11 years agoPrefer selected_window to Fselected_window, likewise for frames.
Dmitry Antipov [Wed, 7 Aug 2013 13:21:59 +0000 (17:21 +0400)]
Prefer selected_window to Fselected_window, likewise for frames.
* buffer.c (Fbuffer_swap_text):
* data.c (Fvariable_binding_locus):
* window.c (run_window_configuration_change_hook): Adjust users.
* w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
Use decode_live_frame.

11 years agoIndex and whitespace fixes for doc/misc/sc.texi.
Xue Fuqiao [Wed, 7 Aug 2013 13:19:48 +0000 (21:19 +0800)]
Index and whitespace fixes for doc/misc/sc.texi.

* sc.texi (Introduction): Fix indexes.
(Usage Overview):
(Citations, Citation Elements, Recognizing Citations)
(Information Keys and the Info Alist, Reference Headers)
(The Built-in Header Rewrite Functions)
(Electric References, Reply Buffer Initialization)
(Filling Cited Text, Selecting an Attribution)
(Attribution Preferences)
(Anonymous Attributions, Author Names)
(Using Regi, Post-yank Formatting Commands)
(Citing Commands, Insertion Commands)
(Mail Field Commands)
(Hints to MUA Authors, Thanks and History): Change from one space
between sentences to two.

11 years ago* doc/misc/newsticker.texi (Usage): Use @key for RET.
Xue Fuqiao [Wed, 7 Aug 2013 12:44:16 +0000 (20:44 +0800)]
* doc/misc/newsticker.texi (Usage): Use @key for RET.