1. 17 Jul, 2012 11 commits
    • Stefan Monnier's avatar
      * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Mark "${#VAR" · efc26dbe
      Stefan Monnier authored
      as not-a-comment.
      * test/indent/shell.sh: Add test case for ${#VAR}.
      
      Fixes: debbugs:11946
      efc26dbe
    • Stefan Monnier's avatar
      Misc minor changes. · f5695c9a
      Stefan Monnier authored
      * lisp/xt-mouse.el (xterm-mouse-translate-1, xterm-mouse-event-read):
      Use read-event since we don't really want to read chars but bytes.
      * lisp/emacs-lisp/macroexp.el (macroexp-let2): Use more informative names
      for uninterned vars.
      f5695c9a
    • Stefan Monnier's avatar
      * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-1): Highlight not only · 45fd731c
      Stefan Monnier authored
      $$..$$ but also $..$ using regexps.
      Use tex-verbatim for \url and \path.
      (tex-font-lock-keywords): Define as defconst like the others.
      (tex-common-initialization): Don't use font-lock-syntax-table any more.
      * test/indent/latex-mode.tex: New file.
      
      Fixes: debbugs:11953
      45fd731c
    • Chong Yidong's avatar
      Document insert-char changes. · 9ea10cc3
      Chong Yidong authored
      * doc/emacs/basic.texi (Inserting Text): Replace ucs-insert with
      insert-char.  Provide more details of input.
      
      * doc/lispref/mule.texi (International Chars, Input Methods): Likewise.
      
      * doc/lispref/text.texi (Insertion): Document insert-char changes.
      
      * src/editfns.c (Finsert_char): Doc fix.
      9ea10cc3
    • Dmitry Antipov's avatar
      Fix toolkit configuration report. · 441efe9f
      Dmitry Antipov authored
      * configure.ac (USE_X_TOOLKIT): Report toolkit as GTK3 if
      --with-x-toolkit=gtk3 is used.
      441efe9f
    • Dmitry Antipov's avatar
      Fix previous change to make Fmemory_free always accurate. · 3900d5de
      Dmitry Antipov authored
      * alloc.c (make_interval): Update total_free_intervals.
      (make_float): Likewise for total_free_floats.
      (free_cons, Fcons): Likewise for total_free_conses.
      (SETUP_ON_FREE_LIST, allocate_vector_from_block):
      Likewise for total_free_vector_bytes.
      (Fmake_symbol): Likewise for total_free_symbols.
      (bytes_free): Remove.
      3900d5de
    • Dmitry Antipov's avatar
      Simple free memory accounting feature. · 7098646f
      Dmitry Antipov authored
      * alloc.c (bytes_free, total_free_vector_bytes): New variable.
      (sweep_vectors): Accumulate size of free vectors.
      (Fgarbage_collect): Setup bytes_free.
      (Fmemory_free): New function.
      (syms_of_alloc): Register it.
      7098646f
    • Dmitry Antipov's avatar
      Cleanup overlays checking. · 22657b40
      Dmitry Antipov authored
      * buffer.h (OVERLAY_VALID): Remove as useless synonym of OVERLAYP.
      * buffer.c (overlay_touches_p, recenter_overlay_lists): Change to
      eassert and OVERLAYP.
      (sort_overlays): Change to use OVERLAYP.
      22657b40
    • René Kyllingstad's avatar
      Make insert-char interactive, and ucs-insert an obsolete alias for it. · ddfc8813
      René Kyllingstad authored
      * lisp/international/mule-cmds.el (ucs-insert): Make it an obsolete
      alias for insert-char.
      
      * editfns.c (Finsert_char): Make it interactive, and make the second
      arg optional.  Copy interactive spec and docstring from ucs-insert.
      ddfc8813
    • Paul Eggert's avatar
      * floatfns.c (Fabs): Do not wrap fabs inside IN_FLOAT. · 7c26cf3c
      Paul Eggert authored
      Unlike the other wrapped functions, fabs has an unspecified
      effect on errno.
      
      Fixes: debbugs:11913
      7c26cf3c
    • Paul Eggert's avatar
      Fix regression with pthread_sigmask on FreeBSD. · 5dad233c
      Paul Eggert authored
      * configure.ac: Configure gnulib at the end, not before running
      pkg-config.  This restores the behavior before 2012-06-22, when
      higher-resolution time stamps were added, and fixes a bug whereby
      LIB_PTHREAD was not used and gnulib's part of 'configure'
      therefore incorrectly assumed that pthread_sigmask wasn't working.
      Fix the problem with -lrt and clock_gettime a different way.
      This should complete the fix for Bug#11884.
      (pre_PKG_CONFIG_CFLAGS, pre_PKG_CONFIG_LIBS): New shell vars.
      5dad233c
  2. 16 Jul, 2012 7 commits
    • Fabián Ezequiel Gallina's avatar
      * progmodes/python.el: Simplified imenu implementation. · 758e556a
      Fabián Ezequiel Gallina authored
      (python-nav-jump-to-defun): Remove command.
      (python-mode-map): Use `imenu' instead.
      (python-nav-list-defun-positions-cache)
      (python-imenu-include-defun-type, python-imenu-make-tree)
      (python-imenu-subtree-root-label, python-imenu-index-alist):
      Remove vars.
      (python-nav-list-defun-positions, python-nav-read-defun)
      (python-imenu-tree-assoc, python-imenu-make-element-tree)
      (python-imenu-make-tree, python-imenu-create-index): Remove
      functions.
      (python-mode): Update to interact with imenu by setting
      `imenu-extract-index-name-function' only.
      758e556a
    • Fabián Ezequiel Gallina's avatar
      * progmodes/python.el: Enhancements to navigation commands. · 032d23ab
      Fabián Ezequiel Gallina authored
      (python-nav-backward-sentence)
      (python-nav-forward-sentence): Remove.
      (python-nav-backward-statement, python-nav-forward-statement)
      (python-nav-statement-start, python-nav-statement-end)
      (python-nav-backward-block, python-nav-forward-block)
      (python-nav-block-start, python-nav-block-end)
      (python-nav-forward-sexp-function)
      (python-info-current-line-comment-p)
      (python-info-current-line-empty-p): New functions.
      (python-indent-context): Use `python-nav-statement-start'.
      032d23ab
    • Michael Albinus's avatar
      * eshell/em-ls.el (eshell/ls): Use `apply'. · 9328d9aa
      Michael Albinus authored
      * eshell/em-unix.el (eshell/su, eshell/sudo): Apply Tramp's ad-hoc
      multi-hops, instead of Tramp internals.
      9328d9aa
    • Jan Djärv's avatar
      * nsterm.m (keyDown): Interpret flags without left/right bits · 5d127af9
      Jan Djärv authored
      as the left key.
      
      Fixes: debbugs:11670
      5d127af9
    • Michael Albinus's avatar
      * vc/ediff.el (ediff-directories): Add trailing space to prompts. · 01795a1b
      Michael Albinus authored
      * vc/ediff-diff.el (ediff-same-file-contents): Handle the case,
      when F1 and F2 are located on different hosts.
      01795a1b
    • Dmitry Antipov's avatar
      Remove empty and useless init functions. · 6a0dd1d7
      Dmitry Antipov authored
      * lisp.h (init_character_once, init_fns, init_image)
      (init_filelock, init_sound): Remove prototype.
      * character.c (init_character_once): Remove.
      * filelock.c (init_filelock): Likewise.
      * fns.c (init_fns): Likewise.
      * image.c (init_image): Likewise.
      * sound.c (init_sound): Likewise.
      * emacs.c (main): Adjust accordingly.
      6a0dd1d7
    • Dmitry Antipov's avatar
      * gtkutil.h: Tiny cleanups. · 7a6136fd
      Dmitry Antipov authored
      (use_old_gtk_file_dialog): Remove useless declaration.
      (xg_uses_old_file_dialog): Add suggested const attribute.
      7a6136fd
  3. 15 Jul, 2012 6 commits
    • Paul Eggert's avatar
      Merge from gnulib. · b6e9e0ff
      Paul Eggert authored
      2012-07-15 pthread_sigmask: fix bug on FreeBSD 9 (Bug#11884)
      2012-07-11 gettext: do not assume '#define ... defined ...' behavior
      b6e9e0ff
    • Eli Zaretskii's avatar
      Fix bug #11943 with slow redisplay in large paragraphs full of weak characters. · ce811ad9
      Eli Zaretskii authored
       src/bidi.c (MAX_STRONG_CHAR_SEARCH): New macro.
       (bidi_paragraph_init): Use it to limit search forward for a strong
       directional character in abnormally large paragraphs full of
       neutral or weak characters.
      ce811ad9
    • Stefano Facchini's avatar
      * src/gtkutil.c (xg_create_tool_bar): Apply "primary-toolbar" style to · c9adfeaa
      Stefano Facchini authored
      the toolbar.
      (xg_make_tool_item): Give the widget event box a transparent background.
      
      Fixes: debbugs:9451
      c9adfeaa
    • Dmitry Antipov's avatar
      Cleanup basic allocation variables and functions. · fff62aa9
      Dmitry Antipov authored
      * alloc.c (ignore_warnings, init_intervals, init_float)
      (init_cons, init_symbol, init_marker): Remove.
      (interval_block_index): Initialize to INTERVAL_BLOCK_SIZE.
      (float_block_index): Initialize to FLOAT_BLOCK_SIZE.
      (cons_block_index): Initialize to CONS_BLOCK_SIZE.
      (symbol_block_size): Initialize to SYMBOL_BLOCK_SIZE.
      (marker_block_index): Initialize to MARKER_BLOCK_SIZE.
      (staticidx, init_alloc_once, init_strings, free_ablock):
      Remove redundant initialization.
      * fns.c (init_weak_hash_tables): Remove.
      * lisp.h (init_weak_hash_tables): Remove prototype.
      fff62aa9
    • Dmitry Antipov's avatar
      Use zero_vector where appropriate. · 9730daca
      Dmitry Antipov authored
      * alloc.c (zero_vector): Define as Lisp_Object.  Adjust users
      accordingly.
      * lisp.h (zero_vector): New declaration.
      * font.c (null_vector): Remove.
      (syms_of_font): Remove initialization and staticpro.
      (font_list_entities, font_find_for_lface): Change to use zero_vector.
      * keymap.c (Faccessible_keymaps): Likewise.
      9730daca
    • Leo Liu's avatar
      Add news for exclamation-mark and flymake · 2e2d2a13
      Leo Liu authored
      2e2d2a13
  4. 14 Jul, 2012 12 commits
    • Chong Yidong's avatar
      * xt-mouse.el: Implement extended mouse coordinates. · 63408057
      Chong Yidong authored
      (xterm-mouse-translate): Move code into xterm-mouse-translate-1.
      (xterm-mouse-translate-extended, xterm-mouse-translate-1)
      (xterm-mouse--read-event-sequence-1000)
      (xterm-mouse--read-event-sequence-1006): New functions.  For old
      mouse protocol, handle M-mouse-X events correctly.
      (xterm-mouse-event): New arg specifying mouse protocol.
      (turn-on-xterm-mouse-tracking-on-terminal)
      (turn-off-xterm-mouse-tracking-on-terminal): Send DEC 1006
      sequence to toggle extended coordinates on newer XTerms.  This
      appears to be harmless on terminals which do not support this.
      
      Fixes: debbugs:10642
      63408057
    • Leo Liu's avatar
      Add fringe bitmap indicators for flymake · 28ca98ac
      Leo Liu authored
      Fixes: debbugs:11253
      28ca98ac
    • Leo Liu's avatar
      Add a new bitmap exclamation-mark · cd276f6e
      Leo Liu authored
      cd276f6e
    • Eli Zaretskii's avatar
      Improve commentary in src/systime.h. · d9bee437
      Eli Zaretskii authored
      d9bee437
    • Eli Zaretskii's avatar
      Adapt the MS-DOS build to the latest configury changes. · 5a1131d9
      Eli Zaretskii authored
       msdos/sed1v2.inp: In the recipe for $(leimdir)/leim-list.el, edit the
       prerequisites to be "temacs$(EXEEXT) $(BOOTSTRAPEMACS)", to avoid
       the need to rebuild $(bootstrap_exe), which requires a Unixy shell
       via lisp/Makefile.in's "update-subdirs" command.
       msdos/sedlibmk.inp (am_libgnu_a_OBJECTS): Adjust the removal of
       careadlinkat.$(OBJEXT) to the changes in lib/Makefile.in.
       msdos/sed2v2.inp (DATA_START, GC_SETJMP_WORKS, HAVE_MENUS)
       (HAVE_MOUSE): Edit for DJGPP, according to what was previously
       done on src/s/msdos.h.
       msdos/gmalloc.c (GMALLOC_INHIBIT_VALLOC): Don't reference.
       src/s/msdos.h (BSD_SYSTEM, DATA_START, GC_SETJMP_WORKS, HAVE_MOUSE)
       (HAVE_MENUS): Don't define, defined by editing config.in with
       msdos/sed2v2.inp.
       (GMALLOC_INHIBIT_VALLOC): Don't define.
       (MODE_LINE_BINARY_TEXT): Remove, not used anymore.
      5a1131d9
    • Jan Djärv's avatar
      *** empty log message *** · 04408072
      Jan Djärv authored
      04408072
    • Chong Yidong's avatar
      Fix electric-pair-mode/delete-selection-mode interaction. · b5cf7fc4
      Chong Yidong authored
      * lisp/electric.el (electric-pair-post-self-insert-function): Fix pair
      insertion in empty-region case.
      
      Fixes: debbugs:11520
      b5cf7fc4
    • Juanma Barranquero's avatar
      * nt/config.nt: Sync with autogen/config.in. · 22e983b7
      Juanma Barranquero authored
      (GC_MARK_SECONDARY_STACK, GC_MARK_STACK, GC_SETJMP_WORKS)
      (SETUP_SLAVE_PTY): New macros.
      
      * src/s/ms-w32.h (GC_SETJMP_WORKS, GC_MARK_STACK): Set in nt/config.nt.
      22e983b7
    • Reuben Thomas's avatar
      * rect.el (copy-rectangle-as-kill): New command. · be755c79
      Reuben Thomas authored
      * lisp/rect.el, lisp/register.el: Move bindings to bindings.el.
      
      * lisp/bindings.el: Consolidate ctl-x-r-map bindings.  Bind
      copy-rectangle-as-kill to C-x r w.
      
      Fixes: debbugs:739
      be755c79
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · ed9265fc
      Juanma Barranquero authored
      ed9265fc
    • Glenn Morris's avatar
      Auto-commit of generated files. · c9ca3f76
      Glenn Morris authored
      c9ca3f76
    • Glenn Morris's avatar
      Move GC_SETJMP_WORKS, GC_MARK_STACK from src/s to configure · 5b3f250f
      Glenn Morris authored
      * configure.ac (GC_SETJMP_WORKS, GC_MARK_STACK): Move here from src/s.
      (AH_BOTTOM): Move GC_SETJMP_WORKS GCC fallback to main body.
      
      * src/s/aix4-2.h, src/s/freebsd.h, src/s/gnu-linux.h, src/s/hpux10-20.h:
      * src/s/irix6-5.h, src/s/netbsd.h, src/s/sol2-6.h, src/s/unixware.h:
      Let configure set GC_SETJMP_WORKS, GC_MARK_STACK.
      5b3f250f
  5. 13 Jul, 2012 4 commits
    • Glenn Morris's avatar
      Move GC_MARK_SECONDARY_STACK from src/s to configure · 5b633342
      Glenn Morris authored
      * configure.ac (GC_MARK_SECONDARY_STACK): Move here from src/s.
      
      * src/s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it.
      5b633342
    • Glenn Morris's avatar
      Move SETUP_SLAVE_PTY from src/s to configure · 33d63ff4
      Glenn Morris authored
      * configure.ac (SETUP_SLAVE_PTY): Move here from src/s.
      (FIRST_PTY_LETTER, PTY_NAME_SPRINTF): Combine sol2/unixware cases.
      
      * src/s/usg5-4-common.h (SETUP_SLAVE_PTY): Let configure set it.
      * src/s/irix6-5.h (SETUP_SLAVE_PTY): No more need to unset it.
      33d63ff4
    • Andreas Schwab's avatar
      Fixes: debbugs:11938 · 7f5b3198
      Andreas Schwab authored
      * emacs-lisp/cl.el (labels): Remove spurious quote.
      7f5b3198
    • Jan Djärv's avatar
      Remove compiler warnings in objective-C files. · 0dc8cf50
      Jan Djärv authored
      * nsfns.m (x_set_icon_name, ns_set_name_internal)
      (ns_set_name_as_filename, ns_implicitly_set_icon_type)
      (x_set_icon_type, ns_lisp_to_cursor_type, Fns_read_file_name)
      (Fns_get_resource, Fns_set_resource, Fx_open_connection)
      (Fns_font_name, Fns_perform_service)
      (Fns_convert_utf8_nfd_to_nfc, ns_do_applescript)
      (Fns_do_applescript, Fx_show_tip): Use SSDATA where appropriate.
      (ns_set_name): Remove unused variable view.
      (x_set_menu_bar_lines): Remove unused variable olines.
      (x_set_tool_bar_lines): Remove unused variable root_window.
      (Fns_list_colors): Put () around assignment in while statement.
      (Fns_perform_service): Remove unused variable len.
      (Fns_display_usable_bounds): Remove unused variable top.
      (syms_of_nsfns): Remove unused variable i.
      
      * nsfont.m (ns_get_family, ns_lang_to_script, ns_otf_to_script)
      (ns_registry_to_script, ns_get_req_script, nsfont_open): Use SSDATA
      where appropriate.
      (ns_get_covering_families, ns_findfonts, nsfont_list_family): Put ()
      around assignment in loop statement.
      (nsfont_open): Remove unused variable i.
      (nsfont_open): Remove unused variable len.
      (nsfont_draw): Remove unused variable cs.
      
      * nsimage.m (ns_load_image, allocInitFromFile): Use SSDATA where
      appropriate.
      (setXBMColor): Remove unused variable len.
      (setPixmapData): Put () around assignment in loop statement.
      
      * nsmenu.m (ns_update_menubar, ns_menu_show, process_dialog)
      (initFromContents): Use SSDATA where appropriate.
      (ns_update_menubar): Add braces to ambigous if-else.
      (initWithTitle): Put () around assignment in if statement.
      (ns_menu_show): Remove unused variables window and keymap.
      (update_frame_tool_bar): Remove unused variable selected_p.
      (initWithContentRect): Remove unused variable this_cmd_name.
      
      * nsterm.h (menuDown): Add id as type to argument sender.
      (ns_display_info_for_name): Add Lisp_Object argument.
      (ns_term_init): Add Lisp_Object argument.
      (ns_map_event_to_object): Add void argument.
      (ns_string_from_pasteboard, ns_string_to_pasteboard): Add correct
      prototype with arguments and only declare if __OBJC__.
      (nxatoms_of_nsselect): Add void argument.
      (ns_lisp_to_cursor_type): Add Lisp_Object argument.
      (ns_alloc_autorelease_pool): Add void argument.
      (ns_release_autorelease_pool): Add void* argument.
      (ns_get_defaults_value): Add const char* argument.
      
      * nsterm.m (uRect): Only define if NS_IMPL_GNUSTEP.
      (x_free_frame_resources): Pass x_free_frame_resources to NSTRACE.
      (ns_lisp_to_color, ns_string_to_lispmod, ns_term_init)
      (ns_term_shutdown, requestService, initFrameFromEmacs): Use SSDATA
      where appropriate.
      (ns_exec_path, ns_load_path, changeFont): Put () around assignment used
      as boolean expression.
      (x_set_window_size): Remove unused variable toolbar.
      (ns_get_color_default, ns_mod_to_lisp): Remove.
      (ns_mouse_position): Remove unused variables xchar and ychar.
      (ns_compute_glyph_string_overhangs): Remove unused variable face.
      (ns_set_vertical_scroll_bar): Remove unused variable count.
      (ns_delete_terminal): Remove unused variable i.
      (ns_term_init): Remove unused variables r, g and b.
      (mouseDown): Remove unused variable window.
      (windowDidResize): Move definition of theWindow inside NS_IMPL_GNUSTEP.
      (initFrameFromEmacs): Remove unused variable vbextra.
      (mouseEntered): Remove unused variables p and dpyinfo.
      (mouseExited): Remove unused variables p and r.
      (ns_define_frame_cursor, ns_clear_frame_area)
      (ns_draw_window_cursor, ns_initialize_display_info): Make static.
      (menuDown): Assign [sender tag] to variable and cast the variable.
      0dc8cf50