1. 13 May, 2012 3 commits
    • Chong Yidong's avatar
      Adapt Electric Buffer Menu to recent Buffer Menu changes. · 0ae03b6a
      Chong Yidong authored
      * lisp/ebuff-menu.el (electric-buffer-list): Put electric buffer menu
      command descriptions in this docstring, instead of the docstring
      of electric-buffer-menu-mode.  Code cleanups.
      (electric-buffer-menu-mode): Use define-derived-mode.  Rename from
      Electric-buffer-menu-mode.
      (electric-buffer-update-highlight): Minor code cleanup.
      
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-format)
      (tabulated-list-entries, tabulated-list-padding)
      (tabulated-list-sort-key): Make permanent-local.
      
      Fixes: debbugs:11455
      0ae03b6a
    • Michael Albinus's avatar
    • 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)
      (reftex-select-bib-map):
      * lisp/textmodes/reftex-index.el (reftex-index-map)
      (reftex-index-phrases-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)
      (write-contents-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)
      (bookmark-exit-hooks):
      * 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.
      e5bd0a28
  2. 12 May, 2012 2 commits
  3. 11 May, 2012 6 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.
      2171cea5
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * lisp/term.el: Move keymap initialization code to be more idiomatic. · 13bdd94c
      Stefan Monnier authored
      (term-signals-menu, term-mode-map, term-raw-map, term-raw-escape-map)
      (term-terminal-menu): Move initialization into declaration.
      (term-escape-char): Let the user set it in her .emacs.
      13bdd94c
    • 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.
      ff46c759
    • Stefan Monnier's avatar
  4. 10 May, 2012 2 commits
    • Chong Yidong's avatar
      Cleanups and improvements for FFAP and URL. · 9f9aa044
      Chong Yidong authored
      * ffap.el (ffap-url-unwrap-local): Make it work right.
      Use url-generic-parse-url, and handle host names and Windows
      filenames properly.
      (ffap-url-unwrap-remote): Use url-generic-parse-url.
      (ffap-url-unwrap-remote): Accept list values, specifying a list of
      URL schemes to work on.
      (ffap--toggle-read-only): New function.
      (ffap-read-only, ffap-read-only-other-window)
      (ffap-read-only-other-frame): Use it.
      (ffap-fixup-url): Don't check ffap-ftp-regexp, since it is not
      necessary for ffap-url-unwrap-remote.
      
      * url-parse.el (url-path-and-query, url-port-if-non-default): New
      functions.
      (url-generic-parse-url): Don't set the portspec slot if it is not
      specified; that is what `url-port' is for.
      (url-port): Only require the scheme to be specified to call
      url-scheme-get-property.
      
      * url-util.el (url-encode-url): Use url-path-and-query.
      
      * url-vars.el (url-mime-charset-string): Load mm-util lazily.
      
      Fixes: debbugs:9131
      9f9aa044
    • Dave Abrahams's avatar
      Add the option to not create lockfiles · 836d29b3
      Dave Abrahams authored
      * src/filelock.c (syms_of_filelock): New boolean create-lockfiles.
      (lock_file): If create_lockfiles is 0, do nothing.
      
      * lisp/cus-start.el (create-lockfiles): Add it.
      
      Fixes: debbugs:11227
      836d29b3
  5. 09 May, 2012 5 commits
  6. 08 May, 2012 8 commits
  7. 07 May, 2012 6 commits
  8. 06 May, 2012 8 commits
    • Glenn Morris's avatar
    • Chong Yidong's avatar
      * lisp/buff-menu.el: Convert to Tabulated List mode. · e5f9458f
      Chong Yidong authored
      (Buffer-menu-buffer+size-width): Make obsolete.
      (Buffer-menu-name-width, Buffer-menu-size-width): New variables.
      (Buffer-menu-mode-map): Inherit from tabulated-list-mode-map.
      (Buffer-menu-mode): Derive from tabulated-list-mode.  Move command
      documentation into docstring of buffer-menu.
      (Buffer-menu-toggle-files-only): Add an informative message.
      (Buffer-menu-sort): Convert to alias for tabulated-list-sort.
      (Buffer-menu-buffer, Buffer-menu-beginning, Buffer-menu-mark)
      (Buffer-menu-unmark, Buffer-menu-backup-unmark)
      (Buffer-menu-delete, Buffer-menu-save, Buffer-menu-not-modified)
      (Buffer-menu-execute, Buffer-menu-select)
      (Buffer-menu-marked-buffers, Buffer-menu-toggle-read-only)
      (Buffer-menu-bury): Use Tabulated List machinery.
      (Buffer-menu-mouse-select, Buffer-menu-sort-by-column)
      (Buffer-menu-sort-button-map, Buffer-menu-make-sort-button):
      Deleted.
      (list-buffers--refresh): New function.
      (list-buffers-noselect): Use it.
      (tabulated-list-entry-size->, Buffer-menu--pretty-name)
      (Buffer-menu--pretty-file-name): New helper functions.
      
      * lisp/loadup.el: Preload tabulated-list.
      
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Rename from
      tabulated-list-sort-column.
      (tabulated-list-init-header): Add the initial aligning space even
      if tabulated-list-padding is zero.
      
      * src/lisp.mk (lisp): Update.
      e5f9458f
    • Christopher Schmidt's avatar
      * lisp/emacs-lisp/cl-macs.el (cl-expr-contains): Handle cons cells · e129292c
      Christopher Schmidt authored
      whose cdr is not a cons cell correctly.
      
      Fixes: debbugs:11038
      e129292c
    • Chong Yidong's avatar
      Some cleanups for the buffer menu and electric buffer menu. · 3cc99f68
      Chong Yidong authored
      * lisp/buff-menu.el (list-buffers): Move C-x C-b binding from
      buff-menu.el to bindings.el.
      
      * lisp/ebuff-menu.el (Electric-buffer-menu-undefined): Use the
      :advertised-binding feature.
      3cc99f68
    • Chong Yidong's avatar
      Improvements for Tabulated List mode. · 6632d361
      Chong Yidong authored
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-format): Accept
      additional plist in column descriptors.
      (tabulated-list-init-header): Obey it.
      (tabulated-list-get-entry): New function.
      (tabulated-list-put-tag): Use it.  Use string-width instead of
      length.
      (tabulated-list--column-number): New function.
      (tabulated-list-print): Use it.
      (tabulated-list-print-col): New function.  Set
      `tabulated-list-column-name' property on each column's text.
      (tabulated-list-print-entry): Use it.
      (tabulated-list-delete-entry, tabulated-list-set-col): New
      functions.
      (tabulated-list-sort-column): New command.
      
      Fixes: debbugs:11337
      6632d361
    • Troels Nielsen's avatar
      Fix match highlighting in compilation buffers. · 52b61776
      Troels Nielsen authored
      * progmodes/compile.el (compilation-internal-error-properties):
      Calculate start position correctly when end-col is set but
      end-line is not.
      
      Fixes: debbugs:11382
      52b61776
    • Wolfgang Jenkner's avatar
      Cosmetic fix for Man-unindent. · ebfe2597
      Wolfgang Jenkner authored
      * lisp/man.el (Man-unindent): Use text-property-default-nonsticky to
      prevent untabify from inheriting face properties.
      
      Fixes: debbugs:11408
      ebfe2597
    • Chong Yidong's avatar
      * emacs-lisp/package.el (package-built-in-p): Handle `emacs' package. · 25f292cd
      Chong Yidong authored
      Fixes: debbugs:11410
      25f292cd