1. 08 May, 2012 5 commits
  2. 07 May, 2012 7 commits
    • Glenn Morris's avatar
      Move some forms.el example files to etc/forms directory · af8630f4
      Glenn Morris authored
      * etc/forms/README: New.
      
      * etc/forms/forms-d2.dat: Move to etc/forms/ subdirectory.
      
      * etc/forms/forms-d2.el, etc/forms/forms-pass.el: Move here from ../lisp.
      
      * lisp/forms.el: Related comment change.
      af8630f4
    • Glenn Morris's avatar
    • Glenn Morris's avatar
    • Stefan Monnier's avatar
      * loadup.el: Preload newcomment.el. · 28be5ce7
      Stefan Monnier authored
      * newcomment.el: Move autoload-only code to toplevel.
      28be5ce7
    • Stefan Merten's avatar
      2012-05-05 Stefan Merten <smerten@oekonux.de> · d13c8be6
      Stefan Merten authored
      	* rst.el: Major merge with upstream development up to Docutils
      	SVN r7399 / rst.el V1.2.1.
      
      	Clarified maintainership and authors.
      
      	(rst-extract-version, rst-cvs-header, rst-cvs-rev)
      	(rst-cvs-timestamp, rst-svn-rev, rst-svn-timestamp)
      	(rst-official-version, rst-official-cvs-rev, rst-version)
      	(rst-package-emacs-version-alist): New functions and variables
      	for version information.
      
      	(rst-bullets, rst-uri-schemes, rst-adornment-chars)
      	(rst-max-inline-length, rst-re-alist-def, rst-re-alist)
      	(rst-mode-syntax-table, rst-mode): New and corrected functions
      	and variables representing reStructuredText features.
      
      	(rst-re): New function for reStructuredText regexes. Used in
      	many places.
      
      	(rst-deprecated-keys, rst-call-deprecated, rst-define-key)
      	(rst-mode-map): Rebound keys.
      
      	(rst-mode-lazy, rst-font-lock-keywords)
      	(rst-font-lock-extend-region)
      	(rst-font-lock-extend-region-internal)
      	(rst-font-lock-extend-region-extend)
      	(rst-font-lock-find-unindented-line-limit)
      	(rst-font-lock-find-unindented-line-match)
      	(rst-adornment-level, rst-font-lock-adornment-level)
      	(rst-font-lock-adornment-match)
      	(rst-font-lock-handle-adornment-pre-match-form)
      	(rst-font-lock-handle-adornment-matcher): Major revision of
      	font-locking. Integrated with other code. `jit-lock-mode' is
      	used now.
      
      	(rst-preferred-adornments, rst-adjust-hook)
      	(rst-new-adornment-down, rst-preferred-bullets)
      	(rst-preferred-bullets, rst-indent, rst-indent-width)
      	(rst-indent-field, rst-indent-literal-normal)
      	(rst-indent-literal-minimized, rst-indent-comment): Changed,
      	extended and improved customization.
      
      	(rst-line-homogeneous-p, rst-line-homogeneous-nodent-p)
      	(rst-normalize-cursor-position, rst-get-decoration)
      	(rst-straighten-deco-spacing, rst-re-bullets, rst-re-items)
      	(rst-rstrip, rst-toc-insert-find-delete-contents)
      	(rst-shift-fill-region, rst-compute-bullet-tabs)
      	(rst-debug-print-tabs, rst-debug-mark-found)
      	(rst-shift-region-guts, rst-shift-region-right)
      	(rst-shift-region-left, rst-use-char-classes)
      	(rst-font-lock-keywords-function)
      	(rst-font-lock-indentation-point)
      	(rst-font-lock-find-unindented-line-begin)
      	(rst-font-lock-find-unindented-line-end)
      	(rst-font-lock-find-unindented-line)
      	(rst-font-lock-adornment-point, rst-font-lock-level)
      	(rst-adornment-level-alist): Removed functions and variables.
      
      	(rst-compare-adornments, rst-get-adornment-match)
      	(rst-suggest-new-adornment, rst-get-adornments-around)
      	(rst-adornment-complete-p, rst-get-next-adornment)
      	(rst-adjust-adornment, rst-display-adornments-hierarchy)
      	(rst-straighten-adornments): Standardized function names to
      	use "adornment" instead of "decoration". Corrected callers.
      	Similar standardizing happened in many places.
      
      	(rst-update-section, rst-adjust, rst-promote-region)
      	(rst-enumerate-region, rst-bullet-list-region)
      	(rst-repeat-last-character): Corrected use of `interactive'.
      
      	(rst-classify-adornment, rst-find-all-adornments)
      	(rst-get-hierarchy, rst-adjust-adornment, rst-toc-update)
      	(rst-find-leftmost-column, rst-repeat-last-character):
      	Refactored functions.
      
      	(rst-find-title-line, rst-reset-section-caches)
      	(rst-get-adornments-around, rst-adjust-adornment-work)
      	(rst-arabic-to-roman, rst-roman-to-arabic)
      	(rst-insert-list-pos, rst-insert-list-new-item)
      	(rst-insert-list-continue, rst-insert-list, rst-forward-line):
      	New functions.
      
      	(rst-all-sections, rst-section-hierarchy)
      	(rst-arabic-to-roman, rst-initial-enums, rst-initial-items):
      	New variables.
      
      	(rst-toc-return-wincfg, rst-toc-quit-window): Using window
      	configuration instead of only buffer. Changed where necessary.
      
      	(rst-line-tabs, rst-compute-tabs, rst-indent-line)
      	(rst-shift-region, rst-adaptive-fill): New functions for
      	indentation and filling.
      
      	(rst-comment-line-break, rst-comment-indent)
      	(rst-comment-insert-comment, rst-comment-region)
      	(rst-uncomment-region): New functions for handling comments.
      
      	(rst-compile): Shell arguments are quoted.
      
      	(rst-compile-pdf-preview, rst-compile-slides-preview):
      	Temporary files are deleted after use.
      d13c8be6
    • Stefan Monnier's avatar
      * lisp/buff-menu.el (list-buffers--refresh): Mark `size' as right-align. · f0809a9d
      Stefan Monnier authored
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
      Handle new :right-align column property.
      (tabulated-list-print-col): Idem, plus use `display' text-property to
      try and preserve alignment for variable pitch fonts.
      f0809a9d
    • Chong Yidong's avatar
      Restore Buffer-menu-use-header-line functionality. · 1241b724
      Chong Yidong authored
      * lisp/emacs-lisp/tabulated-list.el: Add no-header-line alternative.
      (tabulated-list-use-header-line): New var.
      (tabulated-list-init-header): Use it.
      (tabulated-list-print-fake-header): New function.
      (tabulated-list-print): Use it.
      (tabulated-list-sort-button-map): Add non-header-line commands.
      (tabulated-list-init-header): Add column name property to basic
      labels as well.
      (tabulated-list-col-sort): Handle non-header-line button case.
      (tabulated-list--sort-by-column-name): Fix a corner case.
      
      * lisp/buff-menu.el (list-buffers--refresh): Handle
      Buffer-menu-use-header-line.
      1241b724
  3. 06 May, 2012 6 commits
    • 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
  4. 05 May, 2012 7 commits
    • Glenn Morris's avatar
      Optionally include holidays in cal-html output · 48176e8b
      Glenn Morris authored
      * lisp/calendar/cal-html.el: (cal-html-holidays): New option.
      (cal-html-css-default): Add holiday entry.
      (holiday-in-range): Autoload it.
      (cal-html-htmlify-entry): Add optional class argument.
      (cal-html-htmlify-list): Add optional holidays argument.
      (cal-html-insert-agenda-days): Include holidays in the output.
      (cal-html-one-month): Maybe include holidays.
      48176e8b
    • Glenn Morris's avatar
      Move function from cal-tex to holidays · a43f98b3
      Glenn Morris authored
      * calendar/holidays.el (holiday-in-range):
      Move here from cal-tex-list-holidays.
      * calendar/cal-tex.el (cal-tex-list-holidays):
      Make it an obsolete alias for holiday-in-range.  Update all callers.
      a43f98b3
    • Glenn Morris's avatar
      ChangeLog fixes · fef9d149
      Glenn Morris authored
      fef9d149
    • Ransom Williams's avatar
      * lisp/files.el (file-auto-mode-skip): New var. · 248da2f4
      Ransom Williams authored
      (set-auto-mode-1): Use it.
      248da2f4
    • 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.
      (repeat):
      * 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.
      df96ab1e
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/pcase.el (pcase--let*): New function. · 5342bb06
      Stefan Monnier authored
      (pcase--expand, pcase-codegen, pcase--q1): Use it to reduce nesting
      a bit more.
      (pcase--split-pred): Be more clever about ruling out overlap between
      a predicate and some constant pattern.
      (pcase--q1): Use `null' instead of (eq foo nil).
      5342bb06
    • Stefan Monnier's avatar
      New function set-temporary-overlay-map and macros (defvar|setq)-local. · f95e9344
      Stefan Monnier authored
      * lisp/subr.el (setq-local, defvar-local): New macros.
      (kbd): Redefine as an alias.
      (with-selected-window): Leave unrelated frames alone.
      (set-temporary-overlay-map): New function.
      f95e9344
  5. 04 May, 2012 7 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)
      (smerge-match-conflict):
      * lisp/simple.el (previous-matching-history-element)
      (next-matching-history-element, goto-history-element, undo-more)
      (undo-start):
      * 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)
      (Info-copy-current-node-name):
      * 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-mark-to-reset-standard)
      (custom-variable-reset-backup, custom-face-mark-to-reset-standard)
      (custom-file):
      * lisp/completion.el (check-completion-length):
      * lisp/comint.el (comint-search-arg)
      (comint-previous-matching-input-string-position)
      (comint-previous-matching-input)
      (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.
      71873e2b
    • Stefan Monnier's avatar
      * lisp/dabbrev.el (dabbrev--ignore-case-p): New function. · 66408d1e
      Stefan Monnier authored
      (dabbrev-completion, dabbrev-expand, dabbrev--substitute-expansion):
      Use it.
      66408d1e
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      * patcomp.el, play/bruce.el: Move to obsolete/. · 3c74813a
      Glenn Morris authored
      * etc/NEWS: Mention this.
      3c74813a
    • Paul Eggert's avatar
      Fix minor Y10k bugs. · 0bfcf5c5
      Paul Eggert authored
      * lisp/arc-mode.el (archive-unixdate):
      * lisp/autoinsert.el (auto-insert-alist):
      * lisp/calc/calc-forms.el (math-this-year):
      * lisp/gnus/nnweb.el (nnweb-google-parse-1):
      * lisp/emacs-lisp/copyright.el (copyright-current-year)
      (copyright-update-year, copyright):
      * lisp/tar-mode.el (tar-clip-time-string):
      * lisp/time.el (display-time-update):
      Don't assume years have 4 digits.
      0bfcf5c5
    • Chong Yidong's avatar
      85e8b518
    • Chong Yidong's avatar
      Convert more defvars to defcustoms. · 78f3273a
      Chong Yidong authored
      * dos-w32.el (file-name-buffer-file-type-alist)
      (direct-print-region-use-command-dot-com):
      * 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)
      (feedmail-mail-send-hook-queued):
      * mail/footnote.el (footnote-signature-separator):
      * mail/mailabbrev.el (mail-alias-separator-string)
      (mail-abbrev-mode-regexp):
      * mail/rmail.el (rmail-speedbar-match-folder-regexp):
      * progmodes/idlwave.el (idlwave-libinfo-file)
      (idlwave-default-completion-case-is-down)
      (idlwave-library-routines): Convert defvars to defcustoms.
      
      * mail/rmail.el (rmail-decode-mime-charset):
      * progmodes/idlw-shell.el (idlwave-shell-print-expression-function)
      (idlwave-shell-fix-inserted-breaks)
      (idlwave-shell-activate-alt-keybindings)
      (idlwave-shell-use-breakpoint-glyph):
      * facemenu.el (facemenu-unlisted-faces): Delete obsolete vars.
      
      * doc/lispref/os.texi (Timers): Use defopt for timer-max-repeats.
      78f3273a
  6. 03 May, 2012 5 commits
    • Stefan Monnier's avatar
    • 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
      AUTORESET and AUTOTIEOFF.
      (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.
      (verilog-auto-inst-interfaced-ports):
      Create verilog-auto-inst-interfaced-ports, bug429.
      Reported by Julian Gorfajn.
      (verilog-after-save-font-hook)
      (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
      47086495
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · c7349e19
      Glenn Morris authored
      c7349e19
    • Kenichi Handa's avatar
      mail/rmailmm.el (rmail-show-mime): Catch an error caused by text decoding, and... · 2e51d4b5
      Kenichi Handa authored
      mail/rmailmm.el (rmail-show-mime): Catch an error caused by text	decoding, and show a warning message without signalling an error (Bug#11282).
      2e51d4b5
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el · 2bd785a2
      Stefan Monnier authored
      (byte-compile-file-form-custom-declare-variable): Compile all elements,
      since cconv.el might have introduced :fun-body, internal-make-closure,
      and friends for bytecomp to handle.
      * lisp/custom.el (defcustom): Avoid ((λ ..) ..).
      
      Fixes: debbugs:11391
      2bd785a2
  7. 02 May, 2012 3 commits