1. 27 Sep, 2012 3 commits
    • Chong Yidong's avatar
      Fix last change in verilog-mode.el. · b7f42161
      Chong Yidong authored
      * progmodes/verilog-mode.el (verilog-mode-release-emacs): Fix last
      change; value should be t.
      b7f42161
    • Stefan Monnier's avatar
      * lisp/image-mode.el: Use lexical-binding. · 83600dc8
      Stefan Monnier authored
      (image-mode-winprops): Use t to stand for the window of a buffer that's
      not displayed.
      * lisp/doc-view.el (doc-view-new-window-function): Handle t in winprops.
      (doc-view-enlarge): Make it a real nop if the size is not changed.
      (doc-view-display): Handle the case where the buffer is not (yet?)
      displayed in any window.
      (doc-view-saved-settings): New var.
      (doc-view-mode): Use it.
      (doc-view-fallback-mode): Set it.
      83600dc8
    • Stefan Monnier's avatar
      * lisp/minibuf-eldef.el: Make it possible to replace (default ...) with [...]. · a2e770db
      Stefan Monnier authored
      Set lexical-binding.
      (minibuffer-eldef-shorten-default): New var.
      (minibuffer-default-in-prompt-regexps): Use it for new default.
      (minibuf-eldef-setup-minibuffer): Add replacement functionality.
      a2e770db
  2. 26 Sep, 2012 6 commits
    • Juanma Barranquero's avatar
      Fix ChangeLog typos. · 41e9b956
      Juanma Barranquero authored
      41e9b956
    • Juanma Barranquero's avatar
      Update to Unicode 6.2. · e3b60857
      Juanma Barranquero authored
      * admin/unidata/BidiMirroring.txt:
      * admin/unidata/UnicodeData.txt: Update to Unicode 6.2.
      
      * lisp/international/uni-bidi.el:
      * lisp/international/uni-category.el:
      * lisp/international/uni-name.el:
      * lisp/international/uni-numeric.el: Regenerate.
      e3b60857
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/testcover.el (testcover-after): Add gv-expander. · 07b1a5fb
      Stefan Monnier authored
      (testcover-reinstrument): Simplify with CSE.
      07b1a5fb
    • Juanma Barranquero's avatar
    • Stefan Monnier's avatar
      * lisp/profiler.el (profiler-start): Don't prompt for choice when there · 234148bf
      Stefan Monnier authored
      isn't any.
      (profiler-stop): Use new semantics of profiler-*-stop.
      (profiler-reset, profiler--report-cpu): Don't signal an error if the
      cpu profiler is not available.
      * src/profiler.c (Fprofiler_cpu_stop, Fprofiler_memory_stop):
      Return whether the profiler was running, instead of signaling an error
      if it wasn't.
      234148bf
    • Wilson Snyder's avatar
      Synch verilog-mode.el to latest upstream version. · 179f044b
      Wilson Snyder authored
      * verilog-mode.el (verilog-auto-ascii-enum, verilog-auto-inout)
      (verilog-auto-input, verilog-auto-insert-lisp)
      (verilog-auto-output, verilog-auto-output-every, verilog-auto-reg)
      (verilog-auto-reg-input, verilog-auto-tieoff, verilog-auto-undef)
      (verilog-auto-unused, verilog-auto-wire)
      (verilog-forward-or-insert-line): Fix AUTOs with no trailing
      newline.  Reported by Andrew Jones.
      (verilog-auto-inst) Support expanding $clog2 in AUTOINST.
      Reported by Brad Dobbie.
      (verilog-batch-delete-trailing-whitespace): Create
      verilog-batch-delete-trailing-whitespace.  Reported by Brad
      Dobbie.
      (verilog-auto-inout-param): Support AUTOINOUTPARAM for copying
      parameters from another module.  Reported by Dan Katz.
      (verilog-auto, verilog-auto-assign-modport)
      (verilog-auto-inout-modport): Add AUTOASSIGNMODPORT and
      AUTOINOUTMODPORT for UVM interface module shell generation.
      Reported by Brad Dobbie.
      (verilog-auto-inst-interfaced-ports): Make default nil, as more
      standard behavior.
      (verilog-auto): Fix AUTO parameters with parenthesis arguments.
      Reported by Matt Martin.
      179f044b
  3. 25 Sep, 2012 5 commits
    • Martin Rudalics's avatar
      Improve resizing of minibuffer windows (Bug#12419). · 9c52dd5a
      Martin Rudalics authored
      * window.el (window--resize-child-windows): When resizing child
      windows proportionally, process them in reverse order to
      preserve the "when splitting a window the new one gets the odd
      line" behavior.
      (window--resize-root-window-vertically): When resizing the
      minibuffer window try to affect only windows at the bottom of the
      frame.  (Bug#12419)
      9c52dd5a
    • Chong Yidong's avatar
      Minor fixes for the function obsolescence feature. · 863666eb
      Chong Yidong authored
      * lisp/help-fns.el (help-fns--obsolete): Handle macros properly.
      
      * lisp/subr.el (declare): Doc fix.
      863666eb
    • Chong Yidong's avatar
      Use declare forms, where possible, to mark obsolete functions. · 59f7af81
      Chong Yidong authored
      * lisp/allout.el (allout-passphrase-hint-string): Likewise.
      (allout-init): Use a declare form to mark obsolete.
      
      * lisp/calendar/calendar.el (calendar-version):
      * lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
      (icalendar-convert-diary-to-ical):
      * lisp/cus-edit.el (custom-mode):
      * lisp/ansi-color.el (ansi-color-unfontify-region):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
      * lisp/progmodes/which-func.el (which-func-update-1): Use
      define-obsolete-function-alias.
      
      * lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
      this function obsolete.
      
      * lisp/calendar/cal-x.el (calendar-two-frame-setup)
      (calendar-only-one-frame-setup, calendar-one-frame-setup):
      * lisp/calendar/calendar.el (american-calendar, european-calendar)
      (calendar-for-loop):
      * lisp/comint.el (comint-dynamic-simple-complete)
      (comint-dynamic-complete-as-filename, comint-unquote-filename):
      * lisp/desktop.el (desktop-load-default):
      * lisp/dired-x.el (dired-omit-here-always)
      (dired-hack-local-variables, dired-default-directory):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/emacs-lock.el (toggle-emacs-lock):
      * lisp/epa.el (epa-display-verify-result):
      * lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
      (epg-passphrase-callback-function):
      * lisp/eshell/esh-util.el (eshell-for):
      * lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
      (eshell-add-to-window-buffer-names):
      * lisp/files.el (locate-file-completion):
      * lisp/imenu.el (imenu-example--create-c-index)
      (imenu-example--create-lisp-index)
      (imenu-example--lisp-extract-index-name)
      (imenu-example--name-and-position):
      * lisp/international/mule-cmds.el (princ-list):
      * lisp/international/mule-diag.el (decode-codepage-char):
      * lisp/international/mule-util.el (detect-coding-with-priority):
      * lisp/iswitchb.el (iswitchb-read-buffer):
      * lisp/mail/mailalias.el (mail-complete):
      * lisp/mail/sendmail.el (mail-sent-via):
      * lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
      (mouse-major-mode-menu):
      * lisp/password-cache.el (password-read-and-add):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/sh-script.el (sh-maybe-here-document):
      * lisp/replace.el (query-replace-regexp-eval):
      * lisp/savehist.el (savehist-load):
      * lisp/simple.el (choose-completion-delete-max-match):
      * lisp/term.el (term-dynamic-simple-complete):
      * lisp/vc/ediff-init.el (ediff-check-version):
      * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
      * lisp/vc/vc.el (vc-diff-switches-list):
      * lisp/view.el (view-return-to-alist-update): Likewise.
      
      * lisp/iswitchb.el (iswitchb-read-buffer): Move code of
      iswitchb-define-mode-map here, and delete that obsolete function.
      
      * lisp/subr.el (eval-next-after-load, makehash, insert-string)
      (assoc-ignore-representation, assoc-ignore-case): Use declare to
      mark obsolete.
      (mode-line-inverse-video): Variable deleted.
      
      * lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
      this applies to functions.
      
      * lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
      
      * lisp/international/mule-util.el (string-to-sequence): Remove.
      
      * lisp/net/newst-backend.el (newsticker-cache-filename):
      * lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
      incorrect obsolescence declaration.
      
      * lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
      font-lock-reference-face.
      
      * lisp/url/url-parse.el (url-recreate-url-attributes):
      * lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
      obsolete.
      
      * src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
      59f7af81
    • Glenn Morris's avatar
    • Glenn Morris's avatar
  4. 24 Sep, 2012 8 commits
    • Fabián Ezequiel Gallina's avatar
      * progmodes/python.el: · dc4f818b
      Fabián Ezequiel Gallina authored
      (python-shell-send-buffer): Better handling of "if __name__ ==
      '__main__':" conditionals when sending the buffer.
      dc4f818b
    • Glenn Morris's avatar
    • Fabián Ezequiel Gallina's avatar
      Enhancements for triple-quote string syntax. · 8fb8b88f
      Fabián Ezequiel Gallina authored
      * progmodes/python.el (python-quote-syntax): Remove.
      (python-syntax-propertize-function): New value.
      (python-syntax-count-quotes, python-syntax-stringify): New
      functions.
      8fb8b88f
    • Stefan Monnier's avatar
      Rewrite sampler to use Elisp hash-tables. · 3d80c99f
      Stefan Monnier authored
      * src/profiler.c: Remove filtering functionality.
      (is_in_trace, Qgc): Remove vars.
      (make_log, record_backtrace, Fsample_profiler_log):
      Rewrite, using Elisp hash-tables.
      (approximate_median, evict_lower_half): New functions.
      (cpu_log): Rename from sample_log.
      (cpu_gc_count): New var.
      (Fsample_profiler_reset, Fmemory_profiler_reset): Remove.
      (sigprof_handler): Add count to cpu_gc_count during GC, detected via
      backtrace_list.
      (block_sigprof, unblock_sigprof): Remove.
      (gc_probe, mark_profiler): Remove functions.
      (syms_of_profiler): Staticpro cpu_log and memory_log.
      
      * lisp/profiler.el (profiler-sample-interval): Move before first use.
      Change default to 1ms.
      (profiler-entry=, profiler-backtrace-reverse, profiler-log-fixup-slot)
      (profiler-calltree-elapsed<, profiler-calltree-elapsed>): Remove functions.
      (profiler-entry-format): Don't use type-of.
      (profiler-slot, profiler-log): Remove structs.
      (profiler-log-timestamp, profiler-log-type, profiler-log-diff-p):
      Redefine for new log representation.
      (profiler-log-diff, profiler-log-fixup, profiler-calltree-build-1):
      Rewrite for new log representation.
      (profiler-calltree): Remove `elapsed' fields.
      (profiler-calltree-count<, profiler-report-make-entry-part):
      Remove gc special case.
      (profiler-calltree-find): Use equal.
      (profiler-calltree-walk): Remove `args'; rely on closures instead.
      (profiler-calltree-compute-percentages-1): Remove; inlined.
      (profiler-calltree-compute-percentages): Simplify.
      (profiler-report-log, profiler-report-reversed)
      (profiler-report-order): Use defvar-local.
      (profiler-report-line-format): Remove `elapsed', do a bit of CSE.
      (profiler-report-mode-map): Remove up/down bindings.
      (profiler-report-make-buffer-name): Simplify by CSE.
      (profiler-report-mode): Remove redundant code.
      (profiler-report-expand-entry, profiler-report-collapse-entry):
      Use inhibit-read-only.
      (profiler-report-render-calltree-1): Simplify by CSE.
      (profiler-reset): Rewrite for new subroutines.
      (profiler--report-cpu): Rename from sample-profiler-report.
      (profiler--report-memory): Rename from memory-profiler-report.
      
      * src/alloc.c (Fgarbage_collect): Record itself in backtrace_list.
      Don't set is_in_trace any more.  Don't call mark_profiler.
      Only call gc_probe for the memory profiler.
      (syms_of_alloc): Define Qautomatic_gc.
      
      * src/lisp.h (SXHASH_COMBINE): Move back to...
      * src/fns.c (SXHASH_COMBINE): ...here.
      
      * src/xdisp.c (Qautomatic_redisplay): New constant.
      (redisplay_internal): Record itself in backtrace_list.
      (syms_of_xdisp): Define Qautomatic_redisplay.
      
      * .dir-locals.el (indent-tabs-mode): Remove personal preference.
      3d80c99f
    • Chong Yidong's avatar
      Fix two references to deleted obsolete variables. · 0c765e5f
      Chong Yidong authored
      Also, fix the copyright header for lisp/emacs-lisp/gv.el.
      
      * lisp/vc/log-edit.el (log-edit-require-final-newline)
      (log-edit-changelog-full-paragraphs): Default to t.
      0c765e5f
    • Chong Yidong's avatar
      Remove several obsolete vars and functions unlikely to be still in use. · a5f2b6ec
      Chong Yidong authored
      * lisp/vc/log-edit.el (cvs-changelog-full-paragraphs)
      (cvs-commit-buffer-require-final-newline): Obsolete variables
      removed.
      
      * lisp/font-lock.el (font-lock-reference-face): Use
      define-obsolete-variable-alias.
      
      * lisp/international/mule.el (set-char-table-default): Remove.
      (set-coding-priority, make-coding-system, generic-char-p)
      (charset-list, charset-bytes, charset-id): Use declare to mark
      obsolete.
      
      * lisp/mail/supercite.el (sc-version): Remove obsolete function.
      (sc-describe): Don't mark as obsolete, since it is bound.
      (sc-submit-bug-report): Remove.
      
      * lisp/progmodes/compile.el (compile-internal): Remove obsolete
      function.
      (compilation-parse-errors-function): Fix typo.
      
      * lisp/vc/emerge.el (emerge-mode): Make it an obsolete alias.
      (emerge-version): Remove.
      
      * lisp/vc/pcvs-defs.el (cvs-buffer-name-alist)
      (cvs-invert-ignore-marks): Remove references to obsolete vars.
      * lisp/vc/vc-hooks.el (vc-default-registered): Don't use
      vc-master-templates.
      
      * lisp/vc/pcvs-defs.el (cvs-diff-buffer-name, cvs-diff-ignore-marks)
      * lisp/vc/vc-hooks.el (vc-ignore-vc-files, vc-master-templates)
      * lisp/vc/vc.el (vc-checkout-carefully): Likewise.
      
      * src/chartab.c (Fset_char_table_default): Obsolete function removed.
      a5f2b6ec
    • Chong Yidong's avatar
      Fix uses of long-obsolete font-lock-reference face. · 6c27f0f8
      Chong Yidong authored
      * generic-x.el (rul-generic-mode): Use font-lock-constant-face.
      * calendar/calendar.el (calendar-font-lock-keywords):
      * calendar/diary-lib.el (diary-font-lock-keywords)
      (diary-fancy-font-lock-keywords):
      * textmodes/reftex-sel.el (reftex-insert-docstruct):
      * textmodes/reftex-index.el (reftex-insert-index):
      * textmodes/reftex-cite.el (reftex-format-bib-entry):
      * progmodes/ruby-mode.el (ruby-font-lock-keywords):
      * progmodes/ps-mode.el (ps-mode-font-lock-keywords-1):
      * progmodes/prolog.el (prolog-font-lock-keywords):
      * progmodes/idlwave.el (idlwave-idl-keywords):
      * progmodes/ada-mode.el (ada-font-lock-keywords):
      * net/snmp-mode.el (snmp-font-lock-keywords-3): Likewise.
      
      * font-lock.el (font-lock-reference-face): Use
      define-obsolete-variable-alias.
      6c27f0f8
    • Glenn Morris's avatar
  5. 23 Sep, 2012 7 commits
  6. 22 Sep, 2012 10 commits
    • Juri Linkov's avatar
      * lisp/dired.el (dired-mode-map): Add [remap read-only-mode] for · 51c4474e
      Juri Linkov authored
      `dired-toggle-read-only'.
      
      Fixes: debbugs:12462
      51c4474e
    • Glenn Morris's avatar
      ChangeLog typo fix · bd909927
      Glenn Morris authored
      (not that I remember suggesting anything...)
      bd909927
    • Martin Rudalics's avatar
      Implement temp-output-buffer-show in subr.el. · 43bf5e8e
      Martin Rudalics authored
      * subr.el (temp-output-buffer-show): New function.
      (with-output-to-temp-buffer): Call temp-output-buffer-show
      instead of internal-temp-output-buffer-show.
      43bf5e8e
    • Chong Yidong's avatar
      * simple.el (read-only-mode): Doc fix. · 3171e303
      Chong Yidong authored
      3171e303
    • Chong Yidong's avatar
      * files.el (ctl-x-map): Bind C-x C-q to read-only-mode. · 3df47cd5
      Chong Yidong authored
      Fixes: debbugs:12462
      3df47cd5
    • Chong Yidong's avatar
      Misc doc fixes. · c88b867f
      Chong Yidong authored
      * searching.texi (Replacing Match): Minor clarification.
      
      * lisp/repeat.el (repeat): Doc fix.
      
      * lisp/simple.el (shell-command-on-region): Doc fix.
      
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
      
      * cmds.c (Fforward_char, Fbackward_char): Doc fix.
      
      * editfns.c (Fline_beginning_position): Doc fix.
      (Fline_end_position): Doc fix.
      
      * minibuf.c (Finternal_complete_buffer): Doc fix.
      
      * search.c (Freplace_match): Doc fix.
      
      Fixes: debbugs:12325 debbugs:12391 debbugs:12416 debbugs:12414 debbugs:10909 debbugs:12348
      c88b867f
    • Eli Zaretskii's avatar
      Fix bugs #12447 and #12326 with infloop causes by idle timers, update docs. · df9685f3
      Eli Zaretskii authored
       src/keyboard.c (timer_check_2): Move calculation of 'timers' and
       'idle_timers' from here ...
       (timer_check): ... to here.  Use Fcopy_sequence to copy the timer
       lists, to avoid infloops when the timer does something stupid,
       like reinvoke itself with the same or smaller time-out.
      
       lisp/emacs-lisp/timer.el (run-with-idle-timer)
       (timer-activate-when-idle): Warn against reinvoking an idle timer
       from within its own timer action.
      
       doc/lispref/os.texi (Idle Timers): Warn against reinvoking an idle timer
       from within its own timer action.
      df9685f3
    • Martin Rudalics's avatar
      Make Temp Buffer Resize Mode less intrusive (Bug#1806). · 8e17c9ba
      Martin Rudalics authored
      * window.c (Fsplit_window_internal): Handle only Qt value of
      Vwindow_combination_limit separately.
      (Qtemp_buffer_resize): New symbol.
      (Vwindow_combination_limit): New default value.  Rewrite
      doc-string.
      * cus-start.el (window-combination-limit): Add new optional
      values.
      * window.el (temp-buffer-window-show)
      (window--try-to-split-window): Obey new values of
      window-combination-limit.
      (split-window): Test window-combination-limit for t instead of
      non-nil.
      (display-buffer-at-bottom): New buffer display action function.
      * help.el (temp-buffer-resize-regexps): New option.
      (temp-buffer-resize-mode): Rewrite doc-string.
      (resize-temp-buffer-window): Obey temp-buffer-resize-regexps.
      Don't resize reused window.  Suggested by Glen Morris.
      8e17c9ba
    • Stefan Merten's avatar
      * rst.el: Revamp section title faces. · 48a24920
      Stefan Merten authored
      (rst-official-version)
      (rst-package-emacs-version-alist): Sync with official version
      V1.4.0.
      (rst-faces-defaults, rst-set-level-default)
      (rst-level-face-max, rst-level-face-base-color)
      (rst-level-face-base-light, rst-level-face-format-light)
      (rst-level-face-step-light, rst-define-level-faces): Obsolete.
      (rst-adornment-faces-alist): Match new setup.
      (rst-level-1, rst-level-2, rst-level-3, rst-level-4)
      (rst-level-5, rst-level-6): New faces.
      48a24920
    • Chong Yidong's avatar
      Fix auto-save and locking for indirect buffers. · 82f8cd94
      Chong Yidong authored
      * lisp/simple.el (undo): Handle indirect buffers.
      
      * buffer.c (Fset_buffer_modified_p): Handle indirect buffers.
      
      Fixes: debbugs:8207
      82f8cd94
  7. 20 Sep, 2012 1 commit
    • Juri Linkov's avatar
      * lisp/replace.el (query-replace-read-from): Use `read-regexp' instead · eb2deaff
      Juri Linkov authored
      of `read-from-minibuffer' when `regexp-flag' is non-nil.
      (occur-read-primary-args): Use `read-regexp' instead of
      `read-string'.
      (multi-occur-in-matching-buffers): Use `read-regexp' instead of
      `read-from-minibuffer'.
      * lisp/isearch.el (isearch-occur): Use `read-regexp' instead of
      `read-string'.
      * lisp/dired.el (dired-read-regexp): Use `read-regexp' instead of
      `read-from-minibuffer'.
      * lisp/progmodes/grep.el (grep-read-regexp): Use `read-regexp' instead
      of `read-string'.
      
      Fixes: debbugs:7567
      eb2deaff