1. 09 Nov, 2012 13 commits
  2. 08 Nov, 2012 22 commits
    • Katsumi Yamaoka's avatar
      gnus-art.el (gnus-article-browse-html-parts): Always replace charset in meta... · c01f0213
      Katsumi Yamaoka authored
      gnus-art.el (gnus-article-browse-html-parts): Always replace charset in meta tag with the one the part specifies in its header
      c01f0213
    • Stefan Monnier's avatar
      * src/lisp.h (XHASH): Redefine to be imperfect and fit in a Lisp int. · 61ddb1b9
      Stefan Monnier authored
      * src/fns.c (hashfn_eq, hashfn_eql, sxhash):
      * src/profiler.c (hashfn_profiler): Don't use XUINT on non-integers.
      * src/buffer.c (compare_overlays): Use XLI rather than XHASH.
      61ddb1b9
    • Paul Eggert's avatar
      Use same hash function for hashfn_profiler as for hash_string etc. · 04a2d0d3
      Paul Eggert authored
      * fns.c (SXHASH_COMBINE): Remove.  All uses replaced by sxhash_combine.
      * lisp.h (sxhash_combine): New inline function, with the contents
      of the old SXHASH_COMBINE.
      * profiler.c (hashfn_profiler): Use it, instead of having a
      special hash function containing a comparison that always yields 1.
      04a2d0d3
    • Stefan Monnier's avatar
      * src/xfaces.c (Qultra_light, Qreverse_oblique, Qreverse_italic) · de5ef41a
      Stefan Monnier authored
      (Qultra_condensed, Qextra_condensed, Qcondensed, Qsemi_condensed)
      (Qsemi_expanded, Qextra_expanded, Qexpanded, Qultra_expanded):
      Remove unused vars.
      de5ef41a
    • Jan Djärv's avatar
      * image.c (xpm_make_color_table_h): Fix compiler error because · a23c4171
      Jan Djärv authored
      make_hash_table changed.
      a23c4171
    • Jan Djärv's avatar
    • Stefan Monnier's avatar
      * lisp/files.el (hack-one-local-variable--obsolete): New function. · d41706aa
      Stefan Monnier authored
      (hack-one-local-variable): Use it for obsolete settings.
      d41706aa
    • Stefan Monnier's avatar
      85e55412
    • Stefan Monnier's avatar
      * lisp/progmodes/js.el: Prefer advice to cl-letf's sneaky rebinding. · be883b34
      Stefan Monnier authored
      (c-forward-sws, c-backward-sws, c-beginning-of-macro): Advise.
      (js--filling-paragraph): New var.
      (js-c-fill-paragraph): Bind it instead of letf-ing the functions.
      be883b34
    • Stefan Monnier's avatar
      Use ad-hoc comparison function for the profiler's hash-tables. · b7432bb2
      Stefan Monnier authored
      * src/profiler.c (Qprofiler_backtrace_equal, hashtest_profiler): New vars.
      (make_log): Use them.
      (handle_profiler_signal): Don't inhibit quit any longer since we don't
      call Fequal any more.
      (Ffunction_equal): New function.
      (cmpfn_profiler, hashfn_profiler): New functions.
      (syms_of_profiler): Initialize them.
      * src/lisp.h (struct hash_table_test): New struct.
      (struct Lisp_Hash_Table): Use it.
      * src/alloc.c (mark_object): Mark hash_table_test fields of hash tables.
      * src/fns.c (make_hash_table): Take a struct to describe the test.
      (cmpfn_eql, cmpfn_equal, cmpfn_user_defined, hashfn_eq, hashfn_eql)
      (hashfn_equal, hashfn_user_defined): Adjust to new calling convention.
      (hash_lookup, hash_remove_from_table): Move assertion checking of
      hashfn result here.  Check hash-equality before calling cmpfn.
      (Fmake_hash_table): Adjust call to make_hash_table.
      (hashtest_eq, hashtest_eql, hashtest_equal): New structs.
      (syms_of_fns): Initialize them.
      * src/emacs.c (main): Move syms_of_fns earlier.
      * src/xterm.c (syms_of_xterm):
      * src/category.c (hash_get_category_set): Adjust call to make_hash_table.
      * src/print.c (print_object): Adjust to new hash-table struct.
      * src/composite.c (composition_gstring_put_cache): Adjust to new hashfn.
      b7432bb2
    • Eli Zaretskii's avatar
      More fixes for bug #12806. · 88002743
      Eli Zaretskii authored
       src/w32fns.c (modifier_set): Fix handling of Scroll Lock when the
       value of w32-scroll-lock-modifier is neither nil nor one of the
       known key modifiers.
      88002743
    • Julien Danjou's avatar
      Add Rakefile in auto-mode-list for ruby-mode · cabc040a
      Julien Danjou authored
      * progmodes/ruby-mode.el (auto-mode-alist): Add Rakefile in
        `auto-mode-alist' (Bug#12835).
      cabc040a
    • Stefan Monnier's avatar
      * perl-mode.el: Add coding cookie. · a81ad225
      Stefan Monnier authored
      a81ad225
    • Stefan Monnier's avatar
      * lisp/progmodes/perl-mode.el (perl-prettify-symbols): New defcustom. · 79b3e376
      Stefan Monnier authored
      (perl--prettify-symbols-alist): New const.
      (perl--font-lock-compose-symbol, perl--font-lock-symbols-keywords): New funs.
      (perl-font-lock-keywords-2): Use them.
      (perl-electric-noindent-p): New function.
      (perl-mode): Use it to set up electric-indent-mode.
      (perl-electric-terminator, perl-indent-command): Mark obsolete.
      (perl-mode-map): Remove bindings for them.
      (perl-imenu-generic-expression, perl-outline-level):
      Match functions&packages in column>0.
      79b3e376
    • Stefan Monnier's avatar
      * lisp/env.el (env--substitute-vars-regexp): New const. · 3b11e6ac
      Stefan Monnier authored
      (substitute-env-vars): Use it.  Add `only-defined' arg.
      * lisp/net/tramp.el (tramp-replace-environment-variables): Use it.
      3b11e6ac
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment): · e703069f
      Stefan Monnier authored
      Byte-compile *before* eval in eval-and-compile.
      (byte-compile-log-warning): Remove redundant inhibit-read-only.
      (byte-compile-file-form-autoload): Don't hide actual definition.
      (byte-compile-maybe-guarded): Accept `functionp' as well.
      e703069f
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
    • Dmitry Antipov's avatar
      Shrink struct vectorlike_header to the only size field. · 914adc42
      Dmitry Antipov authored
      * lisp.h (enum pvec_type): Avoid explicit enum member values.
      Adjust comment.
      (enum More_Lisp_Bits): Change PSEUDOVECTOR_SIZE_BITS and
      PVEC_TYPE_MASK to arrange new bitfield in the vector header.
      (PSEUDOVECTOR_REST_BITS, PSEUDOVECTOR_REST_MASK): New members.
      (PSEUDOVECTOR_AREA_BITS): New member used to extract subtype
      information from the vector header.  Adjust comment.
      (XSETPVECTYPE, XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR)
      (PSEUDOVECTOR_TYPEP, DEFUN): Adjust to match new vector header
      layout.
      (XSETSUBR, SUBRP): Adjust to match new Lisp_Subr layout.
      (struct vectorlike_header): Remove next member.  Adjust comment.
      (struct Lisp_Subr): Add convenient header.  Adjust comment.
      (allocate_pseudovector): Adjust prototype.
      * alloc.c (mark_glyph_matrix, mark_face_cache, allocate_string)
      (sweep_string, lisp_malloc): Remove useless prototypes.
      (enum mem_type): Adjust comment.
      (NEXT_IN_FREE_LIST): New macro.
      (SETUP_ON_FREE_LIST): Adjust XSETPVECTYPESIZE usage.
      (Fmake_bool_vector): Likewise.
      (struct large_vector): New type to represent allocation unit for
      the vectors with the memory footprint more than VBLOOCK_BYTES_MAX.
      (large_vectors): Change type to struct large_vector.
      (allocate_vector_from_block): Simplify.
      (PSEUDOVECTOR_NBYTES): Replace with...
      (vector_nbytes): ...new function.  Adjust users.
      (sweep_vectors): Adjust processing of large vectors.
      (allocate_vectorlike): Likewise.
      (allocate_pseudovector): Change type of 3rd arg to enum pvec_type.
      Add easserts.  Adjust XSETPVECTYPESIZE usage.
      (allocate_buffer): Use BUFFER_PVEC_INIT.
      (live_vector_p): Adjust to match large vector.
      * buffer.c (init_buffer_once): Use BUFFER_PVEC_INIT.
      * buffer.h (struct buffer): Add next member.
      (BUFFER_LISP_SIZE, BUFFER_REST_SIZE, BUFFER_PVEC_INIT):
      New macros.
      (FOR_EACH_BUFFER): Adjust to match struct buffer change.
      * fns.c (internal_equal): Adjust to match enum pvec_type change.
      (copy_hash_table): Adjust to match vector header change.
      * lread.c (defsubr): Use XSETPVECTYPE.
      * .gdbinit (xpr, xbacktrace): Adjust to match vector header change.
      (xvectype): Likewise.  Print PVEC_NORMAL_VECTOR for regular vectors.
      (xvecsize): New command.
      914adc42
    • Stefan Monnier's avatar
    • Dmitry Antipov's avatar
      * keyboard.c (event_to_kboard): Do not dereference · c66f21ea
      Dmitry Antipov authored
      frame_or_window field of SELECTION_REQUEST_EVENT
      and SELECTION_CLEAR_EVENT events (Bug#12814).
      * xterm.h (struct selection_input_event): Adjust comment.
      c66f21ea
    • Michael Albinus's avatar
      * os.texi (Notifications): Update descriptions of · a43d02f0
      Michael Albinus authored
      notifications-notify, notifications-close-notification and
      notifications-get-capabilities according to latest code changes.
      Add notifications-get-server-information.
      a43d02f0
  3. 07 Nov, 2012 5 commits