1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-16 00:01:05 -08:00
Commit graph

116079 commits

Author SHA1 Message Date
Leo Liu
3958758036 * minibuffer.el (completion-all-sorted-completions): Make args
optional as they are.
2013-09-26 08:46:29 +08:00
Daniel Colascione
0057865926 * emacs-lisp/cl-macs.el (cl-type-spec): Tell edebug what type
specs are and that they're not evaluated.
2013-09-25 14:39:53 -08:00
Eli Zaretskii
bbc1083778 Menu movement by mouse and keyboard live in peace now. 2013-09-25 18:07:19 +03:00
Eli Zaretskii
e648f69975 Read mouse movement via read_menu_command. 2013-09-25 17:51:39 +03:00
Glenn Morris
ec165e83bb Auto-commit of generated files. 2013-09-25 06:17:46 -04:00
Paul Eggert
959c3d24a7 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.
2013-09-24 20:44:34 -07:00
Eli Zaretskii
aa36c6d0c4 Fix crash in GUI mode and enable TTY mouse on Windows. 2013-09-24 21:40:58 +03:00
Sam Steingold
0c1738785d * 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.
2013-09-24 13:34:51 -04:00
Eli Zaretskii
f34729eaec Fix submenus and screen restoration. 2013-09-24 19:07:35 +03:00
Paul Eggert
cf647d9300 * 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
2013-09-24 08:29:27 -07:00
Paul Eggert
4710d6f406 * 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.
2013-09-24 07:53:49 -07:00
Daniel Colascione
10ebac9d6a Fix build break due to vector changes 2013-09-24 03:48:53 -08:00
Paul Eggert
9da0f50e5a * 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 *.
2013-09-24 00:16:38 -07:00
Dmitry Antipov
d6d9cbc15c 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.
2013-09-24 10:43:20 +04:00
Dmitry Antipov
ec7bc82f9c 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.
2013-09-24 09:42:30 +04:00
Paul Eggert
7be68de5d2 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.
2013-09-23 21:28:06 -07:00
Paul Eggert
d160dd0c71 * alloc.c (valgrind_p): Use bool for boolean. 2013-09-23 20:44:58 -07:00
Stefan Monnier
84998447c3 * 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>.
2013-09-23 19:23:32 -04:00
Dmitry Antipov
3a6a78fd25 * dispextern.h (cancel_line, init_desired_glyphs):
Remove ancient leftover.
2013-09-23 17:46:20 +04:00
Dmitry Antipov
e08813d023 * 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.
2013-09-23 17:25:19 +04:00
Eli Zaretskii
df78230943 Use overriding-terminal-local-map for menu navigation. 2013-09-23 16:15:29 +03:00
Glenn Morris
bab4f76d9a Auto-commit of generated files. 2013-09-23 06:17:40 -04:00
Dmitry Antipov
5492865b79 * 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.
2013-09-23 13:50:47 +04:00
Eli Zaretskii
b519df2390 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
2013-09-23 12:28:57 +03:00
Eli Zaretskii
f03eddbff6 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.
2013-09-23 12:18:38 +03:00
Eli Zaretskii
cd548fa41b 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.
2013-09-23 11:25:48 +03:00
Jan Djärv
8762e52438 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.
2013-09-23 09:12:01 +02:00
Leo Liu
332153538c * autoinsert.el (auto-insert-alist): Make the value of
lexical-binding match its file setting.
2013-09-23 12:21:41 +08:00
Juanma Barranquero
d4a9284f20 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.
2013-09-23 05:30:55 +02:00
Juanma Barranquero
c8af4e673e lisp/vc/vc-sccs.el (vc-sccs-search-project-dir): Mark unused argument. 2013-09-23 04:59:30 +02:00
Juanma Barranquero
57b16162ce 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.
2013-09-23 04:58:02 +02:00
Daniel Colascione
a84683fdd5 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.
2013-09-22 18:34:52 -08:00
Eli Zaretskii
7ace926507 Half-solution for menus popped up by mouse clicks. 2013-09-22 18:23:06 +03:00
Jan Djärv
fb83ea63a5 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.
2013-09-22 16:26:10 +02:00
Xue Fuqiao
69b3debcd2 * doc/lispref/nonascii.texi (Default Coding Systems): Typo fix. 2013-09-22 20:49:53 +08:00
Leo Liu
7186ba6045 * files.el (interpreter-mode-alist): Add octave. 2013-09-22 20:23:20 +08:00
Jan Djärv
8fef36c6ff * conf_post.h (assume): Fix compiler error: x shall be cond. 2013-09-22 13:07:17 +02:00
Eli Zaretskii
824682ea45 Restore help-echo for menu items, ifdef away unneeded MSDOS code. 2013-09-22 14:07:12 +03:00
Eli Zaretskii
474163ac51 Prevent redisplay and keystroke echo during menu navigation. 2013-09-22 13:47:58 +03:00
Daniel Colascione
cd9356f211 Suppress unused variable warning when compiling without a window system. 2013-09-22 01:48:21 -08:00
Daniel Colascione
3e0b94e7ff 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.
2013-09-22 01:31:55 -08:00
Eli Zaretskii
76880d884d 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.
2013-09-22 10:13:14 +03:00
Paul Eggert
c6cfd9101e 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.
2013-09-21 23:22:05 -07:00
Xue Fuqiao
3a4be55b4d @refill is no longer needed.
* doc/emacs/fixit.texi (Transpose):
(Fixing Case): Remove @refill.
2013-09-22 10:13:44 +08:00
Alan Mackenzie
ece1500470 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.
2013-09-21 17:21:29 +00:00
Eli Zaretskii
f0177f86f7 Fix infinite loop in menu input due to block_input. 2013-09-21 17:53:04 +03:00
Eli Zaretskii
b3f1d1198a 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.
2013-09-21 14:48:19 +03:00
Xue Fuqiao
878294497c Add information about carriage-return in lispref.
* doc/lispref/nonascii.texi (Coding System Basics): Add information about carriage-return.
2013-09-21 18:58:39 +08:00
Eli Zaretskii
75d83e2207 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.
2013-09-21 11:49:31 +03:00
Xue Fuqiao
f6bb09828c * doc/emacs/maintaining.texi (Log Buffer): Use @emph instead of @strong. 2013-09-21 16:31:45 +08:00