bpt/emacs.git
10 years agoFix menu drop by mouse click; new primitive menu-bar-menu-at-x-y.
Eli Zaretskii [Sat, 5 Oct 2013 15:42:17 +0000 (18:42 +0300)]
Fix menu drop by mouse click; new primitive menu-bar-menu-at-x-y.

10 years agoFix hiding cursor when displaying menu on a TTY.
Eli Zaretskii [Thu, 3 Oct 2013 20:13:15 +0000 (23:13 +0300)]
Fix hiding cursor when displaying menu on a TTY.

10 years agoMark Lisp menu changes as documented in NEWS.
Eli Zaretskii [Thu, 3 Oct 2013 19:11:21 +0000 (22:11 +0300)]
Mark Lisp menu changes as documented in NEWS.

10 years agoMore updates for documentation.
Eli Zaretskii [Thu, 3 Oct 2013 19:10:34 +0000 (22:10 +0300)]
More updates for documentation.

10 years agoImprove NEWS.
Eli Zaretskii [Wed, 2 Oct 2013 19:47:33 +0000 (22:47 +0300)]
Improve NEWS.

10 years agoFix display-mouse-p and display-popup-menus-p for TTYs; menus in Custom work.
Eli Zaretskii [Wed, 2 Oct 2013 18:44:40 +0000 (21:44 +0300)]
Fix display-mouse-p and display-popup-menus-p for TTYs; menus in Custom work.

10 years agoFix documentation.
Eli Zaretskii [Wed, 2 Oct 2013 17:40:29 +0000 (20:40 +0300)]
Fix documentation.

10 years agoNEWS updated.
Eli Zaretskii [Wed, 2 Oct 2013 17:40:08 +0000 (20:40 +0300)]
NEWS updated.

10 years agoDocumentation updates.
Eli Zaretskii [Wed, 2 Oct 2013 17:27:52 +0000 (20:27 +0300)]
Documentation updates.

10 years agoFix message-box and avoid compilation warnings.
Eli Zaretskii [Mon, 30 Sep 2013 16:25:08 +0000 (19:25 +0300)]
Fix message-box and avoid compilation warnings.

10 years agoImproved horizontal position of TTY dialogs.
Eli Zaretskii [Sun, 29 Sep 2013 20:34:25 +0000 (23:34 +0300)]
Improved horizontal position of TTY dialogs.

10 years agoFixed x-popup-dialog.
Eli Zaretskii [Sun, 29 Sep 2013 18:50:28 +0000 (21:50 +0300)]
Fixed x-popup-dialog.

10 years agox-popup-dialog fixed, almost.
Eli Zaretskii [Sun, 29 Sep 2013 18:38:56 +0000 (21:38 +0300)]
x-popup-dialog fixed, almost.

10 years agoDefine tty-menu-* faces via defface.
Eli Zaretskii [Sat, 28 Sep 2013 11:04:49 +0000 (14:04 +0300)]
Define tty-menu-* faces via defface.

10 years agoFix up- and down-arrows in menus on Unix TTY (which now works).
Eli Zaretskii [Sat, 28 Sep 2013 09:03:48 +0000 (12:03 +0300)]
Fix up- and down-arrows in menus on Unix TTY (which now works).

10 years agoMerge from trunk before trying Unix TTY.
Eli Zaretskii [Sat, 28 Sep 2013 08:03:37 +0000 (11:03 +0300)]
Merge from trunk before trying Unix TTY.

10 years ago* progmodes/octave.el (inferior-octave-completion-table)
Leo Liu [Sat, 28 Sep 2013 03:15:56 +0000 (11:15 +0800)]
* progmodes/octave.el (inferior-octave-completion-table)
(inferior-octave-completion-at-point): Minor tweaks.

10 years agoRename lookup-words to ispell-lookup-words
Leo Liu [Sat, 28 Sep 2013 02:54:27 +0000 (10:54 +0800)]
Rename lookup-words to ispell-lookup-words
(ispell-complete-word, ispell-command-loop): All uses changed.

* cedet/semantic/texi.el (semantic-analyze-possible-completions): Use
ispell-lookup-words instead.

Fixes: debbugs:15460

10 years ago* lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer.
Rüdiger Sonderfeld [Sat, 28 Sep 2013 02:41:48 +0000 (10:41 +0800)]
* lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer.
(octave-mode-menu): Add octave-send-buffer.
(octave-send-buffer): New function.

10 years ago* lisp/progmodes/octave.el (octave-mode-map): Add key binding for
Rüdiger Sonderfeld [Sat, 28 Sep 2013 02:30:37 +0000 (10:30 +0800)]
* lisp/progmodes/octave.el (octave-mode-map): Add key binding for
octave-lookfor.
(octave-mode-menu): Add octave-lookfor.
(inferior-octave-mode-map, octave-help-mode-map): Bind C-ha to
octave-lookfor.
(octave-lookfor): New function.

