1. 17 Jun, 2013 18 commits
    • Paul Eggert's avatar
    • Dmitry Gutov's avatar
      b5bcaee5
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Possible fix for bug #14630, which continues bug #14062. · ca463325
      Eli Zaretskii authored
       src/w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
       unless we know that the window w's frame is a frame object.
      ca463325
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      lisp/startup.el: Fix bug#14639. · 551e07e5
      Juanma Barranquero authored
       (command-line): Expand package name returned by `package--description-file'.
      551e07e5
    • Lars Magne Ingebrigtsen's avatar
      Implement new function `add-face-text-property' · 708e05f6
      Lars Magne Ingebrigtsen authored
      * doc/lispref/text.texi (Changing Properties): Document `add-face-text-property'.
      
      * src/textprop.c (property_set_type): New enum.
      (add_properties): Allow appending/prepending text properties.
      (add_text_properties_1): Factored out of Fadd_text_properties.
      (Fadd_text_properties): Moved all the code into
      add_text_properties_1.
      (Fadd_face_text_property): New function that calls
      add_text_properties_1.
      708e05f6
    • Kenichi Handa's avatar
      2c149f93
    • Kenichi Handa's avatar
      display.texi (Face Attributes): Refer to "Low-Level font" (not "Font... · 3da95318
      Kenichi Handa authored
      display.texi (Face Attributes): Refer to "Low-Level font" (not "Font Selection") in the explanation of :font attribute.
      3da95318
    • Lars Magne Ingebrigtsen's avatar
      lisp/gnus/mm-decode.el (mm-convert-shr-links): Override the shr local map, so... · 544d4594
      Lars Magne Ingebrigtsen authored
      lisp/gnus/mm-decode.el (mm-convert-shr-links): Override the shr local map, so that Gnus commands work
      
      lisp/gnus/shr.el (shr-render-td): Support horizontal alignment
      
      Make eww use `add-face-text-property', too
      lisp/gnus/shr.el (shr-make-overlay): Obsolete function
      lisp/gnus/eww.el (eww-put-color): Removed
      (eww-colorize-region): Use `add-face-text-property'
      
      Get correct presedence for font data
      lisp/gnus/shr.el (shr-add-font): Append face data, so that we get the correct presedence: The innermost value (which is applied first) wins
      544d4594
    • Glenn Morris's avatar
      Auto-commit of generated files. · 372c83ba
      Glenn Morris authored
      372c83ba
    • Katsumi Yamaoka's avatar
    • Lars Magne Ingebrigtsen's avatar
      Convert shr.el from using overlays into using text properties · 7304e4dd
      Lars Magne Ingebrigtsen authored
      * eww.el (eww-mode-map): Use `shr-next-link' (etc) instead of the
      widget commands, since we're no longer using widgets for links.
      
      * mm-decode.el (mm-convert-shr-links): New function to convert
      new-style shr URL links into widgets.
      (mm-shr): Use it.
      
      * shr.el (shr-next-link): New command.
      (shr-previous-link): New command.
      (shr-urlify): Don't use `widget-convert', because that's slow.
      (shr-put-color-1): Use `add-face-text-property' instead of overlays,
      because collecting the overlays and reapplying them when generating
      tables is slow.
      (shr-insert-table): Ditto.
      7304e4dd
    • Dmitry Gutov's avatar
      * lisp/emacs-lisp/package.el (package-load-descriptor): Do not call · d363bffb
      Dmitry Gutov authored
      `emacs-lisp-mode', just use its syntax table.
      d363bffb
    • Paul Eggert's avatar
      Use functions, not macros, for XINT etc. · 84575e67
      Paul Eggert authored
      In lisp.h, prefer functions to function-like macros, and
      constants to object-like macros, when either will do.  This:
       . simplifies use, as there's no more need to worry about
         arguments' side effects being evaluated multiple times.
       . makes the code easier to debug on some platforms.
      However, when using gcc -O0, keep using function-like macros
      for a few critical operations, for performance reasons.
      This sort of thing isn't needed with gcc -Og, but -Og
      is a GCC 4.8 feature and isn't widely-enough available yet.
      Also, move functions from lisp.h to individual modules when possible.
      From a suggestion by Andreas Schwab in <http://bugs.gnu.org/11935#68>.
      * alloc.c (XFLOAT_INIT, set_symbol_name):
      * buffer.c (CHECK_OVERLAY):
      * chartab.c (CHECK_CHAR_TABLE, set_char_table_ascii)
      (set_char_table_parent):
      * coding.c (CHECK_NATNUM_CAR, CHECK_NATNUM_CDR):
      * data.c (BOOLFWDP, INTFWDP, KBOARD_OBJFWDP, OBJFWDP, XBOOLFWD)
      (XKBOARD_OBJFWD, XINTFWD, XOBJFWD, CHECK_SUBR, set_blv_found)
      (blv_value, set_blv_value, set_blv_where, set_blv_defcell)
      (set_blv_valcell):
      * emacs.c (setlocale) [!HAVE_SETLOCALE]:
      * eval.c (specpdl_symbol, specpdl_old_value, specpdl_where)
      (specpdl_arg, specpdl_func, backtrace_function, backtrace_nargs)
      (backtrace_args, backtrace_debug_on_exit):
      * floatfns.c (CHECK_FLOAT):
      * fns.c (CHECK_HASH_TABLE, CHECK_LIST_END)
      (set_hash_key_and_value, set_hash_next, set_hash_next_slot)
      (set_hash_hash, set_hash_hash_slot, set_hash_index)
      (set_hash_index_slot):
      * keymap.c (CHECK_VECTOR_OR_CHAR_TABLE):
      * marker.c (CHECK_MARKER):
      * textprop.c (CHECK_STRING_OR_BUFFER):
      * window.c (CHECK_WINDOW_CONFIGURATION):
      Move here from lisp.h, and make these functions static rather than
      extern inline.
      * buffer.c (Qoverlayp):
      * data.c (Qsubrp):
      * fns.c (Qhash_table_p):
      * window.c (Qwindow_configuration_p):
      Now static.
      * lisp.h: Remove the abovementioned defns and decls.
      
      * configure.ac (WARN_CFLAGS): Remove -Wbad-function-cast,
      as it generates bogus warnings about reasonable casts of calls.
      * alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]:
      Remove enum lsb_bits; no longer needed.
      (allocate_misc, free_misc): Don't use XMISCTYPE as an lvalue.
      * buffer.c (Qoverlap):
      * data.c (Qsubrp):
      * fns.c (Qhash_table_p):
      Now extern, so lisp.h can use these symbols.
      * dispextern.h: Include character.h, for MAX_CHAR etc.
      (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE)
      (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
      (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P)
      (GLYPH_CODE_P): Move here from lisp.h.
      (GLYPH_CHAR, GLYPH_FACE, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
      (GLYPH_CHAR_VALID_P, GLYPH_CODE_P): Now functions, not macros.
      (GLYPH_MODE_LINE_FACE): Now enums, not macros.
      * eval.c (Fautoload): Cast XUNTAG output to intptr_t, since
      XUNTAG now returns void *.
      * lisp.h (lisp_h_XLI, lisp_h_XIL, lisp_h_CHECK_LIST_CONS)
      (lisp_h_CHECK_NUMBER CHECK_SYMBOL, lisp_h_CHECK_TYPE)
      (lisp_h_CONSP, lisp_h_EQ, lisp_h_FLOATP, lisp_h_INTEGERP)
      (lisp_h_MARKERP, lisp_h_MISCP, lisp_h_NILP)
      (lisp_h_SET_SYMBOL_VAL, lisp_h_SYMBOL_CONSTANT_P)
      (lisp_h_SYMBOL_VAL, lisp_h_SYMBOLP, lisp_h_VECTORLIKEP)
      (lisp_h_XCAR, lisp_h_XCDR, lisp_h_XCONS, lisp_h_XHASH)
      (lisp_h_XPNTR, lisp_h_XSYMBOL):
      New macros, renamed from their sans-lisp_h_ counterparts.
      (XLI, XIL, CHECK_LIST_CONS, CHECK_NUMBER CHECK_SYMBOL)
      (CHECK_TYPE, CONSP, EQ, FLOATP, INTEGERP, MARKERP)
      (MISCP, NILP, SET_SYMBOL_VAL, SYMBOL_CONSTANT_P, SYMBOL_VAL, SYMBOLP)
      (VECTORLIKEP, XCAR, XCDR, XCONS, XHASH, XPNTR, XSYMBOL):
      If compiling via GCC without optimization, define these as macros
      in addition to inline functions.
      To disable this, compile with -DINLINING=0.
      (LISP_MACRO_DEFUN, LISP_MACRO_DEFUN_VOID): New macros.
      (check_cons_list) [!GC_CHECK_CONS_LIST]: Likewise.
      (make_number, XFASTINT, XINT, XTYPE, XUNTAG): Likewise, but
      hand-optimize only in the USE_LSB_TAG case, as GNUish hosts do that.
      (INTMASK, VALMASK): Now macros, since static values cannot be
      accessed from extern inline functions.
      (VALMASK): Also a constant, for benefit of old GDB.
      (LISP_INT_TAG_P): Remove; no longer needed as the only caller
      is INTEGERP, which can fold it in.
      (XLI, XIL, XHASH, XTYPE,XINT, XFASTINT, XUINT)
      (make_number, XPNTR, XUNTAG, EQ, XCONS, XVECTOR, XSTRING, XSYMBOL)
      (XFLOAT, XPROCESS, XWINDOW, XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE)
      (XSUB_CHAR_TABLE, XBOOL_VECTOR, make_lisp_ptr, CHECK_TYPE)
      (CHECK_STRING_OR_BUFFER, XCAR, XCDR, XSETCAR, XSETCDR, CAR, CDR)
      (CAR_SAFE, CDR_SAFE, STRING_MULTIBYTE, SDATA, SSDATA, SREF, SSET)
      (SCHARS, STRING_BYTES, SBYTES, STRING_SET_CHARS, STRING_COPYIN, AREF)
      (ASIZE, ASET, CHAR_TABLE_REF_ASCII, CHAR_TABLE_REF)
      (CHAR_TABLE_SET, CHAR_TABLE_EXTRA_SLOTS, SYMBOL_VAL, SYMBOL_ALIAS)
      (SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL, SET_SYMBOL_ALIAS)
      (SET_SYMBOL_BLV, SET_SYMBOL_FWD, SYMBOL_NAME, SYMBOL_INTERNED_P)
      (SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P, SYMBOL_CONSTANT_P)
      (XHASH_TABLE, HASH_TABLE_P, CHECK_HASH_TABLE, HASH_KEY, HASH_VALUE)
      (HASH_NEXT, HASH_HASH, HASH_INDEX, HASH_TABLE_SIZE)
      (XMISC, XMISCANY, XMARKER, XOVERLAY, XSAVE_VALUE, XFWDTYPE)
      (XINTFWD, XBOOLFWD, XOBJFWD, XBUFFER_OBJFWD, XKBOARD_OBJFWD)
      (XFLOAT_DATA, XFLOAT_INIT, NILP, NUMBERP, NATNUMP)
      (RANGED_INTEGERP, CONSP, FLOATP, MISCP, STRINGP, SYMBOLP)
      (INTEGERP, VECTORLIKEP, VECTORP, OVERLAYP)
      (MARKERP, SAVE_VALUEP, AUTOLOADP, INTFWDP, BOOLFWDP, OBJFWDP)
      (BUFFER_OBJFWDP, KBOARD_OBJFWDP, PSEUDOVECTOR_TYPEP)
      (PSEUDOVECTORP, WINDOW_CONFIGURATIONP, PROCESSP, WINDOWP)
      (TERMINALP, SUBRP, COMPILEDP, BUFFERP, CHAR_TABLE_P)
      (SUB_CHAR_TABLE_P, BOOL_VECTOR_P, FRAMEP, IMAGEP, ARRAYP)
      (CHECK_LIST, CHECK_LIST_CONS, CHECK_LIST_END, CHECK_STRING)
      (CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
      (CHECK_VECTOR, CHECK_VECTOR_OR_STRING, CHECK_ARRAY)
      (CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER, CHECK_WINDOW)
      (CHECK_WINDOW_CONFIGURATION, CHECK_PROCESS, CHECK_SUBR)
      (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, XFLOATINT)
      (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT, CHECK_OVERLAY)
      (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR, CHECK_NATNUM_CAR)
      (CHECK_NATNUM_CDR, FUNCTIONP, SPECPDL_INDEX, LOADHIST_ATTACH)
      Now functions.
      (check_cons_list) [!GC_CHECK_CONS_LIST]: New empty function.
      (LISP_MAKE_RVALUE, TYPEMASK): Remove; no longer needed.
      (VALMASK): Define in one place rather than in two, merging the
      USE_LSB_TAG parts; this is simpler.
      (aref_addr, gc_aset, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM)
      (max, min, struct Lisp_String, UNSIGNED_CMP, ASCII_CHAR_P):
      Move up, to avoid use before definition.
      Also include "globals.h" earlier, for the same reason.
      (make_natnum): New function.
      (XUNTAG): Now returns void *, not intptr_t, as this means fewer casts.
      (union Lisp_Fwd, BOOLFWDP, BOOL_VECTOR_P, BUFFER_OBJFWDP, BUFFERP)
      (CHAR_TABLE_P, CHAR_TABLE_REF_ASCII, CONSP, FLOATP, INTEGERP, INTFWDP)
      (KBOARD_OBJFWDP, MARKERP, MISCP, NILP, OBJFWDP, OVERLAYP, PROCESSP)
      (PSEUDOVECTORP, SAVE_VALUEP, STRINGP, SUB_CHAR_TABLE_P, SUBRP, SYMBOLP)
      (VECTORLIKEP, WINDOWP, Qoverlayp, char_table_ref, char_table_set)
      (char_table_translate, Qarrayp, Qbufferp, Qbuffer_or_string_p)
      (Qchar_table_p, Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp)
      (Qnil, Qnumberp, Qsubrp, Qstringp, Qsymbolp, Qvectorp)
      (Qvector_or_char_table_p, Qwholenump, Ffboundp, wrong_type_argument)
      (initialized, Qhash_table_p, extract_float, Qprocessp, Qwindowp)
      (Qwindow_configuration_p, Qimage): New forward declarations.
      (XSETFASTINT): Simplify by rewriting in terms of make_natnum.
      (STRING_COPYIN): Remove; unused.
      (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Remove these macros, replacing with ...
      (xcar_addr, xcdr_addr): New functions.  All uses changed.
      (IEEE_FLOATING_POINT): Now a constant, not a macro.
      (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE)
      (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
      (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P)
      (GLYPH_CODE_P): Move to dispextern.h, to avoid define-before-use.
      (TYPE_RANGED_INTEGERP): Simplify.
      (Qsubrp, Qhash_table_p, Qoverlayp): New extern decls.
      (setlocale, fixup_locale, synchronize_system_messages_locale)
      (synchronize_system_time_locale) [!HAVE_SETLOCALE]:
      Now empty functions, not macros.
      (functionp): Return bool, not int.
      * window.c (Qwindow_configuration_p): Now extern,
      so window.h can use it.
      * window.h (Qwindowp): Move decl back to lisp.h.
      84575e67
    • Juanma Barranquero's avatar
      lisp/progmodes/prog-mode.el: Force font-lock to deal with `composition' prop. · f612933b
      Juanma Barranquero authored
      (prog-prettify-install): Add `composition' to `font-lock-extra-managed-props'
      if any prettifying keyword is added.
      (prog--prettify-font-lock-compose-symbol): Use ?\s instead of ?\ .
      (prog-mode): Use `setq-local'.
      f612933b
    • Stefan Monnier's avatar
      * lisp/international/characters.el (standard-case-table): Set syntax of ?» · db3b7db5
      Stefan Monnier authored
      and ?« to punctuation.
      db3b7db5
    • Stefan Monnier's avatar
      * lisp/gnus/sieve.el (sieve-edit-script): Avoid beginning-of-buffer. · 7545bd25
      Stefan Monnier authored
      * lisp/gnus/shr.el (browse-url): Require `url'.
      * lisp/gnus/eww.el (url): Require format-spec.
      7545bd25
  2. 16 Jun, 2013 6 commits
    • Lars Magne Ingebrigtsen's avatar
      lisp/gnus/eww.el (eww-browse-url): Don't add a User-Agent (twice), because... · 5c3087e9
      Lars Magne Ingebrigtsen authored
      lisp/gnus/eww.el (eww-browse-url): Don't add a User-Agent (twice), because that makes Bing refuse connection
      5c3087e9
    • Gnus developers's avatar
      2013-06-16 Lars Magne Ingebrigtsen <larsi@gnus.org> · c74cb344
      Gnus developers authored
      * eww.el (eww-display-html): Default to using the entire window width.
      * shr.el (shr-make-table): Cache the table rendering at the table level, and not the <td> level. This is a bit faster.
      * eww.el (eww-render): Go to the correct ID when given URLs ending with #id.
      * shr.el (shr-tag-li): Don't require a new paragraph, since other browsers don't.
      (shr-expand-url): Respect #anchor links.
      (shr-parse-base): Chop off the anchor before using.
      (shr-descend): Respect display: none.
      (shr-descend): Allow marking elements that have certain IDs.
      * eww.el (eww-tag-textarea): Use `text' instead of `editable-field'.
      * shr.el (shr-expand-url): Don't bug out on zero-length links.
      * eww.el (eww-tag-textarea): Support <textarea>.
      
      2013-06-16 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
      * shr.el (shr-dom-to-xml): Fixed function call.
      * eww.el (eww): New group.
      (eww-header-line-format): New custom variable.
      (eww-current-title): New variable.
      (eww-display-html): Update header and handle title tag.
      (eww-update-header-line-format): New function.
      (eww-tag-title): New function.
      * shr.el (shr-dom-to-xml): (shr-dom-to-xml): New function.
      (shr-tag-svg): Add support for the SVG tag.
      (shr-bullet): New custom variable.
      (shr-tag-li): Support custom bullet in unordered lists.
      2013-06-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
      * shr.el (shr-expand-url): Respect // URLs.
      * eww.el (eww-tag-body): Override the shr body rendering so that we can
      put a background colour onto the entire buffer.
      (eww-render): When being redirected, use the redirect URL as the new
      base URL.
      * shr.el (shr-parse-base): Fix parsing error.
      * eww.el (eww-submit): Pass the base in to `shr-expand-url'.
      * shr.el (shr-parse-base): New function.
      (shr-expand-url): Use it to expand relative URLs reliably.
      c74cb344
    • Glenn Morris's avatar
      Auto-commit of generated files. · 28237e48
      Glenn Morris authored
      28237e48
    • Paul Eggert's avatar
      * configure.ac: Report ACL usage at the end. · 2a540847
      Paul Eggert authored
      Fixes: debbugs:14612
      2a540847
    • Juanma Barranquero's avatar
      * lisp/progmodes/prog-mode.el: Fix bug#14595. · f3d674df
      Juanma Barranquero authored
        (prog--prettify-font-lock-compose-symbol): Save relevant match data
        before calling `syntax-ppss'.
      f3d674df
    • Juanma Barranquero's avatar
      etc/NEWS: Fix typos. · 02f473a4
      Juanma Barranquero authored
      02f473a4
  3. 15 Jun, 2013 12 commits
  4. 14 Jun, 2013 4 commits