1. 17 May, 2012 2 commits
  2. 13 May, 2012 2 commits
    • Chong Yidong's avatar
      Backport fix for Bug#11382 from trunk · 6cb820ba
      Chong Yidong authored
    • Stefan Monnier's avatar
      Move define-obsolete-variable-alias before the var's definition. · e5bd0a28
      Stefan Monnier authored
      * lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index):
      * lisp/tooltip.el (tooltip-hook):
      * lisp/textmodes/reftex-toc.el (reftex-toc-map):
      * lisp/textmodes/reftex-sel.el (reftex-select-label-map)
      * lisp/textmodes/reftex-index.el (reftex-index-map)
      * lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map):
      * lisp/progmodes/meta-mode.el (meta-mode-map):
      * lisp/novice.el (disabled-command-hook):
      * lisp/loadhist.el (unload-hook-features-list):
      * lisp/frame.el (blink-cursor):
      * lisp/files.el (find-file-not-found-hooks, write-file-hooks)
      * lisp/emulation/tpu-edt.el (GOLD-map):
      * lisp/emacs-lock.el (emacs-lock-from-exiting):
      * lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
      * lisp/emacs-lisp/chart.el (chart-map):
      * lisp/dos-fns.el (register-name-alist):
      * lisp/dired-x.el (dired-omit-files-p):
      * lisp/desktop.el (desktop-enable):
      * lisp/cus-edit.el (custom-mode-hook):
      * lisp/buff-menu.el (buffer-menu-mode-hook):
      * lisp/bookmark.el (bookmark-read-annotation-text-func)
      * lisp/allout.el (allout-mode-deactivate-hook)
      (allout-exposure-change-hook, allout-structure-added-hook)
      (allout-structure-deleted-hook, allout-structure-shifted-hook):
      * lisp/dirtrack.el (dirtrack-toggle, dirtrackp, dirtrack-debug-toggle)
      (dirtrack-debug): Move call to define-obsolete-variable-alias so it
      comes before the corresponding variable's definition.
  3. 11 May, 2012 2 commits
    • Stefan Monnier's avatar
      * lisp/progmodes/prolog.el: Use SMIE. Cleanup regexp setup. · 2171cea5
      Stefan Monnier authored
      (prolog-upper-case-string, prolog-lower-case-string)
      (prolog-atom-char-regexp, prolog-atom-regexp): Initialize in defconst.
      (prolog-use-smie, prolog-smie-grammar): New vars.
      (prolog-smie-forward-token, prolog-smie-backward-token)
      (prolog-smie-rules): New funs.
      (prolog-comment-indent): Remove.
      (prolog-mode-variables): Use default comment indentation instead.
      Setup SMIE.
      (prolog-build-case-strings, prolog-set-atom-regexps): Remove.
      (prolog-mode): Don't call them any more.
      (prolog-electric-colon, prolog-electric-dash)
      (prolog-edit-menu-insert-move): Use indent-according-to-mode.
    • Stefan Monnier's avatar
      * lisp/progmodes/sh-script.el: Use post-self-insert-hook&electric-pair-mode. · ff46c759
      Stefan Monnier authored
      Provide SMIE-based indentation (not enabled by default yet).
      (sh-mode-map): Don't bind electric keys.
      Use electric-pair-mode instead of skeleton-pair.
      (sh-assignment-regexp): Fit within 80 columns.
      (sh-indent-supported): Specify actual shell name instead of boolean.
      (sh--maybe-here-document): New fun, from sh-maybe-here-document.
      (sh-maybe-here-document): Use it.  Make obsolete.
      (sh-electric-here-document-mode) New minor mode.
      (sh-mode): Use it.  Don't set sh-indent-supported-here here.
      (sh-smie-sh-grammar, sh-smie--sh-operators, sh-smie--sh-operators-re)
      (sh-smie--sh-operators-back-re, sh-indent-after-continuation)
      (sh-smie-rc-grammar, sh-use-smie): New vars.
      (sh-smie--keyword-p, sh-smie--newline-semi-p, sh-smie--sh-keyword-p)
      (sh-smie-sh-forward-token, sh-smie--looking-back-at-continuation-p)
      (sh-smie-sh-backward-token, sh-smie--continuation-start-indent)
      (sh-smie-sh-rules, sh-smie-rc-rules, sh-smie--sh-keyword-in-p)
      (sh-smie--rc-after-special-arg-p, sh-smie-rc-backward-token)
      (sh-smie-sh-rules, sh-smie--rc-newline-semi-p): New functions.
      (sh-set-shell): Use smie-setup if requested.
  4. 09 May, 2012 1 commit
  5. 08 May, 2012 1 commit
  6. 06 May, 2012 1 commit
  7. 05 May, 2012 1 commit
    • Stefan Monnier's avatar
      Use set-temporary-overlay-map. · df96ab1e
      Stefan Monnier authored
      * lisp/repeat.el: Use lexical-binding.
      (repeat-last-self-insert, repeat-num-input-keys-at-self-insert)
      (repeat-undo-count): Remove.
      * lisp/progmodes/octave-mod.el (octave-abbrev-start):
      * lisp/progmodes/f90.el (f90-abbrev-start):
      * lisp/face-remap.el (text-scale-adjust):
      * lisp/kmacro.el (kmacro-call-macro): Use set-temporary-overlay-map.
  8. 04 May, 2012 2 commits
    • Stefan Monnier's avatar
      Add new error and function `user-error'. · 71873e2b
      Stefan Monnier authored
      * lisp/subr.el (user-error): New function.
      * lisp/window.el (switch-to-buffer):
      * lisp/vc/smerge-mode.el (smerge-resolve-function, smerge-resolve)
      * lisp/simple.el (previous-matching-history-element)
      (next-matching-history-element, goto-history-element, undo-more)
      * lisp/progmodes/etags.el (visit-tags-table-buffer, find-tag-tag)
      (find-tag-noselect, find-tag-in-order, etags-goto-tag-location)
      (next-file, tags-loop-scan, list-tags, complete-tag):
      * lisp/progmodes/compile.el (compilation-loop):
      * lisp/mouse.el (mouse-minibuffer-check):
      * lisp/man.el (Man-bgproc-sentinel, Man-goto-page):
      * lisp/info.el (Info-find-node-2, Info-extract-pointer, Info-history-back)
      (Info-history-forward, Info-follow-reference, Info-menu)
      (Info-extract-menu-item, Info-extract-menu-counting)
      (Info-forward-node, Info-backward-node, Info-next-menu-item)
      (Info-last-menu-item, Info-next-preorder, Info-last-preorder)
      (Info-next-reference, Info-prev-reference, Info-index)
      (Info-index-next, Info-follow-nearest-node)
      * lisp/imenu.el (imenu--make-index-alist)
      (imenu-default-create-index-function, imenu-add-to-menubar):
      * lisp/files.el (basic-save-buffer, recover-file):
      * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-continue, checkdoc-comments)
      (checkdoc-message-text, checkdoc-defun):
      * lisp/dabbrev.el (dabbrev-completion, dabbrev--abbrev-at-point):
      * lisp/cus-edit.el (customize-changed-options, customize-rogue)
      (customize-saved, custom-variable-set, custom-variable-mark-to-save)
      (custom-variable-reset-backup, custom-face-mark-to-reset-standard)
      * lisp/completion.el (check-completion-length):
      * lisp/comint.el (comint-search-arg)
      (comint-replace-by-expanded-history-before-point, comint-send-input)
      (comint-copy-old-input, comint-backward-matching-input)
      (comint-goto-process-mark, comint-set-process-mark):
      * lisp/calendar/calendar.el (calendar-cursor-to-date): Use it.
      * lisp/bindings.el (debug-ignored-errors): Remove regexps, add `user-error'.
      * src/data.c (PUT_ERROR): New macro.
      (syms_of_data): Use it.  Add new error type `user-error'.
      * src/undo.c (user_error): New function.
      (Fprimitive_undo): Use it.
      * src/print.c (print_error_message): Adjust print style for `user-error'.
      * src/keyboard.c (user_error): New function.
      (Fexit_recursive_edit, Fabort_recursive_edit): Use it.
    • Chong Yidong's avatar
      Convert more defvars to defcustoms. · 78f3273a
      Chong Yidong authored
      * dos-w32.el (file-name-buffer-file-type-alist)
      * ffap.el (ffap-menu-regexp):
      * follow.el (follow-debug):
      * forms.el (forms--debug):
      * iswitchb.el (iswitchb-all-frames):
      * ido.el (ido-all-frames):
      * mail/feedmail.el (feedmail-mail-send-hook)
      * mail/footnote.el (footnote-signature-separator):
      * mail/mailabbrev.el (mail-alias-separator-string)
      * mail/rmail.el (rmail-speedbar-match-folder-regexp):
      * progmodes/idlwave.el (idlwave-libinfo-file)
      (idlwave-library-routines): Convert defvars to defcustoms.
      * mail/rmail.el (rmail-decode-mime-charset):
      * progmodes/idlw-shell.el (idlwave-shell-print-expression-function)
      * facemenu.el (facemenu-unlisted-faces): Delete obsolete vars.
      * doc/lispref/os.texi (Timers): Use defopt for timer-max-repeats.
  9. 03 May, 2012 1 commit
    • Wilson Snyder's avatar
      Merge verilog-mode.el from upstream. · 47086495
      Wilson Snyder authored
      * progmodes/verilog-mode.el (font-lock-keywords):
      Fix mis-highligting auto.  Reported by Craig Barner.
      (verilog-auto, verilog-auto-undef): Add AUTOUNDEF to remove
      defines from global name space. Reported by Dan Dever.
      (verilog-auto-reset, verilog-auto-reset-widths)
      (verilog-auto-tieoff): Support using unbased numbers for
      (verilog-submit-bug-report): Update variable list.
      (verilog-read-auto-params): Fix AUTOINPUT regexps containing
      parenthesis from not matching. Reported by Michael Rytting.
      (verilog-auto-template-lint): Fix hash error when linting modules
      with no used templates.
      (verilog-warn, verilog-warn-error)
      (verilog-warn-fatal): When non-interactive report multiple
      warnings before exiting.  Suggested by Brad Dobbie.
      (verilog-auto-template-lint, verilog-auto-template-warn-unused)
      (verilog-read-auto-template): Add `verilog-auto-template-warn-unused'
      to report unused template errors.  Reported by Brad Dobbie.
      (verilog-read-decls): Fix AUTOWIRE etc on supply0, supply1 type
      nets, bug438. Reported by Vns Blore.
      (verilog-auto-inout-module, verilog-auto-reg)
      (verilog-read-decls, verilog-read-sub-decls-sig)
      (verilog-signals-edit-wire-reg, verilog-signals-with):
      Fix passing of Verilog data types in ANSI input/output ports
      such as "output logic" into the AUTOs. Special case "wire" and
      "reg" for backwards compatibility presuming Verilog 2001.
      (verilog-auto-ascii-enum): Add "auto enum" as alias.
      (verilog-preprocess): Fix replication of preprocess output.
      Reported by Brad Dobbie.
      Create verilog-auto-inst-interfaced-ports, bug429.
      Reported by Julian Gorfajn.
      (verilog-before-save-font-hook): New variable.
      (verilog-modi-cache-results, verilog-save-font-mod-hooked)
      (verilog-save-font-mods): Wrap disabling fontification, reported
      by David Rogoff.
      (verilog-do-indent, verilog-pretty-declarations-auto)
      (verilog-sk-def-reg): Fix obeying `verilog-auto-lineup', bug305.
      Reported by Pierre-David Pfister.
      (verilog-set-auto-endcomments): Fix endtask auto comments outside
      of class declarations, bug292.  Reported by Kevin Heilman.
      (verilog-read-decls): Fix 'parameter type' not appearing in
      AUTOINSTPARAM, bug340.  Reported by Jonathan Greenlaw.
      (verilog-auto-logic): Fix when AUTOLOGIC present to properly do
      AUTOINPUTs, bug411. Reported by Jonathan Greenlaw.
      (verilog-read-auto-lisp): Avoid syntax-ppss warning on AUTOLISP.
      Reported by David Kravitz.
      * progmodes/verilog-mode.el (verilog-pretty-expr): Don't line up
      assignment with tests in ifs and for loops.
      (verilog-extended-complete-re, verilog-complete-reg): Change so
      that DPI inport functions don't look like fuction declarations.
      (verilog-pretty-expr): Don't line up assignment
      operations to the test and increment in if and for loops
      (verilog-extended-complete-re, verilog-complete-reg): Change so
      that DPI inport functions don't look like fuction declarations
  10. 27 Apr, 2012 2 commits
  11. 26 Apr, 2012 1 commit
    • Stefan Monnier's avatar
      Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT). · e95a67dc
      Stefan Monnier authored
      * lisp/term/ns-win.el (ns-define-service):
      * lisp/progmodes/pascal.el (pascal-goto-defun):
      * lisp/progmodes/js.el (js--read-tab):
      * lisp/progmodes/etags.el (tags-lazy-completion-table):
      * lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
      * lisp/emacs-lisp/ewoc.el (ewoc--wrap):
      * lisp/emacs-lisp/assoc.el (aput, adelete, amake):
      * lisp/doc-view.el (doc-view-convert-current-doc):
      * lisp/url/url.el (url-retrieve-synchronously):
      * lisp/vc/diff.el (diff-no-select): Replace lexical-let by lexical-binding.
  12. 25 Apr, 2012 3 commits
  13. 24 Apr, 2012 4 commits
  14. 22 Apr, 2012 2 commits
    • Chong Yidong's avatar
      Tweaks to Customize interface. Set custom-reset-button-menu to t. · cf20dee0
      Chong Yidong authored
      * cus-edit.el (custom-commands, custom-reset-menu)
      (Custom-reset-standard): Tweak labels.
      (custom-reset-button-menu): Change default to t.
      (custom-buffer-create-internal): For the custom-reset-button-menu
      case, put the revert button first.
      (custom-group-subtitle): New face.
      (custom-group-value-create): Align docstring to a specific column.
      * wid-edit.el (widget-documentation-link-add): Don't handle
      indentation in this function.
      (widget-documentation-string-indent-to): New function.
      (widget-documentation-string-value-create): Use it.
      * autorevert.el (auto-revert):
      * epg-config.el (epg):
      * ibuffer.el (ibuffer):
      * mpc.el (mpc):
      * ses.el (ses):
      * eshell/eshell.el (eshell):
      * net/ange-ftp.el (ange-ftp):
      * progmodes/ebnf2ps.el (postscript):
      * progmodes/flymake.el (flymake):
      * progmodes/prolog.el (prolog):
      * progmodes/verilog-mode.el (verilog-mode):
      * progmodes/which-func.el (which-func):
      * textmodes/picture.el (picture):
      * textmodes/tildify.el (tildify):
      * vc/ediff.el (ediff): Tweak defgroups to improve presentation in
      customization buffers.
    • Alan Mackenzie's avatar
  15. 21 Apr, 2012 2 commits
  16. 20 Apr, 2012 3 commits
    • Eli Zaretskii's avatar
      Fix bug #11279 with sending command blocks to GDB. · 9ee9f470
      Eli Zaretskii authored
       lisp/progmodes/gdb-mi.el (gdb-control-level): New variable.
       (gdb): Make it buffer-local and init to zero.
       (gdb-control-commands-regexp): New variable.
       (gdb-send): Don't wrap in "-interpreter-exec console" if
       gdb-control-level is positive.  Increment gdb-control-level
       whenever the command matches gdb-control-commands-regexp, and
       decrement it each time the command is "end".  (Bug#11279)
    • Chong Yidong's avatar
      Fix last change. · 8912063b
      Chong Yidong authored
      * lisp/progmodes/gdb-mi.el (gdb-inferior-io-sentinel): Don't do
      anything if gdb process is killed.
    • Chong Yidong's avatar
      Fixes for pty handling in gdb-mi.el and process.c. · f30d612a
      Chong Yidong authored
      * lisp/progmodes/gdb-mi.el (gdb): Revert 2012-04-19 change.
      (gdb-inferior-io--init-proc): New function.
      (gdb-init-1): Use it.
      (gdb-inferior-io-sentinel): New sentinel for the gdb-inferior pty,
      responsible for allocating a new pty and hooking it to gdb when
      the old pty gets an EIO due to process exit.
      (gdb-delchar-or-quit): New command.  Bind it in gdb-mi buffers.
      (gdb-tooltip-print): Don't use obsolete tooltip-use-echo-area.
      (gdb-inferior-io--maybe-delete-pty): Move into gdb-reset.
      * src/process.c (wait_reading_process_output): If EIO occurs on a pty,
      set the status to "failed" and ensure that sentinel is run.
      * doc/lispref/processes.texi (Asynchronous Processes): Mention nil
      argument to start-process.
  17. 19 Apr, 2012 2 commits
    • Juanma Barranquero's avatar
      Remove some `toggle-read-only' warnings. · 376cbacc
      Juanma Barranquero authored
      * lisp/bs.el (bs-toggle-readonly): Call `toggle-read-only' interactively.
      * lisp/descr-text.el (describe-char):
        lisp/progmodes/python.el (python-describe-symbol):
        Don't call `toggle-read-only', set `buffer-read-only'.
    • Chong Yidong's avatar
      Delete the gdb-inferior pty when the gdb process exits. · b668fa6e
      Chong Yidong authored
      * lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
      function to call delete-process on the gdb-inferior buffer's pty.
      (gdb-reset): Use it, instead of relying on kill-buffer to kill the
      pty process.
      (gdb-update): New arg to suppress talking to the gdb process.
      (gdb-done-or-error): Use it.
      (gdb-stopped-functions): Rename from gdb-stopped-hooks.
      (gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
      sentinel not being called.
      * lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.
      Fixes: debbugs:11273
  18. 18 Apr, 2012 2 commits
  19. 17 Apr, 2012 1 commit
  20. 16 Apr, 2012 3 commits
  21. 14 Apr, 2012 2 commits