10 years agoFix typo.
Xue Fuqiao [Sat, 28 Sep 2013 01:52:23 +0000 (09:52 +0800)]
Fix typo.

10 years agoComment.
Xue Fuqiao [Sat, 28 Sep 2013 01:48:06 +0000 (09:48 +0800)]
Comment.

10 years ago* lisp/emacs-lisp/cl-macs.el:
Stefan Monnier [Sat, 28 Sep 2013 01:07:18 +0000 (21:07 -0400)]
* lisp/emacs-lisp/cl-macs.el:
(cl--loop-destr-temps): Remove.
(cl--loop-iterator-function): Rename from cl--loop-map-form and change
its convention.
(cl--loop-set-iterator-function): New function.
(cl-loop): Adjust accordingly, so as not to use cl-subst.
(cl--parse-loop-clause): Adjust all uses of cl--loop-map-form.
Bind `it' with `let' instead of substituting it with `cl-subst'.
(cl--unused-var-p): New function.
(cl--loop-let): Don't use the cl--loop-destr-temps hack any more.
Eliminate some unused variable warnings.

Fixes: debbugs:15326

10 years ago* doc-view.el (doc-view-scale-reset): Rename from
Tassilo Horn [Fri, 27 Sep 2013 06:46:49 +0000 (08:46 +0200)]
* doc-view.el (doc-view-scale-reset): Rename from
`doc-view-reset-zoom-level'.
(doc-view-scale-adjust): New command.
(doc-view-mode-map): Remap `text-scale-adjust' bindings to
`doc-view-scale-adjust'.

10 years ago* doc-view.el (doc-view-reset-zoom-level): New command.
Tassilo Horn [Thu, 26 Sep 2013 19:05:50 +0000 (21:05 +0200)]
* doc-view.el (doc-view-reset-zoom-level): New command.
(doc-view-mode-map): Remap text-scale-adjust bindings to doc-view
zoom commands (bug#15466).

10 years ago* doc/emacs/dired.texi (Flagging Many Files): Use @emph instead of @strong.
Xue Fuqiao [Thu, 26 Sep 2013 14:22:49 +0000 (22:22 +0800)]
* doc/emacs/dired.texi (Flagging Many Files): Use @emph instead of @strong.

10 years agomerge turnk
Kenichi Handa [Thu, 26 Sep 2013 13:50:56 +0000 (22:50 +0900)]
merge turnk

10 years agointernational/quail.el (quail-help): Make it not a command.
Kenichi Handa [Thu, 26 Sep 2013 13:46:50 +0000 (22:46 +0900)]
international/quail.el (quail-help): Make it not a command.

10 years ago* doc/emacs/emacs.texi (Intro): Minor cleanup.
Xue Fuqiao [Thu, 26 Sep 2013 13:42:29 +0000 (21:42 +0800)]
* doc/emacs/emacs.texi (Intro): Minor cleanup.

10 years agoSome cleanups: remove unused code.
Eli Zaretskii [Thu, 26 Sep 2013 08:10:53 +0000 (11:10 +0300)]
Some cleanups: remove unused code.

10 years agoFix compilation problem due to merge from trunk.
Eli Zaretskii [Thu, 26 Sep 2013 07:45:43 +0000 (10:45 +0300)]
Fix compilation problem due to merge from trunk.

10 years agoMerge from trunk.
Eli Zaretskii [Thu, 26 Sep 2013 07:37:16 +0000 (10:37 +0300)]
Merge from trunk.

10 years agoSignal error when reading an empty byte-code object (Bug#15405)
Barry O'Reilly [Thu, 26 Sep 2013 03:46:47 +0000 (23:46 -0400)]
Signal error when reading an empty byte-code object (Bug#15405)
* lread.c (read1): signal error
* alloc.c (make_byte_code): eassert header size
(sweep_vectors): change an int to size_t

10 years ago* minibuffer.el (completion-all-sorted-completions): Make args
Leo Liu [Thu, 26 Sep 2013 00:46:29 +0000 (08:46 +0800)]
* minibuffer.el (completion-all-sorted-completions): Make args
optional as they are.

10 years ago* emacs-lisp/cl-macs.el (cl-type-spec): Tell edebug what type
Daniel Colascione [Wed, 25 Sep 2013 22:39:53 +0000 (14:39 -0800)]
* emacs-lisp/cl-macs.el (cl-type-spec): Tell edebug what type
specs are and that they're not evaluated.

10 years agoMenu movement by mouse and keyboard live in peace now.
Eli Zaretskii [Wed, 25 Sep 2013 15:07:19 +0000 (18:07 +0300)]
Menu movement by mouse and keyboard live in peace now.

10 years agoRead mouse movement via read_menu_command.
Eli Zaretskii [Wed, 25 Sep 2013 14:51:39 +0000 (17:51 +0300)]
Read mouse movement via read_menu_command.

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

10 years agoMerge from gnulib.
Paul Eggert [Wed, 25 Sep 2013 03:44:34 +0000 (20:44 -0700)]
Merge from gnulib.

This incorporates:
2013-09-24 manywarnings: enable nicer gcc warning messages
2013-09-23 warnings: port --enable-gcc-warnings to Solaris Studio 12.3
2013-09-21 timespec: use the new TIMESPEC_RESOLUTION elsewhere
* configure.ac (WERROR_CFLAGS): Omit -fdiagnostics-show-option
and -funit-at-a-time, since manywarnings does that for us now.

10 years agoFix crash in GUI mode and enable TTY mouse on Windows.
Eli Zaretskii [Tue, 24 Sep 2013 18:40:58 +0000 (21:40 +0300)]
Fix crash in GUI mode and enable TTY mouse on Windows.

10 years ago* lisp/midnight.el (clean-buffer-list-kill-regexps)
Sam Steingold [Tue, 24 Sep 2013 17:34:51 +0000 (13:34 -0400)]
* lisp/midnight.el (clean-buffer-list-kill-regexps)
(clean-buffer-list-kill-buffer-names): Update for the new Man
buffer naming which includes the object name.

10 years agoFix submenus and screen restoration.
Eli Zaretskii [Tue, 24 Sep 2013 16:07:35 +0000 (19:07 +0300)]
Fix submenus and screen restoration.

10 years ago* dispnew.c (clear_glyph_row, copy_row_except_pointers): Use enums
Paul Eggert [Tue, 24 Sep 2013 15:29:27 +0000 (08:29 -0700)]
* dispnew.c (clear_glyph_row, copy_row_except_pointers): Use enums

instead of ints, as it's the usual style for offsetof constants.  See:
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00478.html

10 years ago* data.c (POPCOUNT_STATIC_INLINE): New macro, as a hack for popcount.
Paul Eggert [Tue, 24 Sep 2013 14:53:49 +0000 (07:53 -0700)]
* data.c (POPCOUNT_STATIC_INLINE): New macro, as a hack for popcount.

This is ugly, but it should fix the performance problem for older
GCC versions in the short run.  I'll look into integrating the
Gnulib module for popcount, as a better fix.
See the thread starting in:
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00474.html
(popcount_size_t_generic) [NEED_GENERIC_POPCOUNT]:
(popcount_size_t_msc) [USE_MSC_POPCOUNT]:
(popcount_size_t_gcc) [USE_GCC_POPCOUNT]:
(popcount_size_t): Use it.

10 years agoFix build break due to vector changes
Daniel Colascione [Tue, 24 Sep 2013 11:48:53 +0000 (03:48 -0800)]
Fix build break due to vector changes

10 years ago* dispnew.c (clear_glyph_row, copy_row_except_pointers):
Paul Eggert [Tue, 24 Sep 2013 07:16:38 +0000 (00:16 -0700)]
* dispnew.c (clear_glyph_row, copy_row_except_pointers):

Prefer signed to unsigned integers where either will do.
No need for 'const' on locals that do not escape.
Omit easserts with unnecessary and unportable assumptions about
alignment.  Avoid unnecessary casts to char *.

10 years agoUse union for the payload of struct Lisp_Vector.
Dmitry Antipov [Tue, 24 Sep 2013 06:43:20 +0000 (10:43 +0400)]
Use union for the payload of struct Lisp_Vector.
This helps to avoid a few glitches dictated by C's aliasing rules.
* lisp.h (struct Lisp_Vector): Use union for next and
contents member.  Adjust comment.  Change related users.
* alloc.c (next_in_free_list, set_next_in_free_list): Remove.
Related users changed.
* buffer.c, bytecode.c, ccl.c, character.h, chartab.c, composite.c:
* composite.h, disptab.h, fns.c, fontset.c, indent.c, keyboard.c:
* lread.c, msdos.c, process.c, w32menu.c, window.c, xdisp.c:
* xfaces.c, xfont.c, xmenu.c: Related users changed.

10 years agoOptimize glyph row clearing and copying routines.
Dmitry Antipov [Tue, 24 Sep 2013 05:42:30 +0000 (09:42 +0400)]
Optimize glyph row clearing and copying routines.
* dispextern.h (struct glyph_row): Change layout of struct
glyph_row to help copy_row_except_pointers.  Adjust comment.
* dispnew.c (null_row): Remove.
(clear_glyph_row): Use offsetof and memset to find and clear
just the members that need clearing.  Adjust comment.
(copy_row_except_pointers): Likewise for copying.

10 years agoSome minor cleanups of recently-added bool vector code.
Paul Eggert [Tue, 24 Sep 2013 04:28:06 +0000 (21:28 -0700)]
Some minor cleanups of recently-added bool vector code.

* conf_post.h (assume): Always return void.  Use lint version
only if GCC and MSC versions don't apply.
* conf_post.h (assume):
* data.c (USC_MSC_POPCOUNT, count_trailing_zero_bits):
Depend on _MSC_VER, not __MSC_VER, for consistency with
the rest of Emacs.
* data.c (bool_vector_spare_mask, popcount_size_t_generic)
(popcount_size_t_msc, popcount_size_t_gcc, popcount_size_t)
(bool_vector_binop_driver, count_trailing_zero_bits)
(size_t_to_host_endian): Now static, not static inline;
the latter isn't needed with modern compilers and doesn't
work with older compilers anyway.

10 years ago* alloc.c (valgrind_p): Use bool for boolean.
Paul Eggert [Tue, 24 Sep 2013 03:44:58 +0000 (20:44 -0700)]
* alloc.c (valgrind_p): Use bool for boolean.

10 years ago* lisp/eshell/esh-cmd.el (eshell--sep-terms): New var.
Stefan Monnier [Mon, 23 Sep 2013 23:23:32 +0000 (19:23 -0400)]
* lisp/eshell/esh-cmd.el (eshell--sep-terms): New var.
(eshell-parse-command, eshell-parse-pipeline): Use it since
eshell-separate-commands requires a dynamic scoped var.
Reported by Jan Moringen <jmoringe@techfak.uni-bielefeld.de>.

10 years ago* dispextern.h (cancel_line, init_desired_glyphs):
Dmitry Antipov [Mon, 23 Sep 2013 13:46:20 +0000 (17:46 +0400)]
* dispextern.h (cancel_line, init_desired_glyphs):
Remove ancient leftover.

10 years ago* xdisp.c (noninteractive_need_newline, message_log_need_newline)
Dmitry Antipov [Mon, 23 Sep 2013 13:25:19 +0000 (17:25 +0400)]
* xdisp.c (noninteractive_need_newline, message_log_need_newline)
(overlay_arrow_seen, message_enable_multibyte, line_number_displayed)
(display_last_displayed_message_p, message_buf_print)
(message_cleared_p, help_echo_showing_p, hourglass_shown_p):
Use bool for boolean.
* dispextern.h (help_echo_showing_p, hourglass_shown_p):
* lisp.h (noninteractive_need_newline): Adjust declaration.

10 years agoUse overriding-terminal-local-map for menu navigation.
Eli Zaretskii [Mon, 23 Sep 2013 13:15:29 +0000 (16:15 +0300)]
Use overriding-terminal-local-map for menu navigation.

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

10 years ago* dispnew.c (frame_garbaged, selected_frame, last_nonminibuf_frame):
Dmitry Antipov [Mon, 23 Sep 2013 09:50:47 +0000 (13:50 +0400)]
* dispnew.c (frame_garbaged, selected_frame, last_nonminibuf_frame):
Move to...
* frame.c (frame_garbaged, selected_frame, last_nonminibuf_frame):
...this file and convert the latter to static.  Adjust comment.
(make_initial_frame):
* window.c (init_window_once): Adjust user.
* frame.h (last_nonminibuf_frame): Remove declaration.
* lisp.h (selected_frame): Likewise.
* msdos.c (the_only_display_info): Adjust comment.

10 years agoFix last commit.
Eli Zaretskii [Mon, 23 Sep 2013 09:28:57 +0000 (12:28 +0300)]
Fix last commit.

 src/xdisp.c (note_mouse_highlight): Adapt calculation of last argument to
 mouse_face_from_string_pos to the previous change.

Fixes: debbugs:15437

10 years agoFix bug #15437 with mouse highlight on overlay strings.
Eli Zaretskii [Mon, 23 Sep 2013 09:18:38 +0000 (12:18 +0300)]
Fix bug #15437 with mouse highlight on overlay strings.

 src/xdisp.c (mouse_face_from_string_pos): Fix off-by-one error in
 computing the end column of mouse-highlight that comes from
 display or overlay strings.

10 years agoFix the definition of 'assume' for GCC older than 4.5.
Eli Zaretskii [Mon, 23 Sep 2013 08:25:48 +0000 (11:25 +0300)]
Fix the definition of 'assume' for GCC older than 4.5.

 src/conf_post.h (__has_builtin): Define to zero, if undefined, on
 all platforms, not just for clang.

10 years agoSuppress some unhelpful warnings when using clang.
Jan Djärv [Mon, 23 Sep 2013 07:12:01 +0000 (09:12 +0200)]
Suppress some unhelpful warnings when using clang.

* configure.ac: With clang, check for and use -Wno-switch,
-Wno-tautological-constant-out-of-range-compare and -Wno-pointer-sign.

* conf_post.h(assume): Use __builtin_unreachable for clang.

* src/filelock.c (lock_file_1): Rearrange to remove compiler warning
about excess arguments to snprintf.

10 years ago* autoinsert.el (auto-insert-alist): Make the value of
Leo Liu [Mon, 23 Sep 2013 04:21:41 +0000 (12:21 +0800)]
* autoinsert.el (auto-insert-alist): Make the value of
lexical-binding match its file setting.

10 years agosrc/w32console.c, src/w32term.c: Remove unused variables.
Juanma Barranquero [Mon, 23 Sep 2013 03:30:55 +0000 (05:30 +0200)]
src/w32console.c, src/w32term.c: Remove unused variables.

src/w32console.c (initialize_w32_display): Remove unused variable hlinfo.
src/w32term.c (w32_scroll_bar_handle_click): Remove unused variable f.

10 years agolisp/vc/vc-sccs.el (vc-sccs-search-project-dir): Mark unused argument.
Juanma Barranquero [Mon, 23 Sep 2013 02:59:30 +0000 (04:59 +0200)]
lisp/vc/vc-sccs.el (vc-sccs-search-project-dir): Mark unused argument.

10 years agoRemove references to universal-argument-num-events.
Juanma Barranquero [Mon, 23 Sep 2013 02:58:02 +0000 (04:58 +0200)]
Remove references to universal-argument-num-events.

* lisp/autoarg.el (autoarg-kp-digit-argument):
* lisp/electric.el (Electric-command-loop):
* lisp/kmacro.el (kmacro-step-edit-insert):
  Do not set universal-argument-num-events.

10 years agoTell valgrind about conservative GC regions and suppress spurious
Daniel Colascione [Mon, 23 Sep 2013 02:34:52 +0000 (18:34 -0800)]
Tell valgrind about conservative GC regions and suppress spurious
warings.

* alloc.c (USE_VALGRIND): New macro; on by default
when ENABLE_CHECKING.
(mark_maybe_object,mark_maybe_pointer)
[USE_VALGRIND]: Mark conservatively-scanned regions valid for
valgrind purposes.
(valgrind_p) [USE_VALGRIND]: New variable.
(init_alloc) [USE_VALGRIND]: Initialize valgrind_p.

10 years agoHalf-solution for menus popped up by mouse clicks.
Eli Zaretskii [Sun, 22 Sep 2013 15:23:06 +0000 (18:23 +0300)]
Half-solution for menus popped up by mouse clicks.

10 years agoFix compiler warnings from XCode 5.0 on OSX.
Jan Djärv [Sun, 22 Sep 2013 14:26:10 +0000 (16:26 +0200)]
Fix compiler warnings from XCode 5.0 on OSX.

* nsterm.m (setMarkedText:selectedRange:):
(deleteWorkingText):
* nsmenu.m (addDisplayItemWithImage:idx:tag:helpText:enabled:):
* nsfont.m (ns_get_covering_families, ns_findfonts): Cast NSLog
argument to unsigned long to avoid warning.
(nsfont_draw): Use 0.25 instead of  Fix2X (kATSItalicQDSkew).

* process.c (wait_reading_process_output): Change int pnamelen to
socklen_t.

10 years ago* doc/lispref/nonascii.texi (Default Coding Systems): Typo fix.
Xue Fuqiao [Sun, 22 Sep 2013 12:49:53 +0000 (20:49 +0800)]
* doc/lispref/nonascii.texi (Default Coding Systems): Typo fix.

10 years ago* files.el (interpreter-mode-alist): Add octave.
Leo Liu [Sun, 22 Sep 2013 12:23:20 +0000 (20:23 +0800)]
* files.el (interpreter-mode-alist): Add octave.

10 years ago* conf_post.h (assume): Fix compiler error: x shall be cond.
Jan Djärv [Sun, 22 Sep 2013 11:07:17 +0000 (13:07 +0200)]
* conf_post.h (assume): Fix compiler error: x shall be cond.

10 years agoRestore help-echo for menu items, ifdef away unneeded MSDOS code.
Eli Zaretskii [Sun, 22 Sep 2013 11:07:12 +0000 (14:07 +0300)]
Restore help-echo for menu items, ifdef away unneeded MSDOS code.

10 years agoPrevent redisplay and keystroke echo during menu navigation.
Eli Zaretskii [Sun, 22 Sep 2013 10:47:58 +0000 (13:47 +0300)]
Prevent redisplay and keystroke echo during menu navigation.

10 years agoSuppress unused variable warning when compiling without a window system.
Daniel Colascione [Sun, 22 Sep 2013 09:48:21 +0000 (01:48 -0800)]
Suppress unused variable warning when compiling without a window system.

10 years agoAdd set operations for bool-vector.
Daniel Colascione [Sun, 22 Sep 2013 09:31:55 +0000 (01:31 -0800)]
Add set operations for bool-vector.

http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00404.html

* data.c (Qbool_vector_p): New symbol.
(bool_vector_spare_mask,popcount_size_t_generic)
(popcount_size_t_msc,popcount_size_t_gcc)
(popcount_size_t)
(bool_vector_binop_driver)
(count_trailing_zero_bits,size_t_to_host_endian)
(Fbool_vector_exclusive_or)
(Fbool_vector_union)
(Fbool_vector_intersection,Fbool_vector_set_difference)
(Fbool_vector_subsetp,Fbool_vector_not)
(Fbool_vector_count_matches)
(Fbool_vector_count_matches_at): New functions.
(syms_of_data): Intern new symbol, functions.
* alloc.c (bool_vector_payload_bytes): New function.
(Fmake_bool_vector): Instead of calling Fmake_vector,
which performs redundant initialization and argument checking,
just call allocate_vector ourselves.  Make sure we clear any
terminating padding to zero.
(vector_nbytes,sweep_vectors): Use bool_vector_payload_bytes
instead of open-coding the size calculation.
(vroundup_ct): New macro.
(vroundup): Assume argument >= 0; invoke vroundup_ct.
* casetab.c (shuffle,set_identity): Change lint_assume to assume.
* composite.c (composition_gstring_put_cache): Change
lint_assume to assume.
* conf_post.h (assume): New macro.
(lint_assume): Remove.
* dispnew.c (update_frame_1): Change lint_assume to assume.
* ftfont.c (ftfont_shape_by_flt): Change lint_assume
to assume.
* image.c (gif_load): Change lint_assume to assume.
* lisp.h (eassert_and_assume): New macro.
(Qbool_vector_p): Declare.
(CHECK_BOOL_VECTOR,ROUNDUP,BITS_PER_SIZE_T): New macros.
(swap16,swap32,swap64): New inline functions.
* macfont.c (macfont_shape): Change lint_assume to assume.
* ralloc.c: Rename ROUNDUP to PAGE_ROUNDUP throughout.
* xsettings.c (parse_settings): Use new swap16 and
swap32 from lisp.h instead of file-specific macros.

10 years agoFix bug #15365 with aborts in try_window_id.
Eli Zaretskii [Sun, 22 Sep 2013 07:13:14 +0000 (10:13 +0300)]
Fix bug #15365 with aborts in try_window_id.

 src/xdisp.c (try_window_id): Don't abort if cursor row could not be
 found (which can legitimately happen when the glyph row at the
 window start is disabled in the current_matrix.

10 years agoFix syntax.h bug introduced by recent INLINE change.
Paul Eggert [Sun, 22 Sep 2013 06:22:05 +0000 (23:22 -0700)]
Fix syntax.h bug introduced by recent INLINE change.

syntax.h defined an extern inline function SYNTAX_ENTRY that was
conditionally compiled one way in some modules, and a different
way in others.  This doesn't work with extern inline functions,
which must have the same definition in all modules, because the
defining code might be shared across modules, depending on the
implementation.  Symptoms reported by Martin Rudalics in:
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00414.html
* regex.c, syntax.c (SYNTAX_ENTRY_VIA_PROPERTY): Remove.
(SYNTAX, SYNTAX_ENTRY, SYNTAX_WITH_FLAGS): New macros,
overriding the corresponding functions in syntax.h.
* syntax.h (syntax_property_entry, syntax_property_with_flags)
(syntax_property): New inline functions.
(SYNTAX_ENTRY, SYNTAX_WITH_FLAGS, SYNTAX):
Rewrite in terms of these new functions.

10 years ago@refill is no longer needed.
Xue Fuqiao [Sun, 22 Sep 2013 02:13:44 +0000 (10:13 +0800)]
@refill is no longer needed.

* doc/emacs/fixit.texi (Transpose):
(Fixing Case): Remove @refill.

10 years agoC++: fontify identifier in declaration following "public:" correctly.
Alan Mackenzie [Sat, 21 Sep 2013 17:21:29 +0000 (17:21 +0000)]
C++: fontify identifier in declaration following "public:" correctly.
* progmodes/cc-langs.el (c-decl-start-colon-kwd-re): New lang var
to match "public", etc.
(c-decl-prefix-re): Add ":" into the C++ value.
* progmodes/cc-engine.el (c-find-decl-prefix-search): Refactor a
bit.  Add a check for a ":" preceded by "public", etc.

10 years agoFix infinite loop in menu input due to block_input.
Eli Zaretskii [Sat, 21 Sep 2013 14:53:04 +0000 (17:53 +0300)]
Fix infinite loop in menu input due to block_input.

10 years agoFix bug #15426 with directory-files invoked from a unibyte buffer.
Eli Zaretskii [Sat, 21 Sep 2013 11:48:19 +0000 (14:48 +0300)]
Fix bug #15426 with directory-files invoked from a unibyte buffer.

 src/dired.c (directory_files_internal): Use multibyte_chars_in_text,
 not chars_in_text, whose result depends on the multibyteness of
 the current buffer.

10 years agoAdd information about carriage-return in lispref.
Xue Fuqiao [Sat, 21 Sep 2013 10:58:39 +0000 (18:58 +0800)]
Add information about carriage-return in lispref.

* doc/lispref/nonascii.texi (Coding System Basics): Add information about carriage-return.

10 years agoRecognize OBJFILE-gdb.gdb GDB script files.
Eli Zaretskii [Sat, 21 Sep 2013 08:49:31 +0000 (11:49 +0300)]
Recognize OBJFILE-gdb.gdb GDB script files.

 lisp/files.el (auto-mode-alist): Support OBJFILE-gdb.gdb script files
 recognized by GDB 7.5 and later.

10 years ago* doc/emacs/maintaining.texi (Log Buffer): Use @emph instead of @strong.
Xue Fuqiao [Sat, 21 Sep 2013 08:31:45 +0000 (16:31 +0800)]
* doc/emacs/maintaining.texi (Log Buffer): Use @emph instead of @strong.

10 years agoComments.
Xue Fuqiao [Sat, 21 Sep 2013 08:22:57 +0000 (16:22 +0800)]
Comments.

10 years agoAdd keybinding for vc-log-incoming in vc-dir.
Xue Fuqiao [Sat, 21 Sep 2013 08:16:13 +0000 (16:16 +0800)]
Add keybinding for vc-log-incoming in vc-dir.

* doc/emacs/maintaining.texi (VC Directory Commands): Add keybinding for
vc-log-incoming in vc-dir.
* lisp/vc/vc-dir.el (vc-dir-mode-map): Add keybinding for vc-log-incoming.

10 years ago* erc.el (erc-invite-only-mode, erc-toggle-channel-mode):
Glenn Morris [Sat, 21 Sep 2013 00:52:07 +0000 (17:52 -0700)]
* erc.el (erc-invite-only-mode, erc-toggle-channel-mode):
Remove unused local variable `erc-force-send'.

