]> code.delx.au - gnu-emacs/log
gnu-emacs
10 years ago* doc/lispref/display.texi (Width): Fix arguments of ‘truncate-string-to-width’.
Xue Fuqiao [Thu, 17 Oct 2013 13:46:44 +0000 (21:46 +0800)]
* doc/lispref/display.texi (Width): Fix arguments of ‘truncate-string-to-width’.

10 years agoTrivial doc fix.
Xue Fuqiao [Thu, 17 Oct 2013 11:43:40 +0000 (19:43 +0800)]
Trivial doc fix.

10 years agoMake some functions static in non-Microsoft builds.
Paul Eggert [Thu, 17 Oct 2013 06:42:21 +0000 (23:42 -0700)]
Make some functions static in non-Microsoft builds.

On my platform (Fedora 19 x86-64), this shrinks the
Emacs executable (text+data) by 0.25%.
* dispextern.h (erase_phys_cursor) [!WINDOWSNT]:
(load_color) [!MSDOS]:
* gnutls.h (emacs_gnutls_transport_set_errno) [!WINDOWSNT]:
* keyboard.h (make_ctrl_char) [!WINDOWSNT]:
* lisp.h (check_existing):
* process.h (conv_sockaddr_to_lisp, network_interface_list)
(network_interface_info) [!WINDOWSNT]:
* termhooks.h (encode_terminal_code) [!WINDOWSNT]:
Remove extern decls.
* fileio.c (check_existing):
* keyboard.c (make_ctrl_char) [!WINDOWSNT]:
* process.c (conv_sockaddr_to_lisp, network_interface_list)
(network_interface_info) [!WINDOWSNT]:
* term.c (encode_terminal_code) [!WINDOWSNT]:
* xdisp.c (erase_phys_cursor) [!WINDOWSNT]:
* xfaces.c (load_color) [!MSDOS]:
Now static.
* fileio.c (check_existing, check_executable, check_writable):
* process.c (network_interface_list, network_interface_info):
Move earlier, so that we don't need forward decls.
* gnutls.c (fn_gnutls_transport_set_errno)
(emacs_gnutls_transport_set_errno) [!WINDOWNT]:
Remove; unused.
* w32.c (init_environment): Use faccessat rather than
check_existing, partly for consistency with the rest of the code
in this file, partly so that check_existing can be static.

10 years ago* lisp/skeleton.el (skeleton-newline): Remove.
Stefan Monnier [Thu, 17 Oct 2013 04:51:05 +0000 (00:51 -0400)]
* lisp/skeleton.el (skeleton-newline): Remove.
(skeleton-internal-1): Use (insert "\n") instead.

10 years ago* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Complete var names for
Stefan Monnier [Thu, 17 Oct 2013 04:49:42 +0000 (00:49 -0400)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Complete var names for
let-bindings.

10 years ago* lisp/progmodes/sh-script.el (sh-find-prev-matching): Disable SMIE's
Stefan Monnier [Thu, 17 Oct 2013 03:56:51 +0000 (23:56 -0400)]
* lisp/progmodes/sh-script.el (sh-find-prev-matching): Disable SMIE's
forward-sexp-function while we redo its job.

Fixes: debbugs:15613
10 years ago* calc/calc-comb.el (math-prime-test): Don't assume large integers are
Jay Belanger [Thu, 17 Oct 2013 03:37:05 +0000 (22:37 -0500)]
* calc/calc-comb.el (math-prime-test): Don't assume large integers are
  represented by lists.

* doc/misc/calc.el (Data Type Formats): Don't specify the size at
  which integers begin to be represented by lists.

10 years agoMake VALMASK visible to GDB even if clang is used.
Paul Eggert [Thu, 17 Oct 2013 03:08:59 +0000 (20:08 -0700)]
Make VALMASK visible to GDB even if clang is used.

* emacs.c (MAIN_PROGRAM): New macro.
* lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END): New macros.
(ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG, VALMASK): Use them.

Fixes: debbugs:15574
10 years agobool vector int width fixes
Paul Eggert [Thu, 17 Oct 2013 01:02:32 +0000 (18:02 -0700)]
bool vector int width fixes

* data.c (bool_vector_spare_mask, Fbool_vector_count_matches)
(Fbool_vector_count_matches_at):
Use EMACS_INT, not ptrdiff_t, to record bit counts, as a bit count
can exceed PTRDIFF_MAX, at least in theory.
(Fbool_vector_count_matches_at):
Use int, not ptrdiff_t, to record a value that can't exceed INT_MAX.

