bpt/emacs.git
10 years ago* configure.ac (--with-sound): Rename ossaudio to bsd-ossaudio,
Glenn Morris [Sat, 31 Aug 2013 20:00:22 +0000 (13:00 -0700)]
* configure.ac (--with-sound): Rename ossaudio to bsd-ossaudio,
and voxware to oss.

10 years ago* configure.ac: Allow for --with-sound=voxware that will enable
Ulrich Müller [Sat, 31 Aug 2013 19:54:17 +0000 (12:54 -0700)]
* configure.ac: Allow for --with-sound=voxware that will enable
sound but otherwise disable ALSA.  This will use the OSS device,
typically /dev/dsp, for sound output.

Fixes: debbugs:15067

10 years ago* doc/emacs/xresources.texi (Motif Resources):
Ulrich Müller [Sat, 31 Aug 2013 19:49:52 +0000 (12:49 -0700)]
* doc/emacs/xresources.texi (Motif Resources):
Rename from LessTif Resources.  Update xrefs.

* doc/emacs/emacs.texi: Update menu.

* doc/man/emacs.1: Update manual links.

Fixes: debbugs:15145

10 years agoUpdate nt installation instructions to point to supported method
Glenn Morris [Sat, 31 Aug 2013 18:26:59 +0000 (11:26 -0700)]
Update nt installation instructions to point to supported method

* nt/INSTALL: Rename from INSTALL.MSYS.

* nt/INSTALL.OLD: Rename from INSTALL.

* nt/configure.bat: Update for INSTALL name changes.

* make-dist: Update for nt/INSTALL* changes.