10 years agoPort recent change to hosts where pointers aren't 'long'.
Paul Eggert [Fri, 20 Sep 2013 20:23:20 +0000 (13:23 -0700)]
Port recent change to hosts where pointers aren't 'long'.

* xterm.c (x_send_scroll_bar_event, x_scroll_bar_to_input_event):
Don't assume that pointers are the same width as 'long'.
Add a compile-time check that a pointer fits into two X slots.

10 years ago* lisp/subr.el (internal--call-interactively): New const.
Ryan [Fri, 20 Sep 2013 19:59:42 +0000 (15:59 -0400)]
* lisp/subr.el (internal--call-interactively): New const.
(called-interactively-p): Use it.
* test/automated/advice-tests.el (advice-test-called-interactively-p-around)
(advice-test-called-interactively-p-filter-args)
(advice-test-called-interactively-p-around): New tests.

Fixes: debbugs:3984

10 years ago* lisp/cedet/semantic.el (semantic-new-buffer-fcn-was-run, semantic-active-p):
Glenn Morris [Fri, 20 Sep 2013 17:21:28 +0000 (13:21 -0400)]
* lisp/cedet/semantic.el (semantic-new-buffer-fcn-was-run, semantic-active-p):
Move from here...
* lisp/cedet/semantic/fw.el: ...to here.

10 years ago* INSTALL: Update m17n details.
Glenn Morris [Fri, 20 Sep 2013 16:33:46 +0000 (09:33 -0700)]
* INSTALL: Update m17n details.

10 years agoA simpler, centralized INLINE.
Paul Eggert [Fri, 20 Sep 2013 15:34:36 +0000 (08:34 -0700)]
A simpler, centralized INLINE.

* lib-src/profile.c (INLINE): New macro.
(SYSTIME_INLINE): Remove.
* src/conf_post.h (INLINE): Define only if not already defined.
This allows us to use a single INLINE, defined by one file
per executable.
* src/emacs.c (INLINE): Define it.
Also, include category.h, charset.h, composite.h, dispextern.h,
syntax.h, systime.h, so that their INLINE definitions are expanded
properly for Emacs.
* src/blockinput.h, src/keyboard.c (BLOCKINPUT_INLINE):
* src/buffer.h, src/buffer.c (BUFFER_INLINE):
* src/category.h, src/category.c (CATEGORY_INLINE):
* src/character.h, src/character.c (CHARACTER_INLINE):
* src/charset.h, src/charset.c (CHARSET_INLINE):
* src/composite.h, src/composite.c (COMPOSITE_INLINE):
* src/dispextern.h, src/dispnew.c (DISPEXTERN_INLINE):
* src/frame.h, src/frame.c (FRAME_INLINE):
* src/intervals.h, src/intervals.c (INTERVALS_INLINE):
* src/keyboard.h, src/keyboard.c (KEYBOARD_INLINE):
* src/lisp.h, src/alloc.c (LISP_INLINE):
* src/process.h, src/process.c (PROCESS_INLINE):
* src/syntax.h, src/syntax.c (SYNTAX_INLINE):
* src/systime.h, src/sysdep.c (SYSTIME_INLINE):
* src/termhooks.h, src/terminal.h (TERMHOOKS_INLINE):
* src/window.h, src/window.c (WINDOW_INLINE):
Remove.  All uses replaced with INLINE.

10 years agoChecked TUTORIAL.cn.
Xue Fuqiao [Fri, 20 Sep 2013 10:22:20 +0000 (18:22 +0800)]
Checked TUTORIAL.cn.

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

10 years ago* INSTALL: New homepage of libtiff.
Xue Fuqiao [Fri, 20 Sep 2013 09:19:56 +0000 (17:19 +0800)]
* INSTALL: New homepage of libtiff.

10 years agoAvoid replacing 'struct timeval' and compiling lib/gettimeofday.c on MinGW.
Eli Zaretskii [Fri, 20 Sep 2013 07:21:20 +0000 (10:21 +0300)]
Avoid replacing 'struct timeval' and  compiling lib/gettimeofday.c on MinGW.

 nt/mingw-cfg.site (gl_cv_sys_struct_timeval_tv_sec): Set to "yes"
 to avoid gnulib replacement of 'struct timeval' and the resulting
 compilation of lib/gettimeofday.c with incompatible version of
 gettimeofday.  Related discussions on emacs-devel:
 http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00286.html
 http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00361.html

10 years ago* admin/FOR-RELEASE: Remove outdated info.
Xue Fuqiao [Fri, 20 Sep 2013 05:52:34 +0000 (13:52 +0800)]
* admin/FOR-RELEASE: Remove outdated info.