10 years ago* lisp/tmm.el (tmm--history): New dynamic variable.
Glenn Morris [Wed, 16 Oct 2013 18:23:15 +0000 (14:23 -0400)]
* lisp/tmm.el (tmm--history): New dynamic variable.
(tmm-prompt): Use tmm--history in place of `history'.

Fixes: debbugs:15623
10 years ago* process.h (conv_sockaddr_to_lisp): New decl, for newly-extern func.
Paul Eggert [Wed, 16 Oct 2013 17:36:04 +0000 (10:36 -0700)]
* process.h (conv_sockaddr_to_lisp): New decl, for newly-extern func.

(struct sockaddr): Add forward decl, for platforms that lack it.

10 years ago* nsselect.m (ns_string_from_pasteboard): Remove Fquit, just return
Jan Djärv [Wed, 16 Oct 2013 16:55:45 +0000 (18:55 +0200)]
* nsselect.m (ns_string_from_pasteboard): Remove Fquit, just return
Qnil.

Fixes: debbugs:15628
10 years agoImplement network-interface-* functions for MS-Windows (bug #15610).
Eli Zaretskii [Wed, 16 Oct 2013 15:44:02 +0000 (18:44 +0300)]
Implement network-interface-* functions for MS-Windows (bug #15610).

 src/w32.c (network_interface_get_info, network_interface_list)
 (network_interface_info): New functions.
 (GetAdaptersInfo_Proc): New typedef.
 (get_adapters_info): New wrapper function.
 (globals_of_w32): Initialize g_b_init_get_adapters_info.
 src/process.h (network_interface_list, network_interface_info): New
 prototypes.
 src/process.c (conv_sockaddr_to_lisp): Now externally-visible.
 (Fnetwork_interface_list, Fnetwork_interface_info): Define for
 all systems.  Return non-nil for systems that HAVE_NET_IF_H and
 for WINDOWSNT.  Doc fix.
 (syms_of_process): Defsubr Snetwork_interface_list and
 Snetwork_interface_info unconditionally.

10 years agoFix bug #15629 with GUI menus on NS.
Eli Zaretskii [Wed, 16 Oct 2013 15:07:36 +0000 (18:07 +0300)]
Fix bug #15629 with GUI menus on NS.

 src/menu.c (have_boxes): Fix redundant simulation of radio buttons
 in NS GUI sessions.

10 years agoAdd an index for explicit selective display.
Xue Fuqiao [Wed, 16 Oct 2013 13:46:01 +0000 (21:46 +0800)]
Add an index for explicit selective display.

* doc/lispref/display.texi (Selective Display): Add an index for
explicit selective display.

10 years ago* net/tramp-smb.el (tramp-smb-acl-program): New customer option.
Michael Albinus [Wed, 16 Oct 2013 13:16:53 +0000 (15:16 +0200)]
* net/tramp-smb.el (tramp-smb-acl-program): New customer option.
(tramp-smb-errors): Add error messages.
(tramp-smb-actions-with-acl): New defconst.
(tramp-smb-file-name-handler-alist) [set-file-acl]: Add handler.
(tramp-smb-action-with-acl, tramp-smb-handle-set-file-acl): New defuns.
(tramp-smb-handle-file-acl): Rewrite, using "smbcacls".
(tramp-smb-handle-file-attributes): Simplify test for "stat" capability.
(tramp-smb-get-stat-capability): Fix tests.

10 years ago* fns.c (Fstring_as_unibyte): Fix last change.
Dmitry Antipov [Wed, 16 Oct 2013 09:56:36 +0000 (13:56 +0400)]
* fns.c (Fstring_as_unibyte): Fix last change.

10 years ago* fns.c (Fstring_as_unibyte): Use xlispstrdup.
Dmitry Antipov [Wed, 16 Oct 2013 09:30:30 +0000 (13:30 +0400)]
* fns.c (Fstring_as_unibyte): Use xlispstrdup.

10 years ago* lisp/progmodes/subword.el (subword-capitalize): Fix Stefan's mess.
Dima Kogan [Wed, 16 Oct 2013 03:02:40 +0000 (23:02 -0400)]
* lisp/progmodes/subword.el (subword-capitalize): Fix Stefan's mess.

Fixes: debbugs:15580
10 years ago* ansi-color.el (ansi-color-drop-regexp): Add 1J, 1K, 2K.
Glenn Morris [Wed, 16 Oct 2013 01:38:12 +0000 (18:38 -0700)]
* ansi-color.el (ansi-color-drop-regexp): Add 1J, 1K, 2K.

Fixes: debbugs:15617
10 years ago* files.el (hack-local-variables): Warn about misplaced lexical-binding.
Glenn Morris [Wed, 16 Oct 2013 01:33:16 +0000 (18:33 -0700)]
* files.el (hack-local-variables): Warn about misplaced lexical-binding.
(hack-local-variables--warned-lexical): New.

Fixes: debbugs:15616
10 years ago* net/eww.el (eww-render): Always set eww-current-url, and update header line.
Glenn Morris [Wed, 16 Oct 2013 01:30:55 +0000 (18:30 -0700)]
* net/eww.el (eww-render): Always set eww-current-url, and update header line.
(eww-display-html): ... Rather than just doing it here.

Fixes: debbugs:15622
10 years ago* etc/NEWS: improve wording.
Dmitry Gutov [Wed, 16 Oct 2013 00:21:06 +0000 (04:21 +0400)]
* etc/NEWS: improve wording.

10 years ago* etc/NEWS: Mention the homepage-related changes in package.el.
Dmitry Gutov [Wed, 16 Oct 2013 00:17:38 +0000 (04:17 +0400)]
* etc/NEWS: Mention the homepage-related changes in package.el.

10 years ago* print.c (print_object): Print " ..." when truncating bool vectors.
Paul Eggert [Tue, 15 Oct 2013 21:03:00 +0000 (14:03 -0700)]
* print.c (print_object): Print " ..." when truncating bool vectors.

10 years agoSupport mouse wheel in TTY menus.
Eli Zaretskii [Tue, 15 Oct 2013 18:40:22 +0000 (21:40 +0300)]
Support mouse wheel in TTY menus.

 lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY
 menu navigations commands.

10 years agoSupport mouse wheel on MS-Windows text-mode console.
Eli Zaretskii [Tue, 15 Oct 2013 18:38:26 +0000 (21:38 +0300)]
Support mouse wheel on MS-Windows text-mode console.

 src/w32inevt.c (do_mouse_event): Support mouse wheel and all the 5
 standard mouse buttons.
 src/termhooks.h (struct input_event): Remove incorrect commentary.

10 years agoDisallow bool vector operations on mixed-length operands.
Paul Eggert [Tue, 15 Oct 2013 16:38:36 +0000 (09:38 -0700)]
Disallow bool vector operations on mixed-length operands.

The old behavior left garbage in the result vector sometimes,
and didn't seem to be useful.
* data.c (Qwrong_length_argument): New static var.
(wrong_length_argument): New function.
(bool_vector_binop_driver): Check that args agree in length.

10 years ago* keyboard.c, keyboard.h (all_kboards): Now static.
Paul Eggert [Tue, 15 Oct 2013 13:57:37 +0000 (06:57 -0700)]
* keyboard.c, keyboard.h (all_kboards): Now static.

10 years agoAdd usage note of buffer-invisibility-spec.
Xue Fuqiao [Tue, 15 Oct 2013 12:47:57 +0000 (20:47 +0800)]
Add usage note of buffer-invisibility-spec.

* src/buffer.c (syms_of_buffer) <buffer-invisibility-spec>: Add usage
note from the lispref.

10 years ago* doc/lispref/display.texi (Warning Basics): Mention the ‘*Warnings*’ buffer.
Xue Fuqiao [Tue, 15 Oct 2013 08:43:56 +0000 (16:43 +0800)]
* doc/lispref/display.texi (Warning Basics): Mention the ‘*Warnings*’ buffer.

10 years agoSpace after comma in ChangeLogs.
Paul Eggert [Tue, 15 Oct 2013 06:36:43 +0000 (23:36 -0700)]
Space after comma in ChangeLogs.

10 years ago* nsterm.h (struct ns_display_info): Remove set-but-unused
Dmitry Antipov [Tue, 15 Oct 2013 02:45:03 +0000 (06:45 +0400)]
* nsterm.h (struct ns_display_info): Remove set-but-unused
member image_cache (image caches are per-terminal anyway).
(FRAME_X_IMAGE_CACHE): Remove.
* nsterm.m (ns_initialize_display_info): Adjust user.

10 years ago* indent/ruby.rb: Fix an example, remove wrong example, and add two more.
Dmitry Gutov [Tue, 15 Oct 2013 01:21:22 +0000 (04:21 +0300)]
* indent/ruby.rb: Fix an example, remove wrong example, and add two more.

10 years ago* doc/misc/cl.texi (Argument Lists): Add indexes for &key and &aux.
Xue Fuqiao [Mon, 14 Oct 2013 22:25:14 +0000 (06:25 +0800)]
* doc/misc/cl.texi (Argument Lists): Add indexes for &key and &aux.

10 years agoComment
Xue Fuqiao [Mon, 14 Oct 2013 22:20:52 +0000 (06:20 +0800)]
Comment

10 years ago* lisp/progmodes/subword.el (subword-capitalize): Be careful when
Dima Kogan [Mon, 14 Oct 2013 19:20:29 +0000 (15:20 -0400)]
* lisp/progmodes/subword.el (subword-capitalize): Be careful when
the search for [[:alpha:]] fails.

Fixes: debbugs:15580
10 years agoAttempt to fix time_t related problems with MinGW 4.0 runtime.
Eli Zaretskii [Mon, 14 Oct 2013 16:23:10 +0000 (19:23 +0300)]
Attempt to fix time_t related problems with MinGW 4.0 runtime.

 nt/inc/mingw_time.h: New file.
 nt/inc/ms-w32.h: Include mingw_time.h instead of doing its job.

 src/w32proc.c: Include mingw_time.h.
 src/w32.c: Include mingw_time.h.

10 years agoImplement scrolling of TTY menus when the screen is too short.
Eli Zaretskii [Mon, 14 Oct 2013 15:37:12 +0000 (18:37 +0300)]
Implement scrolling of TTY menus when the screen is too short.

 src/term.c (tty_menu_display): Accept an additional argument, the
 menu item from which to start displaying the menu.  Account for
 the value of Y when limiting the menu to the number of available
 screen lines.
 (mi_result): New enumeration.
 (read_menu_input): Return enumerated value.  When the y coordinate
 hits min_y or max_y, return scroll indication instead of wrapping
 around the menu.
 (tty_menu_activate): Handle the scrolling indications from
 read_menu_input.  Compute the first menu item to display and pass
 it to tty_menu_display.

 lisp/menu-bar.el (tty-menu-navigation-map): Bind shifted mouse clicks
 to commands that scroll the menu.

10 years ago* termhooks.h (FRAME_MUST_WRITE_SPACES, FRAME_LINE_INS_DEL_OK)
Dmitry Antipov [Mon, 14 Oct 2013 12:19:21 +0000 (16:19 +0400)]
* termhooks.h (FRAME_MUST_WRITE_SPACES, FRAME_LINE_INS_DEL_OK)
(FRAME_CHAR_INS_DEL_OK, FRAME_SCROLL_REGION_OK)
(FRAME_SCROLL_REGION_COST, FRAME_MEMORY_BELOW_FRAME):
Adjust to match the change described below.
(struct terminal): Move must_write_spaces, line_ins_del_ok,
char_ins_del_ok, scroll_region_ok, scroll_region_cost and
memory_below_frame members to...
* termchar.h (struct tty_display_info): ...here because they're
relevant only on TTYs.  Prefer unsigned bitfield where appropriate.
* term.c (init_tty):
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal): Adjust users.
* dispnew.c (line_hash_code, line_draw_cost): Pass frame arg
to filter out non-TTY frames.  Adjust comment.
(scrolling): Adjust user.  Prefer eassert for debugging check.

10 years ago* xfaces.c (PT_PER_INCH): Remove unused macro.
Dmitry Antipov [Mon, 14 Oct 2013 10:55:24 +0000 (14:55 +0400)]
* xfaces.c (PT_PER_INCH): Remove unused macro.
* termhooks.h (struct terminal): Remove set-but-unused
member fast_clear_end_of_line.
(FRAME_FAST_CLEAR_END_OF_LINE): Remove.
* nsterm.m (ns_create_terminal):
* term.c (init_tty):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal): Adjust users.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 14 Oct 2013 10:17:44 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* lisp.h (bool_vector_size): New function.
Paul Eggert [Mon, 14 Oct 2013 07:12:49 +0000 (00:12 -0700)]
* lisp.h (bool_vector_size): New function.

All uses of XBOOL_VECTOR (x)->size changed to bool_vector_size (x).
* data.c (bool_vector_spare_mask, bool_vector_binop_driver)
(Fbool_vector_not, Fbool_vector_count_matches_at):
Remove uses of 'eassume' that should no longer be needed,
because they are subsumed by the 'eassume' in bool_vector_size.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Handle
Dmitry Gutov [Mon, 14 Oct 2013 01:51:20 +0000 (04:51 +0300)]
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Handle
methods ending with `?' and `!'.

* test/indent/ruby.rb: More examples for bug#15594, both failing and
now passing.

10 years ago* progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from
Akinori MUSHA [Mon, 14 Oct 2013 00:23:29 +0000 (03:23 +0300)]
* progmodes/ruby-mode.el (ruby-encoding-map): Add a mapping from
`japanese-cp932' to `cp932' to fix the problem where saving a
source file written in Shift_JIS twice would end up having
`coding: japanese-cp932' which Ruby could not recognize.
(ruby-mode-set-encoding): Add support for encodings mapped to nil
in `ruby-encoding-map'.
(ruby-encoding-map): Map `us-ascii' to nil by default, meaning it
doesn't need to be explicitly declared in magic comment.
(ruby-encoding-map): Add type declaration for better customize UI.

10 years ago* lisp/progmodes/sh-script.el (sh-mark-line, sh-learn-buffer-indent):
Glenn Morris [Sun, 13 Oct 2013 23:21:56 +0000 (16:21 -0700)]
* lisp/progmodes/sh-script.el (sh-mark-line, sh-learn-buffer-indent):
Occur buffers are read-only.  http://bugs.debian.org/720775

10 years ago* configure.ac [alpha]: Explicit error in non-ELF case.
Glenn Morris [Sun, 13 Oct 2013 23:01:20 +0000 (16:01 -0700)]
* configure.ac [alpha]: Explicit error in non-ELF case.

* doc/emacs/ack.texi (Acknowledgments): Comment out old alpha stuff.

* lisp/emacs-lisp/authors.el (authors-fixed-entries):
Comment out old alpha stuff.

Fixes: debbugs:15601
10 years ago* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
Dmitry Gutov [Sun, 13 Oct 2013 21:35:31 +0000 (00:35 +0300)]
* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
to `after-save-hook' instead of `before-save-hook'.
(ruby-mode-set-encoding): Use the value of coding system used to
write the file.  Call `basic-save-buffer-1' after modifying the
buffer.

10 years agoFix indentation/fontification of Java enum with "implements"/generic.
Alan Mackenzie [Sun, 13 Oct 2013 19:54:46 +0000 (19:54 +0000)]
Fix indentation/fontification of Java enum with "implements"/generic.

* progmodes/cc-engine.el (c-backward-over-enum-header): Extracted from
the three other places and enhanced to handle generics.
(c-inside-bracelist-p): Uses new function above.
* progmodes/cc-fonts.el (c-font-lock-declarations): Uses new function
above.
(c-font-lock-enum-tail): Uses new function above.

10 years agoNEWS tweak.
Xue Fuqiao [Sun, 13 Oct 2013 12:14:28 +0000 (20:14 +0800)]
NEWS tweak.

10 years agomerge trunk
Kenichi Handa [Sun, 13 Oct 2013 11:59:25 +0000 (20:59 +0900)]
merge trunk

10 years agomerge trunk
Kenichi Handa [Sun, 13 Oct 2013 11:55:00 +0000 (20:55 +0900)]
merge trunk

10 years agoRemove unnecessary @refill.
Xue Fuqiao [Sun, 13 Oct 2013 10:22:34 +0000 (18:22 +0800)]
Remove unnecessary @refill.

10 years agoAuto-commit of generated files.
Glenn Morris [Sun, 13 Oct 2013 10:19:27 +0000 (06:19 -0400)]
Auto-commit of generated files.

10 years agointernational/mule-cmds.el (select-safe-coding-system): Remove a superfluous conditio...
Kenichi Handa [Sun, 13 Oct 2013 09:25:29 +0000 (18:25 +0900)]
international/mule-cmds.el (select-safe-coding-system): Remove a superfluous condition in chekcing whether a coding system is safe or not.

10 years ago* lisp/replace.el (how-many): Fix rstart and !rend case.
Oleh Krehel [Sun, 13 Oct 2013 05:30:23 +0000 (22:30 -0700)]
* lisp/replace.el (how-many): Fix rstart and !rend case.

Fixes: debbugs:15589
10 years ago* lisp/progmodes/sql.el (sql-add-product): Fix paren typo.
Andreas Politz [Sun, 13 Oct 2013 05:23:42 +0000 (22:23 -0700)]
* lisp/progmodes/sql.el (sql-add-product): Fix paren typo.

Fixes: debbugs:15435
10 years ago* menu-bar.el (menu-bar-update-buffers): Unify Buffers menu prompt string.
Glenn Morris [Sun, 13 Oct 2013 05:20:15 +0000 (22:20 -0700)]
* menu-bar.el (menu-bar-update-buffers): Unify Buffers menu prompt string.

Fixes: debbugs:15576
10 years agoDoc fixes for text-scale-adjust
Glenn Morris [Sun, 13 Oct 2013 05:17:42 +0000 (22:17 -0700)]
Doc fixes for text-scale-adjust

* lisp/face-remap.el (text-scale-adjust): Doc fix.

* doc/emacs/display.texi (Text Scale): Update text-scale-adjust details.

Fixes: debbugs:15434
10 years agoUse accented form of some names
Glenn Morris [Sun, 13 Oct 2013 00:31:19 +0000 (17:31 -0700)]
Use accented form of some names

* doc/emacs/ack.texi (Acknowledgments):
* doc/emacs/emacs.texi (Acknowledgments):
* doc/lispref/intro.texi (Acknowledgments): Use accented form of some names.

* lisp/emacs-lisp/authors.el (authors-aliases, authors-ignored-files):
Add some entries.
(authors-fixed-entries): Use accented form of name.

10 years agoChangeLog fixes prompted by M-x authors
Glenn Morris [Sun, 13 Oct 2013 00:28:30 +0000 (17:28 -0700)]
ChangeLog fixes prompted by M-x authors

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free
Stefan Monnier [Sat, 12 Oct 2013 20:40:50 +0000 (16:40 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for paren-free
method calls (bug#bug#15594).
(ruby-smie--args-separator-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Use it to
recognize paren-free method calls.

10 years agoMerge from gnulib.
Paul Eggert [Sat, 12 Oct 2013 20:00:38 +0000 (13:00 -0700)]
Merge from gnulib.

This incorporates:
2013-10-10 strtoumax: port to Solaris 8
2013-10-09 strtoimax, strtoumax: port to HP-UX 11.11
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/inttypes.in.h, lib/strtoimax.c, m4/inttypes.m4, m4/strtoimax.m4:
* m4/strtoumax.m4:
Update from gnulib.

10 years agoMake the MinGW32 build compatible with MinGW runtime 4.x.
Eli Zaretskii [Sat, 12 Oct 2013 13:11:14 +0000 (16:11 +0300)]
Make the MinGW32 build compatible with MinGW runtime 4.x.

 nt/inc/dirent.h (struct dirent) [__MINGW_MAJOR_VERSION >= 4]: Make
 the layout of 'struct dirent' be compatible with MinGW32 runtime
 versions 4.0 and later.
 nt/inc/ms-w32.h (__MINGW_MAJOR_VERSION, __MINGW_MINOR_VERSION)
 (__MINGW_PATCHLEVEL) [!__MINGW64_VERSION_MAJOR]: Define, if not
 defined, but not for MinGW64.
 (_USE_32BIT_TIME_T) [__MINGW64_VERSION_MAJOR]: Define, to force
 use of 32-bit time_t type.

10 years agoAuto-commit of generated files.
Glenn Morris [Sat, 12 Oct 2013 10:17:41 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years agoUpdate nt/INSTALL with respect to giflib.
Eli Zaretskii [Sat, 12 Oct 2013 09:00:21 +0000 (12:00 +0300)]
Update nt/INSTALL with respect to giflib.

10 years agoAvoid compilation warnings in image.c.
Eli Zaretskii [Sat, 12 Oct 2013 08:48:31 +0000 (11:48 +0300)]
Avoid compilation warnings in image.c.

 src/image.c (GIFLIB_MAJOR, GIFLIB_MINOR, GIFLIB_RELEASE): Move back
 after inclusion of gif_lib.h, thus fixing compiler warnings caused
 by 2013-10-10T19:15:33Z!eggert@cs.ucla.edu.

10 years ago* lisp/isearch.el (isearch-pre-command-hook): Don't build in knowledge about
Stefan Monnier [Sat, 12 Oct 2013 01:10:25 +0000 (21:10 -0400)]
* lisp/isearch.el (isearch-pre-command-hook): Don't build in knowledge about
internals of universal-argument.

10 years ago* test/indent/ruby.rb: Add two more cases.
Dmitry Gutov [Fri, 11 Oct 2013 20:45:14 +0000 (23:45 +0300)]
* test/indent/ruby.rb: Add two more cases.

10 years ago* configure.ac (LIBGNUTLS): Don't set LIBGNUTLS_* back to the empty
Stefan Monnier [Fri, 11 Oct 2013 18:29:18 +0000 (14:29 -0400)]
* configure.ac (LIBGNUTLS): Don't set LIBGNUTLS_* back to the empty
string when gnutls2 is installed but gnutls3 is not.

10 years agoFix popping down a menu by a second mouse click.
Eli Zaretskii [Fri, 11 Oct 2013 18:20:08 +0000 (21:20 +0300)]
Fix popping down a menu by a second mouse click.

 lisp/menu-bar.el (tty-menu-navigation-map): Bind all menu-bar
 sequences to tty-menu-exit -- this pops down a dropped menu on
 second mouse click on the menu bar.

10 years agoMake the same key that opens TTY menus also exit the menu.
Eli Zaretskii [Fri, 11 Oct 2013 17:44:41 +0000 (20:44 +0300)]
Make the same key that opens TTY menus also exit the menu.

 lisp/menu-bar.el (tty-menu-navigation-map): Remap F10 to tty-menu-exit.

10 years agoSupport frame dimension changes while TTY menus are displayed.
Eli Zaretskii [Fri, 11 Oct 2013 15:42:06 +0000 (18:42 +0300)]
Support frame dimension changes while TTY menus are displayed.

 src/xdisp.c (deep_copy_glyph_row): Handle the case that FROM and TO
 have different dimensions.
 src/dispnew.c (fill_up_frame_row_with_spaces): Now has external
 visibility.
 src/dispextern.h (fill_up_frame_row_with_spaces): Add prototype.

Fixes: debbugs:15575
10 years ago* term.c (tty_menu_show): Never return with unbalanced
Dmitry Antipov [Fri, 11 Oct 2013 15:30:21 +0000 (19:30 +0400)]
* term.c (tty_menu_show): Never return with unbalanced
specpdl.  Use eassert for debugging check.  Adjust style.

10 years agoMenu item selection on TTYs is now cyclical.
Eli Zaretskii [Fri, 11 Oct 2013 14:42:05 +0000 (17:42 +0300)]
Menu item selection on TTYs is now cyclical.

 src/term.c (read_menu_input): Make selection of menu items
 cyclical.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
 (tty_menu_activate): Fix off-by-one error when computing max_y.

10 years agoSupport GnuTLS v3 and set up its audit logging properly.
Ted Zlatanov [Fri, 11 Oct 2013 13:47:35 +0000 (09:47 -0400)]
Support GnuTLS v3 and set up its audit logging properly.

* configure.ac: Define HAVE_GNUTLS3 if GnuTLS v3 is found.

* src/gnutls.c (gnutls_audit_log_function): Add function for GnuTLS
audit logging (only used with GnuTLS 3.x) and enable it.

10 years ago* dispnew.c (redraw_frame): Remove useless #ifdef because
Dmitry Antipov [Fri, 11 Oct 2013 11:11:28 +0000 (15:11 +0400)]
* dispnew.c (redraw_frame): Remove useless #ifdef because
FRAME_MSDOS_P is a compile-time zero everywhere except MS-DOS.
Also, move TTY fflush to...
* term.c (tty_update_end): ...this function.

10 years agoFix bug #15575 with crashes in TTY menus.
Eli Zaretskii [Fri, 11 Oct 2013 11:01:48 +0000 (14:01 +0300)]
Fix bug #15575 with crashes in TTY menus.

 src/xdisp.c (display_tty_menu_item): Make sure we never write beyond
 the end of the frame's glyph matrix.
 src/term.c (tty_menu_display): Don't move cursor while overwriting
 frame's glyphs with menu items.  Limit the number of items
 displayed to what can be shown on the available screen lines,
 excluding the echo area.
 (tty_menu_activate): Limit the Y coordinate allowed by
 read_menu_input to the last screen line used for menu display.

10 years ago* lisp.h (eassume): New macro.
Paul Eggert [Fri, 11 Oct 2013 06:32:29 +0000 (23:32 -0700)]
* lisp.h (eassume): New macro.

Also, include <verify.h>, for 'assume'.
* alloc.c (bool_vector_payload_bytes, Fmake_bool_vector)
(vroundup, vector_nbytes):
* data.c (bool_vector_spare_mask, bool_vector_binop_driver)
(Fbool_vector_not, Fbool_vector_count_matches)
(Fbool_vector_count_matches_at):
Use eassume, not eassert.
* casetab.c (set_identity, shuffle):
* composite.c (composition_gstring_put_cache):
* dispnew.c (update_frame_1):
* ftfont.c (ftfont_shape_by_flt):
* image.c (gif_load):
* intervals.c (offset_intervals):
* macfont.m (macfont_shape):
Remove calls to 'assume' that are no longer needed, because
--enable-gcc-warnings no longer generates bogus warnings
when these calls are removed.

10 years ago* xdisp.c (deep_copy_glyph_row): Remove unused locals.
Dmitry Antipov [Fri, 11 Oct 2013 03:55:26 +0000 (07:55 +0400)]
* xdisp.c (deep_copy_glyph_row): Remove unused locals.

10 years ago* lisp/progmodes/sh-script.el: Provide simpl(e|istic) completion.
Stefan Monnier [Fri, 11 Oct 2013 03:28:31 +0000 (23:28 -0400)]
* lisp/progmodes/sh-script.el: Provide simpl(e|istic) completion.
(explicit-shell-file-name): Declare.
(sh--vars-before-point, sh--cmd-completion-table): New functions.
(sh-completion-at-point-function): New function.
(sh-mode): Use it.
(sh-smie--keyword-p): Remove unused argument.
(sh-smie-sh-backward-token, sh-smie-rc-backward-token): Remove unused
vars.
(sh-set-shell): Always setup SMIE, even if we use the
old indentation code.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Split the
Dmitry Gutov [Fri, 11 Oct 2013 02:11:37 +0000 (05:11 +0300)]
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Split the
cases of ? and =.
(ruby-smie-rules): Simplify the "do" rule.  The cases when the
predicate would return nil are almost non-existent.
(ruby-smie--redundant-do-p): Include "until" and "for" statements.

10 years ago* lisp/emacs-lisp/smie.el (smie--matching-block-data): Invalidate the
Dmitry Gutov [Fri, 11 Oct 2013 00:45:03 +0000 (03:45 +0300)]
* lisp/emacs-lisp/smie.el (smie--matching-block-data): Invalidate the
cache also after commands that modify the buffer but don't move
point.

10 years ago* test/automated/ruby-mode-tests.el (ruby-with-temp-buffer): Move before
Stefan Monnier [Thu, 10 Oct 2013 21:43:47 +0000 (17:43 -0400)]
* test/automated/ruby-mode-tests.el (ruby-with-temp-buffer): Move before
first use.
(ruby-should-indent): Use indent-according-to-mode.
(ruby-deftest-move-to-block): Use `declare'.

10 years ago* src/fileio.c (Fsubstitute_in_file_name): Use substitute-env-in-file-name.
Stefan Monnier [Thu, 10 Oct 2013 21:42:38 +0000 (17:42 -0400)]
* src/fileio.c (Fsubstitute_in_file_name): Use substitute-env-in-file-name.
(Qsubstitute_env_in_file_name): New var.
(syms_of_fileio): Define it.
* lisp/env.el (substitute-env-in-file-name): New function.
(substitute-env-vars): Extend the meaning of the optional arg.

10 years agoAttempt to fix crashes per bug #15575.
Eli Zaretskii [Thu, 10 Oct 2013 19:26:13 +0000 (22:26 +0300)]
Attempt to fix crashes per bug #15575.

 src/xdisp.c (deep_copy_glyph_row): Assert that the 'used' counts of
 FROM and TO are identical.  Copy only the glyphs of TEXT_AREA.
 src/term.c (save_and_enable_current_matrix): Don't allocate and
 don't save margin areas.
 (restore_desired_matrix): Don't restore margin areas.
 (free_saved_screen): Don't free margin areas.

10 years ago* image.c: Pacify --enable-gcc-warnings.
Paul Eggert [Thu, 10 Oct 2013 19:15:33 +0000 (12:15 -0700)]
* image.c: Pacify --enable-gcc-warnings.