10 years agoIn temp_output_buffer_show make sure window returned by display_buffer is live (Bug...
Martin Rudalics [Sat, 31 Aug 2013 09:22:53 +0000 (11:22 +0200)]
In temp_output_buffer_show make sure window returned by display_buffer is live (Bug#15213).

* window.c (temp_output_buffer_show): Make sure window returned
by display_buffer is live (Bug#15213).

10 years ago* bytecomp.el (byte-recompile-directory): Fix is-this-a-directory logic.
Glenn Morris [Fri, 30 Aug 2013 17:40:39 +0000 (13:40 -0400)]
* bytecomp.el (byte-recompile-directory): Fix is-this-a-directory logic.

Fixes: debbugs:15220

10 years agoMinor cleanup to avoid forward declarations.
Dmitry Antipov [Fri, 30 Aug 2013 12:17:44 +0000 (16:17 +0400)]
Minor cleanup to avoid forward declarations.
* coding.h (struct ccl_spec): Remove forward declaration.
* composite.h (toplevel): Include font.h.
(struct composition_it, struct face, struct font_metrics):
Remove forward declaration.
* dispextern.h (struct image, struct atimer): Likewise.
* emacsgtkfixed.h (struct frame): Likewise.
* emacsgtkfixed.c (toplevel): Reorder headers and drop stdio.h.
* font.h (struct font_driver, struct font, struct glyph_string)
(struct face): Remove forward declaration.
* fontset.h (struct face, struct font): Likewise.
* frame.h (toplevel): Style cleanup.
(enum output_method): Move to...
* termhooks.h (enum output_method): ...here.
(struct glyph, struct frame, struct ns_display_info)
(struct x_display_info, struct w32_display_info):
Remove forward declaration.
* xterm.h (toplevel): Include termhooks.h.
(struct font, struct window, struct glyph_matrix, struct frame)
(struct input_event, struct face, struct image): Remove forward
declaration.
* gtkutil.h (struct _widget_value): Likewise.
* keyboard.h (toplevel): Include termhooks.h.
(struct input_event): Remove forward declaration.

10 years ago* lisp/textmodes/css-mode.el: Use SMIE.
Stefan Monnier [Thu, 29 Aug 2013 21:00:18 +0000 (17:00 -0400)]
* lisp/textmodes/css-mode.el: Use SMIE.
(css-smie-grammar): New var.
(css-smie--forward-token, css-smie--backward-token)
(css-smie-rules): New functions.
(css-mode): Use them.
(css-navigation-syntax-table): Remove var.
(css-backward-sexp, css-forward-sexp, css-indent-calculate-virtual)
(css-indent-calculate, css-indent-line): Remove functions.

10 years agoMisc changes to reduce use of `(lambda...); and other cleanups.
Stefan Monnier [Thu, 29 Aug 2013 19:55:58 +0000 (15:55 -0400)]
Misc changes to reduce use of `(lambda...); and other cleanups.
* lisp/cus-edit.el: Use lexical-binding.
(customize-push-and-save, customize-apropos)
(custom-buffer-create-internal): Use closures.
* lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
* lisp/progmodes/ada-xref.el: Use setq.
* lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq.
* lisp/dframe.el: Use lexical-binding.
(dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
* lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly.
* lisp/descr-text.el: Use lexical-binding.
(describe-text-widget, describe-text-sexp, describe-property-list):
Use closures.
* lisp/comint.el (comint-history-isearch-push-state): Use a closure.
* lisp/calculator.el: Use lexical-binding.
(calculator-number-to-string): Make it work with lexical-binding.
(calculator-funcall): Same and use cl-letf.

10 years ago* admin/notes/elpa: Update to the new Git setup.
Stefan Monnier [Thu, 29 Aug 2013 19:20:42 +0000 (15:20 -0400)]
* admin/notes/elpa: Update to the new Git setup.

10 years ago* lisp/emacs-lisp/lisp.el (lisp--company-doc-buffer)
Stefan Monnier [Thu, 29 Aug 2013 19:18:16 +0000 (15:18 -0400)]
* lisp/emacs-lisp/lisp.el (lisp--company-doc-buffer)
(lisp--company-doc-string, lisp--company-location): New functions.
(lisp-completion-at-point): Use them to improve Company support.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
Stefan Monnier [Thu, 29 Aug 2013 18:06:46 +0000 (14:06 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
params of lambda expressions.
(ruby-smie--implicit-semi-p): Refine rule.
(ruby-smie--opening-pipe-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
symbols and matched |...| for formal params.
(ruby-smie-rules): Don't let the formal params of a "do" prevent it
from being treated as hanging.  Handle "rescue".

Fixes: debbugs:15208

10 years ago* lisp/progmodes/cc-engine.el (c-pull-open-brace): Move definition before use.
Glenn Morris [Thu, 29 Aug 2013 17:26:48 +0000 (13:26 -0400)]
* lisp/progmodes/cc-engine.el (c-pull-open-brace): Move definition before use.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00773.html

10 years ago* intervals.c (set_point_from_marker): New function.
Dmitry Antipov [Thu, 29 Aug 2013 16:36:54 +0000 (20:36 +0400)]
* intervals.c (set_point_from_marker): New function.
* editfns.c (Fgoto_char):
* process.c (Finternal_default_process_filter):
* window.c (select_window_1): Use it.
* buffer.h (set_point_from_marker): Add prototype.

10 years agoA possible fix for bug #14333 with hanging at exit on MS-Windows.
Eli Zaretskii [Thu, 29 Aug 2013 15:32:04 +0000 (18:32 +0300)]
A possible fix for bug #14333 with hanging at exit on MS-Windows.

 src/w32.c (term_winsock): Call release_listen_threads before calling
 WSACleanup.
 (_sys_wait_accept): Wait for accept event in a loop with a finite
 timeout, instead of waiting indefinitely.  Will hopefully avoid
 hanging during exit because WSACleanup deadlocks waiting for the
 event object to be released.
 src/w32proc.c (release_listen_threads): New function, signals all
 the reader threads that listen for connections to stop waiting.
 src/w32.h (release_listen_threads): Add prototype.

10 years ago* lisp.h (XSETMARKER): Remove unused macro (it doesn't work
Dmitry Antipov [Thu, 29 Aug 2013 15:28:45 +0000 (19:28 +0400)]
* lisp.h (XSETMARKER): Remove unused macro (it doesn't work
anyway because XMISCTYPE is a function and can't be an lvalue).

10 years ago* alloc.c (Fmake_marker, build_marker): Zero need_adjustment
Dmitry Antipov [Thu, 29 Aug 2013 11:22:28 +0000 (15:22 +0400)]
* alloc.c (Fmake_marker, build_marker): Zero need_adjustment
field of new marker (for sanity and safety).

10 years ago* xterm.c (x_clear_area): Lost 7th arg because it is always False.
Dmitry Antipov [Thu, 29 Aug 2013 07:27:27 +0000 (11:27 +0400)]
* xterm.c (x_clear_area): Lost 7th arg because it is always False.
(x_after_update_window_line, x_scroll_bar_create):
(x_scroll_bar_set_handle, XTset_vertical_scroll_bar):
(handle_one_xevent, x_clear_frame_area):
* gtkutil.c (xg_clear_under_internal_border, xg_update_scrollbar_pos):
* xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Adjust users.
* xterm.h (x_clear_area): Adjust prototype.

10 years agoHook scanning and indentation functions to find_newline. This helps
Dmitry Antipov [Thu, 29 Aug 2013 07:03:18 +0000 (11:03 +0400)]
Hook scanning and indentation functions to find_newline.  This helps
to avoid duplicated code and renders more respect to newline cache.
* lisp.h (scan_newline): Prefer ptrdiff_t to EMACS_INT.
* cmds.c (Fforward_line):
* indent.c (scan_for_column, Fcurrent_indentation, indented_beyond_p):
Use find_newline and avoid unnecessary point movements.
* search.c (scan_newline): Implement on top of find_newline.

10 years ago* lisp/emacs-lisp/cl-macs.el (cl-defsubst): Make it clear that args
Stefan Monnier [Thu, 29 Aug 2013 03:49:10 +0000 (23:49 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-defsubst): Make it clear that args
are immutable.  Don't use `unsafe' any more.
(cl--defsubst-expand): Don't substitute at the same time as keeping
a residual unused let-binding.  Don't use `unsafe' any more.

10 years ago* calendar/cal-china.el (calendar-chinese-year-cache): Recenter on 2015.
Glenn Morris [Thu, 29 Aug 2013 03:21:33 +0000 (20:21 -0700)]
* calendar/cal-china.el (calendar-chinese-year-cache): Recenter on 2015.

10 years ago* nxml/nxml-util.el (nxml-debug-clear-inside): Use cl-loop rather than loop.
Glenn Morris [Thu, 29 Aug 2013 01:20:05 +0000 (21:20 -0400)]
* nxml/nxml-util.el (nxml-debug-clear-inside): Use cl-loop rather than loop.

10 years ago* admin/notes/bzr: Mention origin of commit email From header.
Glenn Morris [Thu, 29 Aug 2013 01:18:51 +0000 (21:18 -0400)]
* admin/notes/bzr: Mention origin of commit email From header.

10 years ago* lisp/net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.
Glenn Morris [Thu, 29 Aug 2013 01:17:10 +0000 (21:17 -0400)]
* lisp/net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.
(If "eww" is supposed to be an acronym then maybe capitalize the whole thing.)

10 years ago* admin/notes/hydra: Misc small edits
Glenn Morris [Thu, 29 Aug 2013 01:12:51 +0000 (21:12 -0400)]
* admin/notes/hydra: Misc small edits

10 years ago* etc/spook.lines: Minor commentary update
Glenn Morris [Thu, 29 Aug 2013 01:05:19 +0000 (21:05 -0400)]
* etc/spook.lines: Minor commentary update

10 years ago* lisp/progmodes/sh-script.el (sh-builtins) <bash>: Add some bash4-isms.
Glenn Morris [Thu, 29 Aug 2013 01:02:46 +0000 (21:02 -0400)]
* lisp/progmodes/sh-script.el (sh-builtins) <bash>: Add some bash4-isms.

10 years ago* lisp/progmodes/antlr-mode.el: No need to require cc-mode twice.
Glenn Morris [Wed, 28 Aug 2013 23:32:25 +0000 (19:32 -0400)]
* lisp/progmodes/antlr-mode.el: No need to require cc-mode twice.

10 years ago* lisp/progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.
Glenn Morris [Wed, 28 Aug 2013 23:31:52 +0000 (19:31 -0400)]
* lisp/progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.

10 years ago* lisp/progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.
Glenn Morris [Wed, 28 Aug 2013 23:31:06 +0000 (19:31 -0400)]
* lisp/progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.

10 years ago* lisp/simple.el (repeat-complex-command--called-interactively-skip):
Stefan Monnier [Wed, 28 Aug 2013 21:19:54 +0000 (17:19 -0400)]
* lisp/simple.el (repeat-complex-command--called-interactively-skip):
New function.
(repeat-complex-command): Use it.

Fixes: debbugs:14136

10 years ago* lisp/progmodes/cc-mode.el: Minor cleanup of var declarations.
Stefan Monnier [Wed, 28 Aug 2013 20:24:18 +0000 (16:24 -0400)]
* lisp/progmodes/cc-mode.el: Minor cleanup of var declarations.
(c-define-abbrev-table): Add `doc' argument.
(c-mode-abbrev-table, c++-mode-abbrev-table)
(objc-mode-abbrev-table, java-mode-abbrev-table)
(idl-mode-abbrev-table, pike-mode-abbrev-table)
(awk-mode-abbrev-table): Use it.
(c-mode-syntax-table, c-mode-map, c++-mode-syntax-table)
(c++-mode-map, objc-mode-syntax-table, objc-mode-map)
(java-mode-syntax-table, java-mode-map, idl-mode-syntax-table)
(idl-mode-map, pike-mode-syntax-table, pike-mode-map, awk-mode-map):
Move initialization into the declaration; and remove any
autoload cookie.

10 years ago* lisp/epg.el (epg--process-filter): Use with-current-buffer, save-excursion
Stefan Monnier [Wed, 28 Aug 2013 19:28:30 +0000 (15:28 -0400)]
* lisp/epg.el (epg--process-filter): Use with-current-buffer, save-excursion
and dynamic let binding.

10 years ago* lisp/vc/smerge-mode.el: Remove redundant :group args.
Stefan Monnier [Wed, 28 Aug 2013 19:26:18 +0000 (15:26 -0400)]
* lisp/vc/smerge-mode.el: Remove redundant :group args.

10 years ago* src/eval.c (Ffuncall): Fix handling of ((lambda ..) ..) in lexically
Stefan Monnier [Wed, 28 Aug 2013 18:27:26 +0000 (14:27 -0400)]
* src/eval.c (Ffuncall): Fix handling of ((lambda ..) ..) in lexically
scoped code.

Fixes: debbugs:11258

10 years ago* lisp/emacs-lisp/package.el (package-activate-1): Don't add unnecessarily
Stefan Monnier [Wed, 28 Aug 2013 17:57:12 +0000 (13:57 -0400)]
* lisp/emacs-lisp/package.el (package-activate-1): Don't add unnecessarily
to load-path.

10 years ago* lisp/isearch.el (isearch-reread-key-sequence-naturally): Use non-nil
Juri Linkov [Wed, 28 Aug 2013 16:39:51 +0000 (19:39 +0300)]
* lisp/isearch.el (isearch-reread-key-sequence-naturally): Use non-nil
arg DONT-DOWNCASE-LAST of `read-key-sequence'.
(isearch-other-meta-char): Handle an undefined shifted printing
character by downshifting it.

Fixes: debbugs:15200

10 years ago* lisp/isearch.el (isearch-search): Change regexp error message for non-regexp searches.
Juri Linkov [Wed, 28 Aug 2013 16:33:02 +0000 (19:33 +0300)]
* lisp/isearch.el (isearch-search): Change regexp error message for non-regexp searches.

Fixes: debbugs:15166

10 years ago* nsterm.m (last_window): New variable.
Jan Djärv [Wed, 28 Aug 2013 16:20:15 +0000 (18:20 +0200)]
* nsterm.m (last_window): New variable.
(EV_TRAILER2): New macro.
(EV_TRAILER): Call EV_TRAILER2.
(mouseMoved:):  Add support for mouse-autoselect-window
on nextstep.

Fixes: debbugs:6888

10 years ago* regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE, CHAR_HEAD_P)
Andreas Schwab [Wed, 28 Aug 2013 13:50:55 +0000 (15:50 +0200)]
* regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE, CHAR_HEAD_P)
(SINGLE_BYTE_CHAR_P, SAME_CHARSET_P, MAKE_CHAR, BYTE8_TO_CHAR):
Remove unused macro definitions.
(CHARSET_RANGE_TABLE_BITS, EXTEND_RANGE_TABLE)
(SET_RANGE_TABLE_WORK_AREA_BIT, SET_RANGE_TABLE_WORK_AREA): Only
define if emacs.

10 years agoPrefer enum glyph_row_area to int where appropriate.
Dmitry Antipov [Wed, 28 Aug 2013 11:00:03 +0000 (15:00 +0400)]
Prefer enum glyph_row_area to int where appropriate.
* dispextern.h (enum glyph_row_area): Add ANY_AREA member.
Fix comment.
(window_box, window_box_width, window_box_left, window_box_left_offset)
(window_box_right, window_box_right_offset): Adjust prototypes.
* xdisp.c (window_box, window_box_width, window_box_left)
(window_box_left_offset, window_box_right, window_box_right_offset):
Use enum glyph_row_area.  Adjust users and tweak comment where needed.
(window_box_edges): Likewise.  Lost 2nd arg since it is always ANY_AREA.
* nsterm.m (ns_clip_to_row):
* w32term.c (w32_clip_to_row):
* xterm.c (x_clip_to_row): Likewise.

10 years agoAuto-commit of generated files.
Glenn Morris [Wed, 28 Aug 2013 10:17:39 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agolisp/gnus/mm-decode.el (mm-temp-files-delete): Fix file deletion logic
Katsumi Yamaoka [Wed, 28 Aug 2013 08:38:28 +0000 (08:38 +0000)]
lisp/gnus/mm-decode.el (mm-temp-files-delete): Fix file deletion logic

10 years ago* buffer.c (Foverlays_at, Foverlays_in, Fnext_overlay_change)
Dmitry Antipov [Wed, 28 Aug 2013 08:33:12 +0000 (12:33 +0400)]
* buffer.c (Foverlays_at, Foverlays_in, Fnext_overlay_change)
(Fprevious_overlay_change): Fast path for buffer with no overlays.

10 years ago* Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
Paul Eggert [Wed, 28 Aug 2013 06:01:52 +0000 (23:01 -0700)]
* Makefile.in (SHELL): Now @SHELL@, not /bin/sh,

for portability to hosts where /bin/sh has problems.

10 years agoRedesign redisplay interface to drop global output_cursor.
Dmitry Antipov [Wed, 28 Aug 2013 05:45:38 +0000 (09:45 +0400)]
Redesign redisplay interface to drop global output_cursor.
* dispextern.h (struct redisplay_interface): Remove cursor_to member.
(toplevel): Remove declaration of output_cursor.
(set_output_cursor, x_cursor_to): Remove prototype.
* window.h (struct window): New member output_cursor.
(output_cursor_to): New function to replace RIF member.
* dispnew.c (redraw_overlapped_rows, update_marginal_area)
(update_text_area, set_window_cursor_after_update): Use it.
* xdisp.c (output_cursor, set_output_cursor, x_cursor_to): Remove.
(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
* nsterm.m (ns_update_window_begin, ns_update_window_end):
* w32term.c (x_update_window_begin, x_update_window_end):
* xterm.c (x_update_window_begin, x_update_window_end):
Adjust to use per-window output cursor.

10 years agoTry to reduce redundancy in doc/misc/Makefile.in.
Stefan Monnier [Wed, 28 Aug 2013 01:37:13 +0000 (21:37 -0400)]
Try to reduce redundancy in doc/misc/Makefile.in.
* configure.ac (DOCMISC_W32): New var to replace DOCMISC_*_W32.
* doc/misc/Makefile.in (DOCMISC_W32): New var to replace DOCMISC_*_W32.
(TARGETS): New intermediate variable.
(DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS): Use it.

10 years ago* lisp/emacs-lisp/cconv.el (cconv--analyse-function): Improve warning.
Stefan Monnier [Wed, 28 Aug 2013 01:33:31 +0000 (21:33 -0400)]
* lisp/emacs-lisp/cconv.el (cconv--analyse-function): Improve warning.

10 years agoUpdate location of Emacs on MS Windows FAQ
Glenn Morris [Tue, 27 Aug 2013 19:40:24 +0000 (15:40 -0400)]
Update location of Emacs on MS Windows FAQ

10 years agoSimplify SELECT_TYPE-related code.
Paul Eggert [Tue, 27 Aug 2013 19:36:28 +0000 (12:36 -0700)]
Simplify SELECT_TYPE-related code.

Like EMACS_TIME, this portability layer is no longer needed, since
Emacs has been using fd_set as a portability layer for some time.
* sysselect.h (FD_SETSIZE): Rename from MAXDESC.  All uses changed.
(SELECT_TYPE): Remove.  All uses changed to fd_set.
(fd_set) [!FD_SET]: New typedef.

10 years agoSpelling fixes.
Paul Eggert [Tue, 27 Aug 2013 19:02:42 +0000 (12:02 -0700)]
Spelling fixes.

10 years agoSimplify EMACS_TIME-related code.
Paul Eggert [Tue, 27 Aug 2013 18:47:55 +0000 (11:47 -0700)]
Simplify EMACS_TIME-related code.

This portability layer is no longer needed, since Emacs has been
using struct timespec as a portability layer for some time.
Merge from gnulib, incorporating:
2013-08-27 timespec: new convenience constants and function
* src/atimer.h, src/buffer.h, src/dispextern.h, src/xgselect.h:
Include <time.h> rather than "systime.h"; that's all that's needed now.
* src/dispnew.c: Include <timespec.h> rather than "systime.h";
that's all that's needed now.
* src/systime.h (EMACS_TIME): Remove.  All uses changed to struct timespec.
(EMACS_TIME_RESOLUTION): Remove.  All uses changed to
TIMESPEC_RESOLUTION.
(LOG10_EMACS_TIME_RESOLUTION): Remove.  All uses changed to
LOG10_TIMESPEC_RESOLUTION.
(EMACS_SECS, emacs_secs_addr): Remove.  All uses changed to tv_sec.
(EMACS_NSECS): Remove.  All uses changed to tv_nsec.
(make_emacs_time): Remove.  All used changed to make_timespec.
(invalid_timespec): Rename from invalid_emacs_time.  All uses changed.
(current_timespec): Rename from current_emacs_time.  All uses changed.
(add_emacs_time): Remove.  All uses changed to timespec_add.
(sub_emacs_time): Remove.  All uses change dot timespec_sub.
(EMACS_TIME_SIGN): Remove.  All uses changed to timespec_sign.
(timespec_valid_p): Rename from EMACS_TIME_VALID_P.  All uses changed.
(EMACS_TIME_FROM_DOUBLE): Remove.  All uses changed to dtotimespec.
(EMACS_TIME_TO_DOUBLE): Remove.  All uses changed to timespectod.
(current_timespec): Rename from current_emacs_time.  All uses changed.
(EMACS_TIME_EQ, EMACS_TIME_LT, EMACS_TIME_LE): Remove.  All uses
changed to timespec_cmp.
* src/xgselect.c: Include <timespec.h>, since our .h files don't.

10 years ago* doc/misc/efaq.texi: Rename from faq.texi, to match its output files.
Glenn Morris [Tue, 27 Aug 2013 17:19:04 +0000 (13:19 -0400)]
* doc/misc/efaq.texi: Rename from faq.texi, to match its output files.

* doc/misc/Makefile.in: Update for faq.texi name change.

* admin/admin.el (manual-misc-manuals): "faq" does not need special
  treatment any more.

10 years ago* lisp/isearch.el (isearch-other-meta-char): Don't store kmacro commands
Juri Linkov [Tue, 27 Aug 2013 16:06:16 +0000 (19:06 +0300)]
* lisp/isearch.el (isearch-other-meta-char): Don't store kmacro commands
in the keyboard macro.

Fixes: debbugs:15126

10 years ago* lisp/isearch.el (isearch-quote-char): Comment out converting unibyte
Juri Linkov [Tue, 27 Aug 2013 15:57:16 +0000 (18:57 +0300)]
* lisp/isearch.el (isearch-quote-char): Comment out converting unibyte
to multibyte, thus syncing with its `quoted-insert' counterpart.

Fixes: debbugs:15166

10 years ago* configure.ac (DOCMISC_INFO_W32): Typo fix.
Glenn Morris [Tue, 27 Aug 2013 15:44:07 +0000 (08:44 -0700)]
* configure.ac (DOCMISC_INFO_W32): Typo fix.

10 years agoAdd missing argument in call of get-largest-window (Bug#15185).
Martin Rudalics [Tue, 27 Aug 2013 12:46:00 +0000 (14:46 +0200)]
Add missing argument in call of get-largest-window (Bug#15185).

* window.el (display-buffer-use-some-window): Add missing
argument in call of get-largest-window (Bug#15185).  Reported by
Stephen Leake.

10 years agoAuto-commit of generated files.
Glenn Morris [Tue, 27 Aug 2013 10:17:45 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
Dmitry Antipov [Tue, 27 Aug 2013 09:21:46 +0000 (13:21 +0400)]
* configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
(DOCMISC_PDF_W32, DOCMISC_PS_W32): No spaces!

10 years ago* doc/misc/efaq-w32.texi (EMACSVER): Get it from emacsver.texi.
Glenn Morris [Tue, 27 Aug 2013 08:14:58 +0000 (01:14 -0700)]
* doc/misc/efaq-w32.texi (EMACSVER): Get it from emacsver.texi.

10 years ago* doc/misc/Makefile.in (webhack): Remove; it's nothing to do with Emacs.
Glenn Morris [Tue, 27 Aug 2013 08:04:08 +0000 (01:04 -0700)]
* doc/misc/Makefile.in (webhack): Remove; it's nothing to do with Emacs.
Presumably it is some Gnus thing.

10 years agoMerge from emacs-24; up to 2013-01-03T01:56:56Z!rgm@gnu.org
Glenn Morris [Tue, 27 Aug 2013 08:01:13 +0000 (01:01 -0700)]
Merge from emacs-24; up to 2013-01-03T01:56:56Z!rgm@gnu.org

10 years agoMove source for Emacs on MS Windows FAQ here from Emacs webpages repository
Glenn Morris [Tue, 27 Aug 2013 07:57:39 +0000 (00:57 -0700)]
Move source for Emacs on MS Windows FAQ here from Emacs webpages repository

* Makefile.in (mostlyclean, clean, distclean, bootstrap-clean)
(maintainer-clean, check-declare): Remove pointless subshells.
Check cd return value.

* configure.ac (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
(DOCMISC_PDF_W32, DOCMISC_PS_W32): New output variables.
* Makefile.in (check-info-dir): Ignore efaq-w32.

* admin/admin.el (manual-misc-manuals): Use INFO_COMMON rather than
INFO_TARGETS.

* doc/misc/efaq-w32.texi: Move here from the web-pages repository.

* doc/misc/Makefile.in (DOCMISC_DVI_W32, DOCMISC_HTML_W32, DOCMISC_INFO_W32)
(DOCMISC_PDF_W32, DOCMISC_PS_W32): New configure output variables.
(INFO_COMMON, INFO_INSTALL): New derivations of INFO_TARGETS.
(DVI_TARGETS, HTML_TARGETS, PDF_TARGETS, PS_TARGETS):
Add DOCMISC_*_W32 variables.
(echo-info): Use INFO_INSTALL rather than INFO_TARGETS.
(efaq_w32_deps): New variable.
(efaq-w32, $(buildinfodir)/efaq-w32$(INFO_EXT), efaq-w32.dvi)
(efaq-w32.pdf, efaq-w32.html): New rules.
(clean): Remove efaq-w32 products.

10 years ago* Makefile.in (mostlyclean, clean, distclean, bootstrap-clean)
Glenn Morris [Tue, 27 Aug 2013 06:58:08 +0000 (23:58 -0700)]
* Makefile.in (mostlyclean, clean, distclean, bootstrap-clean)
(maintainer-clean, check-declare): Remove pointless subshells.
Check cd return value.

10 years ago* xterm.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE:)
Dmitry Antipov [Tue, 27 Aug 2013 04:23:54 +0000 (08:23 +0400)]
* xterm.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE:)
* nsterm.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
Remove the leftovers.
* gtkutil.c (toplevel): Do not declare Qxft but include
font.h to do so.
* image.c (toplevel): Do not declare Vlibrary_cache because
it's already done in lisp.h.

10 years ago* lisp.h (Mouse_HLInfo): Move from here...
Dmitry Antipov [Tue, 27 Aug 2013 03:52:21 +0000 (07:52 +0400)]
* lisp.h (Mouse_HLInfo): Move from here...
* dispextern.h (Mouse_HLInfo): ...to here and offload lisp.h.
(reset_mouse_highlight): New function.
* msdos.c (dos_set_window_size, IT_update_begin)
(internal_terminal_init):
* nsterm.m (ns_update_window_end, x_free_frame_resources)
(ns_initialize_display_info):
* w32console.c (initialize_w32_display):
* w32term.c (x_update_window_end, x_free_frame_resources)
(w32_initialize_display_info):
* xterm.c (x_update_window_end, x_free_frame_resources, x_term_init):
* window.c (Fdelete_other_windows_internal):
* xdisp.c (clear_mouse_face, cancel_mouse_face): Use it.
* termchar.h (toplevel):
* xterm.h (toplevel): Include dispextern.h.

10 years ago* lisp/progmodes/python.el (python-font-lock-keywords): Don't return nil
Stefan Monnier [Tue, 27 Aug 2013 02:41:41 +0000 (22:41 -0400)]
* lisp/progmodes/python.el (python-font-lock-keywords): Don't return nil
from a matcher-function unless there's no more matches.

Fixes: debbugs:15161

10 years agoMinor merge from gnulib (mostly just for texinfo.tex).
Paul Eggert [Mon, 26 Aug 2013 22:17:31 +0000 (15:17 -0700)]
Minor merge from gnulib (mostly just for texinfo.tex).

10 years agoFix minor problems found by static checking.
Paul Eggert [Mon, 26 Aug 2013 21:31:50 +0000 (14:31 -0700)]
Fix minor problems found by static checking.

* image.c (XGetPixel, XPutPixel) [HAVE_NS]: Now static.
(expect): Avoid nested-if warning.
(x_build_heuristic_mask) [HAVE_NS]: Avoid unused-var warning.
* nsmenu.m (fillWithWidgetValue:): Avoid type warning.
* nsterm.h, nsterm.m (ns_select):
* xgselect.c, xgselect.h (xg_select):
Adjust signature to better match pselect's.
* nsterm.m (ns_select):
Don't set *TIMEOUT, since pselect doesn't.
* regex.c (whitespace_regexp): Now const_re_char *, to avoid
diagnostic about assigning const char * to it.
* xfaces.c (x_display_info) [HAVE_NS]: Remove; unused.

10 years ago* src/lread.c (substitute_object_recurse): Handle hash-tables as well.
Stefan Monnier [Mon, 26 Aug 2013 20:33:21 +0000 (16:33 -0400)]
* src/lread.c (substitute_object_recurse): Handle hash-tables as well.

Fixes: debbugs:15190

10 years agoFix unlikely core dump in init_tty, and simplify terminfo case.
Paul Eggert [Mon, 26 Aug 2013 18:10:30 +0000 (11:10 -0700)]
Fix unlikely core dump in init_tty, and simplify terminfo case.

* term.c (init_tty) [TERMINFO]: Fix check for buffer overrun.
The old version incorrectly dumped core if malloc returned a
buffer containing only non-NUL bytes.
(init_tty): Do not allocate or free termcap buffers; the
struct does that for us now.
* termchar.h (TERMCAP_BUFFER_SIZE) [!TERMINFO]: New constant.
(struct tty_display_info): Define members termcap_term_buffer and
termcap_strings_buffer only if !TERMINFO, since terminfo doesn't
use them.  Allocate them directly in struct rather than indirectly
via a pointer, to simplify init_tty.

10 years ago* frame.c (check_minibuf_window): Initialize 'window' properly,
Paul Eggert [Mon, 26 Aug 2013 17:31:00 +0000 (10:31 -0700)]
* frame.c (check_minibuf_window): Initialize 'window' properly,

so that Emacs reliably aborts later if 'window' is not initialized.

10 years agoFix ChangeLog typo.
Dmitry Antipov [Mon, 26 Aug 2013 16:29:52 +0000 (20:29 +0400)]
Fix ChangeLog typo.

10 years ago* gtkutil.c (xg_initialize): Set gtk-menu-bar-accel to "" instead
Jan Djärv [Mon, 26 Aug 2013 15:44:56 +0000 (17:44 +0200)]
* gtkutil.c (xg_initialize): Set gtk-menu-bar-accel to "" instead
of VoidSymbol.

Fixes: debbugs:15154

10 years ago* lispref/variables.texi (File Local Variables): Don't recommend quoting!
Stefan Monnier [Mon, 26 Aug 2013 15:28:24 +0000 (11:28 -0400)]
* lispref/variables.texi (File Local Variables): Don't recommend quoting!

10 years ago* lisp.h (Mouse_HLInfo): Drop set-but-unused members
Dmitry Antipov [Mon, 26 Aug 2013 14:00:55 +0000 (18:00 +0400)]
* lisp.h (Mouse_HLInfo): Drop set-but-unused members
mouse_face_beg_y and mouse_face_end_y.
* xdisp.c (note_tool_bar_highlight, mouse_face_from_buffer_pos)
(mouse_face_from_string_pos, note_mode_line_or_margin_highlight):
Adjust users and update comment where appropriate.

10 years ago* minibuffer.el: Revert change from 2013-08-20.
Michael Albinus [Mon, 26 Aug 2013 13:17:22 +0000 (15:17 +0200)]
* minibuffer.el: Revert change from 2013-08-20.

* net/tramp.el (tramp-find-method, tramp-find-user): Mark result
with text property `tramp-default', if appropriate.
(tramp-check-proper-host): New defun.
(tramp-dissect-file-name): Do not check hostname.  Revert change
of 2013-03-18.
(tramp-backtrace): Make VEC-OR-PROC optional.

* net/tramp-adb.el (tramp-adb-maybe-open-connection):
* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* net/tramp-sh.el (tramp-maybe-open-connection):
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Apply
`tramp-check-proper-host'.

10 years agoNew function check_minibuf_window to fix bug#15183.
Martin Rudalics [Mon, 26 Aug 2013 12:39:08 +0000 (14:39 +0200)]
New function check_minibuf_window to fix bug#15183.

* frame.c (check_minibuf_window): New function.
(delete_frame, Fmake_frame_invisible, Ficonify_frame): Call
check_minibuf_window (Bug#15183).

10 years ago* epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
Tassilo Horn [Mon, 26 Aug 2013 11:03:09 +0000 (13:03 +0200)]
* epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
lambda expression in order to have `describe-variable' display it.

10 years ago* window.h (struct window): Replace last_cursor with last_cursor_vpos
Dmitry Antipov [Mon, 26 Aug 2013 09:33:37 +0000 (13:33 +0400)]
* window.h (struct window): Replace last_cursor with last_cursor_vpos
because this is the only last cursor data we need to keep and consult.
* window.c (replace_window, set_window_buffer, Fsplit_window_internal):
* xdisp.c (mark_window_display_accurate_1, try_cursor_movement):
Adjust users.

10 years ago* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
Michael Albinus [Mon, 26 Aug 2013 06:59:53 +0000 (08:59 +0200)]
* net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
BUF can be optional.  (Bug#15186)

10 years agoFix recovering from possible decompression error. Since
Dmitry Antipov [Mon, 26 Aug 2013 05:32:47 +0000 (09:32 +0400)]
Fix recovering from possible decompression error.  Since
insert_from_gap doesn't always move point, we can't use PT as
the position where the partially decompressed data ends, and
should count how may bytes was produced so far.
* decompress.c (struct decompress_unwind_data): Add nbytes member.
(unwind_decompress): Really delete partially uncompressed data.
(Fzlib_decompress_region): Take decompressed data size into account.

10 years ago* alloc.c (sweep_vectors): Do not initialize 'block' twice.
Dmitry Antipov [Mon, 26 Aug 2013 05:26:06 +0000 (09:26 +0400)]
* alloc.c (sweep_vectors): Do not initialize 'block' twice.

10 years ago* syntax.c (init_syntax_once): Adjust comment and do an early
Dmitry Antipov [Mon, 26 Aug 2013 05:20:59 +0000 (09:20 +0400)]
* syntax.c (init_syntax_once): Adjust comment and do an early
initialization of Qchar_table_extra_slots just once...
* casetab.c (init_casetab_once):
* category.c (init_category_once):
* character.c (syms_of_character):
* coding.c (syms_of_coding):
* xdisp.c (syms_of_xdisp): ...and omit it here.

10 years agoFix broken customization in Flymake.
Xue Fuqiao [Sun, 25 Aug 2013 22:30:56 +0000 (06:30 +0800)]
Fix broken customization in Flymake.

* lisp/progmodes/flymake.el (flymake-get-real-file-name-function):
Fix broken customization.  (Bug#15184)

10 years agoImprove indentation of bracelists defined by macros (without "=").
Alan Mackenzie [Sun, 25 Aug 2013 21:06:07 +0000 (21:06 +0000)]
Improve indentation of bracelists defined by macros (without "=").

* progmodes/cc-engine.el (c-inside-bracelist-p): When a macro
expansion begins with "{", regard it as bracelist when it doesn't
contain a ";".

10 years agoAdd a question into configure.bat whether the user want to continue at
Vincent Belaïche [Sun, 25 Aug 2013 20:11:56 +0000 (22:11 +0200)]
Add a question into configure.bat whether the user want to continue at
his/her own risks.

10 years ago* INSTALL: Refer to INSTALL.MSYS.
Glenn Morris [Sun, 25 Aug 2013 19:46:41 +0000 (12:46 -0700)]
* INSTALL: Refer to INSTALL.MSYS.

10 years ago* nt/configure.bat: Disable it.
Glenn Morris [Sun, 25 Aug 2013 19:44:59 +0000 (12:44 -0700)]
* nt/configure.bat: Disable it.
Ref http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00705.html

10 years agoParse C++ inher-intro when there's a template split over 2 lines.
Alan Mackenzie [Sun, 25 Aug 2013 13:52:14 +0000 (13:52 +0000)]
Parse C++ inher-intro when there's a template split over 2 lines.

* progmodes/cc-engine.el (c-guess-basic-syntax CASE 5C): Code more
rigorously the search for "class" etc. followed by ":".

* progmodes/cc-langs.el (c-opt-<>-sexp-key): Make the value for
random languages a regexp which never matches rather than nil.

10 years agoHandle "/"s more accurately in test for virtual semicolons (AWK Mode).
Alan Mackenzie [Sun, 25 Aug 2013 10:09:56 +0000 (10:09 +0000)]
Handle "/"s more accurately in test for virtual semicolons (AWK Mode).

* progmodes/cc-awk.el (c-awk-one-line-possibly-open-string-re)
(c-awk-regexp-one-line-possibly-open-char-list-re)
(c-awk-one-line-possibly-open-regexp-re)
(c-awk-one-line-non-syn-ws*-re): Remove.
(c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re)
(c-awk-space*-/-re, c-awk-space*-regexp-/-re)
(c-awk-space*-unclosed-regexp-/-re): New constants.
(c-awk-at-vsemi-p): Reformulate better to recognize "/"s which
aren't regexp delimiters.

* progmodes/cc-engine.el (c-crosses-statement-barrier-p): Add in
handling for a rare situation in AWK Mode involving unterminated
strings/regexps.

10 years agoAdd commentary for the last commit.
Eli Zaretskii [Sat, 24 Aug 2013 15:21:05 +0000 (18:21 +0300)]
Add commentary for the last commit.

10 years agoFix bug #15175 with cursor on boxed characters from display tables.
Eli Zaretskii [Sat, 24 Aug 2013 12:59:13 +0000 (15:59 +0300)]
Fix bug #15175 with cursor on boxed characters from display tables.

 src/xdisp.c (get_next_display_element): Don't apply to characters
 from a display vector the logic of setting it->end_of_box_run_p
 suitable for characters from a buffer.

10 years agoFix bug #15176 with setting directory times on MS-Windows.
Eli Zaretskii [Sat, 24 Aug 2013 10:15:01 +0000 (13:15 +0300)]
Fix bug #15176 with setting directory times on MS-Windows.

 src/w32.c (fdutimens): Call 'utime', which is implemented on w32.c
 to handle directories, rather than '_utime' which doesn't.

10 years ago* gtkutil.c (x_wm_set_size_hint): Don't set hints when maximized
Jan Djärv [Sat, 24 Aug 2013 08:43:36 +0000 (10:43 +0200)]
* gtkutil.c (x_wm_set_size_hint): Don't set hints when maximized
or fullscreen.

Fixes: debbugs:14627

10 years agoSystem-dependent integer overflow fixes.
Paul Eggert [Sat, 24 Aug 2013 02:23:34 +0000 (19:23 -0700)]
System-dependent integer overflow fixes.

* process.c (Fset_process_window_size): Signal an error if
the window size is outside the range supported by the lower level.
* sysdep.c (set_window_size): Return negative on error,
nonnegative on success, rather than -1, 0, 1 on not in system,
failure, success.  This is simpler.  Caller changed.
(serial_configure): Remove unnecessary initialization of local.
(procfs_get_total_memory) [GNU_LINUX]: Don't assume system memory
size fits in unsigned long; this isn't true on some 32-bit hosts.
Avoid buffer overrun if some future version of /proc/meminfo has a
variable name longer than 20 bytes.
(system_process_attributes) [__FreeBSD__]:
Don't assume hw.availpages fits in 'int'.

10 years ago* lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history.
Glenn Morris [Fri, 23 Aug 2013 18:58:41 +0000 (14:58 -0400)]
* lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history.

10 years agoDon't let very long directory names overrun the stack.
Paul Eggert [Fri, 23 Aug 2013 17:57:07 +0000 (10:57 -0700)]
Don't let very long directory names overrun the stack.

Fix some related minor problems involving "//", vfork.
* callproc.c (encode_current_directory): New function.
(call_process): Don't append "/"; not needed.
* fileio.c (file_name_as_directory_slop): New constant.
(file_name_as_directory): Allow SRC to be longer than SRCLEN;
this can save the caller having to alloca.
(Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name):
Use SAFE_ALLOCA, not alloca.
(directory_file_name, Fexpand_file_name): Leave leading "//"
alone, since it can be special even on POSIX platforms.
* callproc.c (call_process):
* process.c (Fformat_network_address):
* sysdep.c (sys_subshell):
Use encode_current_directory rather than rolling our own.
(create_process): No need to encode directory; caller does that now.
* process.h (encode_current_directory): New decl.
* sysdep.c (sys_subshell): Work even if vfork trashes saved_handlers.
Rework to avoid 'goto xyzzy;'.

10 years ago* lisp/files.el (create-file-buffer): Rework previous change.
Glenn Morris [Fri, 23 Aug 2013 17:34:09 +0000 (13:34 -0400)]
* lisp/files.el (create-file-buffer): Rework previous change.

10 years ago* lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.
Glenn Morris [Fri, 23 Aug 2013 17:09:09 +0000 (13:09 -0400)]
* lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts.