1. 16 Sep, 2014 3 commits
    • Dmitry Antipov's avatar
      Avoid more integer overflows on string size calculations. · 3e67a981
      Dmitry Antipov authored
      * category.c (Fmake_category_set):
      * xdisp.c (get_overlay_arrow_glyph_row):
      * w32font.c (intern_font_name): Prefer ptrdiff_t to int.
      3e67a981
    • Dmitry Antipov's avatar
      If USE_LOCAL_ALLOCATORS, allocate even more Lisp objects on stack. · b98b1a83
      Dmitry Antipov authored
      * charset.c (load_charset_map_from_file): Use scoped_list2
      and build_local_string.
      * buffer.c (Fother_buffer, other_buffer_safely, init_buffer):
      * emacs.c (init_cmdargs, decode_env_path):
      * fileio.c (Fexpand_file_name):
      * fns.c (maybe_resize_hash_table) [ENABLE_CHECKING]:
      * frame.c (x_get_arg):
      * keyboard.c (safe_run_hooks_error):
      * lread.c (load_warn_old_style_backquotes):
      * xdisp.c (Fcurrent_bidi_paragraph_direction):
      * xfns.c (x_default_scroll_bar_color_parameter, select_visual):
      * xselect.c (x_clipboard_manager_error_1)
      (x_clipboard_manager_save_all):
      * xterm.c (x_term_init): Use build_local_string.
      b98b1a83
    • Stefan Monnier's avatar
      * lisp/msb.el (msb--make-keymap-menu, msb-menu-bar-update-buffers): · 3a41eb66
      Stefan Monnier authored
      Don't add outdated key-shortcut cache.
      
      Fixes: debbugs:18482
      3a41eb66
  2. 15 Sep, 2014 6 commits
    • Eli Zaretskii's avatar
      Support playing on MS-Windows non-ASCII sound files using Unicode APIs. · a7fc3ab8
      Eli Zaretskii authored
       src/sound.c [WINDOWSNT]: Include w32common.h and mbstring.h.
       (SOUND_WARNING) [WINDOWSNT]: Include in do..while and improve the
       error message format.  Use message_with_string to have non-ASCII
       file names properly displayed.
       (do_play_sound) [WINDOWSNT]: Use Unicode APIs to play sound files
       when w32-unicode-filenames is non-nil, but not on Windows 9X,
       where these APIs are not available even in UNICOWS.DLL.  Improve
       the format of error messages and include the file name in them
       where appropriate.
       (Fplay_sound_internal) [WINDOWSNT]: Make the MS-Windows branch
       call play-sound-functions, per documentation.
       src/w32.c (w32_get_long_filename, w32_get_short_filename): Constify
       the input file name arguments.
       src/w32.h (w32_get_long_filename, w32_get_short_filename): Update
       prototypes.
      a7fc3ab8
    • Dmitry Antipov's avatar
      If USE_LOCAL_ALLOCATORS, allocate some Lisp objects on stack. · edb0288b
      Dmitry Antipov authored
      * lisp.h (local_cons, local_list1, local_list2, local_list3)
      [USE_LOCAL_ALLOCATORS]: New macros.
      [!USE_LOCAL_ALLOCATORS]: Fall back to regular functions.
      (build_local_string): Avoid argument name expansion clash with
      make_local_string.
      * alloc.c (toplevel)
      [USE_LOCAL_ALLOCATORS && GC_MARK_STACK != GC_MAKE_GCPROS_NOOPS]:
      Preprocessor guard to avoid impossible configuration.
      * charset.c (Ffind_charset_region, Ffind_charset_string):
      Use make_local_vector.
      * lread.c (read1, substitute_object_recurse): Use scoped_cons.
      * textprop.c (Fput_text_property, Fadd_face_text_property):
      Use scoped_list2.
      (copy_text_properties): Use local_cons and local_list3.
      * chartab.c (uniprop_table):
      * data.c (wrong_choice, wrong_range):
      * doc.c (get_doc_string):
      * editfns.c (format2):
      * fileio.c (Fexpand_file_name, auto_save_error):
      * fns.c (Fyes_or_no_p):
      * font.c (font_parse_xlfd, font_parse_family_registry, font_add_log):
      * fontset.c (Fset_fontset_font):
      * keyboard.c (echo_add_key, echo_dash, parse_menu_item)
      (read_char_minibuf_menu_prompt):
      * keymap.c (silly_event_symbol_error, describe_vector):
      * menu.c (single_menu_item):
      * minibuf.c (Fread_buffer):
      * process.c (status_message, Fformat_network_address)
      (server_accept_connection): Use make_local_string and
      build_local_string.  Prefer compound literals where appropriate.
      edb0288b
    • Daniel Colascione's avatar
      Tweak sort docstring · 497daa12
      Daniel Colascione authored
      * fns.c (Fsort): Tweak sort docstring.
      497daa12
    • Daniel Colascione's avatar
      Update documentation for `insert-register' · fc68497a
      Daniel Colascione authored
        * doc/emacs/regs.texi (Text Registers): Update end-user documentation
        to reflect `insert-register' interface change.
        
        * doc/lispref/text.texi (Registers): Make `insert-register' documentation
        reflect interface change.
      fc68497a
    • Daniel Colascione's avatar
      Update documentation for `insert-register' · 63519f60
      Daniel Colascione authored
      * doc/emacs/regs.texi (Text Registers): Update end-user documentation
      to reflect `insert-register' interface change.
      
      * doc/lispref/text.texi (Registers): Make `insert-register' documentation
      reflect interface change.
      63519f60
    • Glenn Morris's avatar
  3. 14 Sep, 2014 6 commits
  4. 13 Sep, 2014 10 commits
    • Eli Zaretskii's avatar
      etc/NEWS: Mention HTML support in Rmail. · c330a172
      Eli Zaretskii authored
      c330a172
    • Christopher Schmidt's avatar
      * etc/NEWS: Mention nil `calendar-mode-line-format' will not modify · 2805ba19
      Christopher Schmidt authored
      the mode line of the calendar buffer.
      * lisp/calendar/calendar.el (calendar-update-mode-line):
      Do not overwrite mode-line-format if calendar-mode-line-format is nil.
      (Bug#18467)
      2805ba19
    • Leo Liu's avatar
      * emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Add · 85b3d352
      Leo Liu authored
      pcase-exhaustive.
      
      * emacs-lisp/pcase.el (pcase--dontwarn-upats): New var.
      (pcase--expand): Use it.
      (pcase-exhaustive): New macro.
      
      Fixes: debbugs:16567
      85b3d352
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 4d837e51
      Glenn Morris authored
      4d837e51
    • Eli Zaretskii's avatar
      Fix HTML rendering by shr-insert-document in Rmail. · 5f9d7c7c
      Eli Zaretskii authored
       lisp/mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
       using the specified transfer-encoding, if any, or 'undecided'.
       (rmail-mime-render-html-shr): Bind shr-width to nil, so lines are
       broken at the window margin.
      
      Fixes: debbugs:4258
      5f9d7c7c
    • Eli Zaretskii's avatar
      Decode HTML text before presenting it in Rmail. · cac270ff
      Eli Zaretskii authored
       lisp/mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
       using the specified transfer-encoding, if any, or 'undecided'.
      
      Fixes: debbugs:4258
      cac270ff
    • Ken Olum's avatar
      Support rendering of HTML parts in Rmail (bug #4258). · cea1424e
      Ken Olum authored
       lisp/mail/rmailmm.el (rmail-mime-process): Handle text/html
       separately from other text/ types.  Suppress tagline for
       multipart body.
       (rmail-mime-parse): Don't change visibility of tagline here.
       (rmail-mime-set-bulk-data, rmail-mime-insert-bulk):
       Handle text/html specially.
       (rmail-mime-render-html-function,rmail-mime-prefer-html): New variables.
       (rmail-mime-insert-html, rmail-mime-render-html-shr)
       (rmail-mime-render-html-lynx): New functions.
       (rmail-mime-fix-inserted-faces): New function.
       (rmail-mime-process-multipart): Find the best part to show
       following rmail-mime-prefer-html if set.
       (rmail-mime-searching): New variable.
       (rmail-search-mime-message): Bind rmail-mime-searching to
       suppress rendering while searching.
      cea1424e
    • Eli Zaretskii's avatar
      Fix expansion and encoding of sound file names on MS-Windows. · a6cc335a
      Eli Zaretskii authored
       src/sound.c (Fplay_sound_internal): Encode the sound file name in
       the ANSI codepage.  Expand it against data-directory, as per docs,
       not against the current directory.  No need to make a local copy
       of the file name; pass the encoded file name directly to
       do_play_sound.  (Bug#18463)
       src/w32.c (ansi_encode_filename): If w32_get_short_filename returns
       NULL, and the file name is not encodable in ANSI codepage, return
       the string with "?" replacement characters, which will fail the
       caller.  This avoids returning a random value in that case.
      a6cc335a
    • Eli Zaretskii's avatar
      Resurrect sound support on MS-Windows that was lost in transition. · e868e853
      Eli Zaretskii authored
       configure.ac (HAVE_SOUND): Check for mmsystem.h header that
       defines the sound stuff on MS-Windows.  (Bug#18463)
      e868e853
    • Dmitry Antipov's avatar
      Prefer ptrdiff_t to int and avoid integer overflows. · 55998321
      Dmitry Antipov authored
      * fileio.c (make_temp_name):
      * font.c (font_parse_family_registry): Avoid integer
      overflow on string size calculation.
      * data.c (Faset): Likewise for byte index.
      55998321
  5. 12 Sep, 2014 3 commits
  6. 11 Sep, 2014 9 commits
  7. 10 Sep, 2014 3 commits