(GIFLIB_MAJOR, GIFLIB_MINOR, GIFLIB_RELEASE, fn_GifErrorString):
#define only if used.

10 years agoMS-Windows follow-up to 2013-10-10T01:03:11Z!rgm@gnu.org: support giflib 5.x.
Eli Zaretskii [Thu, 10 Oct 2013 15:30:21 +0000 (18:30 +0300)]
MS-Windows follow-up to 2013-10-10T01:03:11Z!rgm@gnu.org: support giflib 5.x.

 src/image.c (GIFLIB_MAJOR): Define to 4 if undefined.
 (GIFLIB_MINOR, GIFLIB_RELEASE): Define to zero if undefined.
 (GifErrorString) [GIFLIB_MAJOR >= 5]: Define a function pointer.
 (gif_load): For giflib v5.x and later, display the error message
 produced by giflib when its functions fail.
 (syms_of_image) <Qlibgif_version> [HAVE_NTGUI]: New DEFSYM.

 lisp/term/w32-win.el (dynamic-library-alist): Define separate lists
 of GIF DLLs for versions before and after 5.0.0 of giflib.

Fixes: debbugs:15531
10 years ago* vc/vc.el (vc-diff-build-argument-list-internal): If the file is
João Távora [Thu, 10 Oct 2013 14:59:09 +0000 (10:59 -0400)]
* vc/vc.el (vc-diff-build-argument-list-internal): If the file is
not locked, use last revision and current source as
defaults.  (Bug#15569)

10 years ago* lisp/menu-bar.el (menu-bar-open): Don't use popup-menu if
Masatake YAMATO [Thu, 10 Oct 2013 10:47:11 +0000 (19:47 +0900)]
* lisp/menu-bar.el (menu-bar-open): Don't use popup-menu if
menu-bar is hidden.

10 years agoAuto-commit of generated files.
Glenn Morris [Thu, 10 Oct 2013 10:17:41 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* keyboard.c (last_event_timestamp): Remove. For X selection and
Dmitry Antipov [Thu, 10 Oct 2013 10:06:17 +0000 (14:06 +0400)]
* keyboard.c (last_event_timestamp): Remove.  For X selection and
GTK popup menus, it may be obtained from per-frame X display info.
(kbd_buffer_store_event_hold, kbd_buffer_get_event)
(process_special_events): Adjust users.
* keyboard.h (last_event_timestamp): Remove declaration.
* xmenu.c (xmenu_show, create_and_show_popup_menu): Lost last arg.
Use FRAME_DISPLAY_INFO (f)->last_user_time for gtk_menu_popup.
* menu.h (xmenu_show): Adjust prototype.
* menu.c (Fx_popup_menu): Adjust user.
* xselect.c (x_own_selection, x_get_foreign_selection)
(Fx_disown_selection_internal): Use dpyinfo->last_user_time.

10 years agoFix doc-string of pop-to-buffer-same-window. (Bug#15492)
Martin Rudalics [Thu, 10 Oct 2013 07:57:28 +0000 (09:57 +0200)]
Fix doc-string of pop-to-buffer-same-window.  (Bug#15492)

* window.el (pop-to-buffer-same-window): Fix doc-string.
(Bug#15492)

10 years ago* keyboard.c (init_kboard): Now static. Add arg
Dmitry Antipov [Thu, 10 Oct 2013 06:48:42 +0000 (10:48 +0400)]
* keyboard.c (init_kboard): Now static.  Add arg
to denote window system.  Adjust comment.
(init_keyboard): Adjust user.
(allocate_kboard): New function.
(syms_of_keyboard):
* nsterm.m (ns_term_init):
* term.c (init_tty):
* w32term.c (w32_create_terminal):
* xterm.c (x_term_init): Use it.
* keyboard.h (init_kboard): Remove prototype.
(allocate_kboard): Add prototype.

10 years ago* lisp/menu-bar.el (tty-menu-navigation-map): Reduce redundancy.
Stefan Monnier [Thu, 10 Oct 2013 02:33:35 +0000 (22:33 -0400)]
* lisp/menu-bar.el (tty-menu-navigation-map): Reduce redundancy.

10 years ago* lib-src/make-docfile.c (search_lisp_doc_at_eol): Use int rather than char
Glenn Morris [Thu, 10 Oct 2013 01:29:30 +0000 (21:29 -0400)]
* lib-src/make-docfile.c (search_lisp_doc_at_eol): Use int rather than char
with getc.

Fixes: debbugs:15481
10 years ago* icalendar.el (icalendar-import-file): Fix interactive spec (tiny change)
Andrei Chitu [Thu, 10 Oct 2013 01:18:01 +0000 (21:18 -0400)]
* icalendar.el (icalendar-import-file): Fix interactive spec (tiny change)

Fixes: debbugs:15482
10 years ago* lisp/desktop.el (desktop-save): Default to saving in .emacs.d,
Glenn Morris [Thu, 10 Oct 2013 01:03:11 +0000 (21:03 -0400)]
* lisp/desktop.el (desktop-save): Default to saving in .emacs.d,
since PWD is no longer in desktop-path by default.

Fixes: debbugs:15319
10 years agoHandle giflib 5 changes (tiny change)
Barry Fishman [Thu, 10 Oct 2013 00:37:44 +0000 (20:37 -0400)]
Handle giflib 5 changes (tiny change)

* configure.ac: Update for giflib 5.

* src/image.c (GIFLIB_MAJOR): Ensure it's defined.
(DGifOpen, DGifOpenFileName): Handle giflib 5 syntax.  (Bug#15531)

10 years ago* lisp/menu-bar.el (menu-bar-options-menu): Remove text-mode auto-fill,
Glenn Morris [Thu, 10 Oct 2013 00:32:36 +0000 (20:32 -0400)]
* lisp/menu-bar.el (menu-bar-options-menu): Remove text-mode auto-fill,
now that text mode has a menu with the same entry.
(menu-bar-text-mode-auto-fill): Remove now unused func.

* lisp/textmodes/text-mode.el (text-mode-map):
Use auto-fill help text from menu-bar.el.