10 years agoRename cvs-append-to-ignore to vc-cvs-append-to-ignore.
Xue Fuqiao [Fri, 20 Sep 2013 05:39:53 +0000 (13:39 +0800)]
Rename cvs-append-to-ignore to vc-cvs-append-to-ignore.

2013-09-20  Xue Fuqiao  <xfq.free@gmail.com>

* lisp/vc/pcvs.el (cvs-mode-ignore):
* lisp/vc/vc-cvs.el (vc-cvs-ignore, vc-cvs-append-to-ignore): Rename
cvs-append-to-ignore to vc-cvs-append-to-ignore.

If/when someone complains about her package calling that function we
can add an obsolete alias at that point.

10 years agoWork around performance bug on OS X 10.8 and earlier.
Paul Eggert [Fri, 20 Sep 2013 03:41:37 +0000 (20:41 -0700)]
Work around performance bug on OS X 10.8 and earlier.

Perhaps Apple will fix this bug some day.
See the thread starting with Daniel Colascione's email in:
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00343.html
* configure.ac (FORTIFY_SOUR): New verbatim section.

10 years ago* xterm.c (handle_one_xevent): Revert part of 2013-09-17 change
Dmitry Antipov [Fri, 20 Sep 2013 03:30:50 +0000 (07:30 +0400)]
* xterm.c (handle_one_xevent): Revert part of 2013-09-17 change
to avoid Bug#15398.

10 years agoMerge from gnulib.
Paul Eggert [Thu, 19 Sep 2013 21:40:08 +0000 (14:40 -0700)]
Merge from gnulib.

This incorporates the following changes:
2013-09-19 stdio: OS X port of putc_unlocked + extern inline
2013-09-19 signal: OS X port of sigaddset etc. + extern inline
2013-09-19 extern-inline: do not always suppress extern inline on OS X
2013-09-17 getgroups: statement without effect
2013-08-28 headers: check that _GL_INLINE_HEADER_BEGIN is defined