Stefan Merten [Mon, 7 May 2012 19:51:25 +0000 (21:51 +0200)]
2012-05-05 Stefan Merten <smerten@oekonux.de>
* 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.
Stefan Monnier [Mon, 7 May 2012 16:29:55 +0000 (12:29 -0400)]
* lisp/buff-menu.el (list-buffers--refresh): Mark `size' as right-align.
* 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.
Jérémy Compostella [Mon, 7 May 2012 16:09:51 +0000 (12:09 -0400)]
Fix up display of the *Minibuf-0* buffer in the mini window.
* src/keyboard.c (read_char): Don't clear the echo area if there's no
message to clear.
* src/xdisp.c (redisplay_internal): Redisplay the mini window (with the
contents of *Minibuf-0*) if there' no message displayed in its stead.
Michael Albinus [Mon, 7 May 2012 14:57:18 +0000 (16:57 +0200)]
* dbusbind.c (XD_DEBUG_MESSAGE): Don't print message twice in
batch mode.
Chong Yidong [Mon, 7 May 2012 05:37:38 +0000 (13:37 +0800)]
Restore Buffer-menu-use-header-line functionality.
* 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.
Chong Yidong [Sun, 6 May 2012 16:45:46 +0000 (00:45 +0800)]
* lisp/buff-menu.el: Convert to Tabulated List mode.
(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.
Christopher Schmidt [Sun, 6 May 2012 15:38:30 +0000 (11:38 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-expr-contains): Handle cons cells
whose cdr is not a cons cell correctly.
Fixes: debbugs:11038
Glenn Morris [Sun, 6 May 2012 10:18:48 +0000 (06:18 -0400)]
Auto-commit of generated files.
Chong Yidong [Sun, 6 May 2012 08:43:46 +0000 (16:43 +0800)]
Some cleanups for the buffer menu and electric buffer menu.
* 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.
Chong Yidong [Sun, 6 May 2012 08:32:37 +0000 (16:32 +0800)]
Improvements for Tabulated List mode.
* 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
Troels Nielsen [Sun, 6 May 2012 04:52:58 +0000 (12:52 +0800)]
Fix match highlighting in compilation buffers.
* progmodes/compile.el (compilation-internal-error-properties):
Calculate start position correctly when end-col is set but
end-line is not.
Fixes: debbugs:11382
Wolfgang Jenkner [Sun, 6 May 2012 04:19:11 +0000 (12:19 +0800)]
Cosmetic fix for Man-unindent.
* lisp/man.el (Man-unindent): Use text-property-default-nonsticky to
prevent untabify from inheriting face properties.
Fixes: debbugs:11408
Glenn Morris [Sat, 5 May 2012 21:31:41 +0000 (14:31 -0700)]
Optionally include holidays in cal-html output
* 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.
Glenn Morris [Sat, 5 May 2012 20:58:14 +0000 (13:58 -0700)]
Move function from cal-tex to holidays
* 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.
Glenn Morris [Sat, 5 May 2012 16:38:22 +0000 (09:38 -0700)]
ChangeLog fixes
Andreas Schwab [Sat, 5 May 2012 10:34:06 +0000 (12:34 +0200)]
* configure.in: Fix quoting bugs.
Andreas Schwab [Sat, 5 May 2012 09:40:49 +0000 (11:40 +0200)]
Only ignore info/*.info
Chong Yidong [Sat, 5 May 2012 04:32:58 +0000 (12:32 +0800)]
Merge from emacs-24; up to 2012-04-20T05:47:55Z!eliz@gnu.org
Ransom Williams [Sat, 5 May 2012 03:21:47 +0000 (23:21 -0400)]
* lisp/files.el (file-auto-mode-skip): New var.
(set-auto-mode-1): Use it.
Stefan Monnier [Sat, 5 May 2012 02:50:20 +0000 (22:50 -0400)]
Use set-temporary-overlay-map.
* 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.
Stefan Monnier [Sat, 5 May 2012 02:05:49 +0000 (22:05 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--let*): New function.
(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).
Stefan Monnier [Sat, 5 May 2012 01:47:04 +0000 (21:47 -0400)]
New function set-temporary-overlay-map and macros (defvar|setq)-local.
* 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.
Stefan Monnier [Fri, 4 May 2012 23:16:47 +0000 (19:16 -0400)]
Add new error and function `user-error'.
* 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.
Glenn Morris [Fri, 4 May 2012 20:53:03 +0000 (16:53 -0400)]
* doc/misc/Makefile.in (info): Make it the first target again.
Stefan Monnier [Fri, 4 May 2012 19:17:01 +0000 (15:17 -0400)]
* lisp/dabbrev.el (dabbrev--ignore-case-p): New function.
(dabbrev-completion, dabbrev-expand, dabbrev--substitute-expansion):
Use it.
Stefan Monnier [Fri, 4 May 2012 19:14:42 +0000 (15:14 -0400)]
* lisp/files.el (automount-dir-prefix): Mark as obsolete.
Glenn Morris [Fri, 4 May 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.
Glenn Morris [Fri, 4 May 2012 06:45:03 +0000 (23:45 -0700)]
Give info files the .info extension
Ref http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00354.html
* configure.in (INFO_EXT, INFO_OPTS): New output variables.
* doc/emacs/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(info, infoclean): Use $INFO_EXT.
($(infodir)/emacs$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/emacs/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(INFO_TARGETS): Use $INFO_EXT.
($(infodir)/emacs$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT, and -o.
* doc/lispintro/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(info, infoclean): Use $INFO_EXT.
(${infodir}/eintr$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/lispintro/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(INFO_TARGETS, clean): Use $INFO_EXT.
($(infodir)/eintr$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/lispref/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(info, infoclean): Use $INFO_EXT.
($(infodir)/elisp$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/lispref/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(info, maintainer-clean): Use $INFO_EXT.
($(infodir)/elisp$(INFO_EXT)): Use $INFO_EXT and $INFO_OPT.
* doc/misc/Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure.
(INFO_TARGETS): Use $INFO_EXT.
Make all rules generating info files use $INFO_EXT, $INFO_OPT, and -o.
* doc/misc/makefile.w32-in (INFO_EXT, INFO_OPTS): New.
(INFO_TARGETS): Use $INFO_EXT.
Make all rules generating info files use $INFO_EXT, $INFO_OPT, and -o.
Glenn Morris [Fri, 4 May 2012 06:38:36 +0000 (23:38 -0700)]
* patcomp.el, play/bruce.el: Move to obsolete/.
* etc/NEWS: Mention this.
Paul Eggert [Fri, 4 May 2012 06:13:18 +0000 (23:13 -0700)]
Fix minor Y10k bugs.
* 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.
Chong Yidong [Fri, 4 May 2012 06:02:23 +0000 (14:02 +0800)]
* iswitchb.el (iswitchb-all-frames): Fix last change.
Chong Yidong [Fri, 4 May 2012 05:14:14 +0000 (13:14 +0800)]
Convert more defvars to defcustoms.
* 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.
Paul Eggert [Thu, 3 May 2012 20:04:29 +0000 (13:04 -0700)]
Do not limit current-time-string to years 1000..9999.
* src/editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove.
(Fcurrent_time_string): Support any year that is supported by the
underlying localtime representation. Don't use asctime, as it
has undefined behavior for years outside the range -999..9999.
* doc/lispref/os.texi (Time of Day): Do not limit current-time-string
to years 1000..9999.
* etc/NEWS: Do not limit current-time-string to years 1000..9999.
Stefan Monnier [Thu, 3 May 2012 19:54:07 +0000 (15:54 -0400)]
* minibuffer.el (completion--twq-all): Beware completion-ignore-case.
Wilson Snyder [Thu, 3 May 2012 19:23:55 +0000 (15:23 -0400)]
Merge verilog-mode.el from upstream.
* 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
Glenn Morris [Thu, 3 May 2012 10:20:40 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.
Glenn Morris [Thu, 3 May 2012 10:17:27 +0000 (06:17 -0400)]
Auto-commit of generated files.
Kenichi Handa [Thu, 3 May 2012 06:57:54 +0000 (15:57 +0900)]
merge trunk
Kenichi Handa [Thu, 3 May 2012 05:47:24 +0000 (14:47 +0900)]
mail/rmailmm.el (rmail-show-mime): Catch an error caused by text decoding, and show a warning message without signalling an error (Bug#11282).
Stefan Monnier [Thu, 3 May 2012 02:39:23 +0000 (22:39 -0400)]
* lisp/emacs-lisp/bytecomp.el
(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
Paul Eggert [Wed, 2 May 2012 23:25:46 +0000 (16:25 -0700)]
Fix race conditions involving setenv, gmtime, localtime, asctime.
Without this fix, interrupts could mess up code that uses these
nonreentrant functions, since setting TZ invalidates existing
tm_zone or tzname values, and since most of these functions return
pointers to static storage.
* editfns.c (format_time_string, Fdecode_time, Fencode_time)
(Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
Grow the critical sections to include not just invoking
localtime/gmtime, but also accessing these functions' results
including their tm_zone values if any, and any related TZ setting.
(format_time_string): Last arg is now struct tm *, not struct tm **,
so that the struct tm is saved in the critical section. All
callers changed. Simplify allocation of initial buffer, partly
motivated by the fact that memory allocation needs to be outside
the critical section.
Stefan Monnier [Wed, 2 May 2012 21:34:57 +0000 (17:34 -0400)]
* subr.el (read-passwd): Better clean after ourselves.
Fixes: debbugs:11392
Glenn Morris [Wed, 2 May 2012 17:41:21 +0000 (13:41 -0400)]
NEWS addition re configure.in and BSD -L options
Dmitry Antipov [Wed, 2 May 2012 17:21:54 +0000 (13:21 -0400)]
* intervals.c (adjust_intervals_for_insertion): Initialize `newi'
with RESET_INTERVAL.
* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
Remove duplicated buffer name initialization.
Glenn Morris [Wed, 2 May 2012 16:55:00 +0000 (12:55 -0400)]
configure.in tweak for LD_SWITCH_SYSTEM on FreeBSD, NetBSD (bug#10313)
* configure.in (LD_SWITCH_SYSTEM):
Don't try to defeat the choices made by FreeBSD and NetBSD.
Glenn Morris [Wed, 2 May 2012 16:28:03 +0000 (09:28 -0700)]
Yet more merged ChangeLog fixes
Glenn Morris [Wed, 2 May 2012 16:14:20 +0000 (09:14 -0700)]
Fix merged ChangeLog entry
Glenn Morris [Wed, 2 May 2012 16:10:02 +0000 (12:10 -0400)]
Auto-commit of generated files.
Chong Yidong [Wed, 2 May 2012 13:06:50 +0000 (21:06 +0800)]
Backport 2012-05-02T11:33:49Z!lekktu@gmail.com from trunk
Chong Yidong [Wed, 2 May 2012 13:06:08 +0000 (21:06 +0800)]
Backport Bug#11374 fix from trunk
Chong Yidong [Wed, 2 May 2012 13:00:29 +0000 (21:00 +0800)]
Add customization data to several built-in variables.
* lisp/cus-start.el (gc-cons-percentage, exec-suffixes)
(dos-display-scancodes, dos-hyper-key, dos-super-key)
(dos-keypad-mode, debug-on-signal, vertical-centering-font-regexp)
(make-cursor-line-fully-visible, void-text-area-pointer)
(font-list-limit): Add customization data.
* doc/lispref/display.texi (Font Lookup):
* doc/lispref/frames.texi (Pointer Shape):
* doc/lispref/processes.texi (Subprocess Creation): Use defopt for options.
Juanma Barranquero [Wed, 2 May 2012 11:43:14 +0000 (13:43 +0200)]
Fix ChangeLog typos.
Juanma Barranquero [Wed, 2 May 2012 11:38:01 +0000 (13:38 +0200)]
Silence byte-compiler warnings.
lisp/notifications.el (dbus-debug):
lisp/term/linux.el (gpm-mouse-enable):
lisp/term/screen.el (xterm-register-default-colors): Declare.
Juanma Barranquero [Wed, 2 May 2012 11:33:49 +0000 (13:33 +0200)]
lib-src/emacsclient.c (min): Undef before redefining it.
Glenn Morris [Wed, 2 May 2012 11:17:25 +0000 (07:17 -0400)]
Auto-commit of generated files.
Chong Yidong [Wed, 2 May 2012 10:57:03 +0000 (18:57 +0800)]
Fix naming of abnormal hook vars in allout.el.
* lisp/allout.el (allout-exposure-change-functions)
(allout-structure-added-functions)
(allout-structure-deleted-functions)
(allout-structure-shifted-functions): Rename abnormal hooks from *-hook,
and convert to defcustoms.
(allout-after-copy-or-kill-hook, allout-post-undo-hook): Convert
to defcustoms.
(allout-mode-hook, allout-mode-deactivate-hook): Doc fix.
* lisp/allout-widgets.el: Hook callers changed.
Jim Meyering [Wed, 2 May 2012 10:41:27 +0000 (18:41 +0800)]
* lib-src/emacsclient.c (send_to_emacs): Avoid invalid strcpy
upon partial send.
Fixes: debbugs:11374
Jim Meyering [Wed, 2 May 2012 10:20:35 +0000 (18:20 +0800)]
* src/xfns.c (x_window): Use xstrdup (Bug#11375).
Jim Meyering [Wed, 2 May 2012 10:17:03 +0000 (18:17 +0800)]
* src/xterm.c (x_term_init): Use memcpy instead of strncpy.
Fixes: debbugs:11373
Jim Meyering [Wed, 2 May 2012 10:12:13 +0000 (18:12 +0800)]
Add NUL-termination to some uses of strncpy.
* lib-src/pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
NUL-terminate the error buffer.
* src/w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372).
Glenn Morris [Wed, 2 May 2012 07:45:16 +0000 (00:45 -0700)]
Don't hard-code the list of info files in the top-level Makefile
The sed '/ing directory/d' piece is to remove the annoying
"entering/leaving directory" messages that GNU make insists on
printing when called recursively. --no-print-directory isn't portable.
* Makefile.in (INFO_FILES): Remove variable.
(INFO_NONMISC): New variable.
(install-arch-indep, uninstall): Don't use $INFO_FILES.
* doc/misc/Makefile.in (echo-info): New phony target, used by top-level.
Glenn Morris [Wed, 2 May 2012 07:33:52 +0000 (00:33 -0700)]
Add change missed from previous merge from emacs-24
Glenn Morris [Wed, 2 May 2012 07:20:29 +0000 (00:20 -0700)]
Merge from emacs-24; up to 2012-04-16T19:06:02Z!rgm@gnu.org
Glenn Morris [Wed, 2 May 2012 07:12:52 +0000 (00:12 -0700)]
* admin/bzrmerge.el (bzrmerge-skip-regexp): Add "Auto-commit".
Glenn Morris [Wed, 2 May 2012 07:01:36 +0000 (00:01 -0700)]
* Makefile.in (uninstall): Remove useless-use-of-for.
For some reason it caused problems on an old Solaris.
Glenn Morris [Wed, 2 May 2012 06:53:21 +0000 (23:53 -0700)]
Makefile.in fix for systems without /bin/install or somesuch
* Makefile.in (install-arch-indep, uninstall):
Ensure that INSTALL-type commands are run from top-level.
Glenn Morris [Wed, 2 May 2012 06:46:34 +0000 (23:46 -0700)]
* Makefile.in (INFO_FILES): Add emacs-gnutls;
accidentally omitted from 2012-04-12 backport from trunk.
(Do not merge to trunk.)
Glenn Morris [Wed, 2 May 2012 02:10:43 +0000 (22:10 -0400)]
* Makefile.in (install-arch-indep): Combine install-data, install-info loops.
Glenn Morris [Wed, 2 May 2012 01:22:26 +0000 (21:22 -0400)]
Fix some info/dir entries
* doc/misc/emacs-gnutls.texi, doc/misc/ert.texi, doc/misc/org.texi:
Fix dircategory, direntry to match info/dir.
* doc/misc/viper.texi: Make direntry shorter (also it is no longer "newest").
* info/dir: Make some entries consistent with the source texi files.
Glenn Morris [Wed, 2 May 2012 00:11:24 +0000 (20:11 -0400)]
* configure.in (LIBS_TERMCAP): Fix netbsd logic, broken 2012-03-04.
Ref http://debbugs.gnu.org/6190
Ted Zlatanov [Tue, 1 May 2012 22:28:14 +0000 (22:28 +0000)]
auth.texi (Help for users): Update for .gpg file being second
Glenn Morris [Tue, 1 May 2012 21:06:59 +0000 (17:06 -0400)]
* lisp/cus-start.el (suggest-key-bindings): Remove, now it is in Lisp.
Glenn Morris [Tue, 1 May 2012 21:05:28 +0000 (17:05 -0400)]
Don't hard-code manual pages in top-level Makefile.in
* Makefile.in (MAN_PAGES): Remove.
(install-arch-indep, uninstall): Don't use $MAN_PAGES.
Glenn Morris [Tue, 1 May 2012 19:31:18 +0000 (15:31 -0400)]
Some updates for etc/TODO
Glenn Morris [Tue, 1 May 2012 19:27:10 +0000 (15:27 -0400)]
Further doc fix.
Glenn Morris [Tue, 1 May 2012 18:48:46 +0000 (14:48 -0400)]
* lisp/eshell/esh-cmd.el (eshell-debug-command): Doc fix. Add :set.
Glenn Morris [Tue, 1 May 2012 18:47:23 +0000 (14:47 -0400)]
* lisp/cus-edit.el (custom-variable-documentation): Simplify with format.
Stefan Monnier [Tue, 1 May 2012 18:37:21 +0000 (14:37 -0400)]
* lisp/gnus/nnimap.el (nnimap-open-connection-1): Don't leave an "opening..."
message once it's actually open.
Aaron S. Hawley [Tue, 1 May 2012 16:10:02 +0000 (12:10 -0400)]
Reimplement execute-extended-command in Elisp.
* src/keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings):
Move to simple.el.
* lisp/simple.el (suggest-key-bindings, execute-extended-command):
Move from keyboard.c.
Chong Yidong [Tue, 1 May 2012 14:00:16 +0000 (22:00 +0800)]
Fix mouse wheel scrolling in Follow mode.
* lisp/follow.el (follow-mwheel-scroll): New function.
(follow-redraw-after-event): Fix last change.
Fixes: debbugs:4112
Chong Yidong [Tue, 1 May 2012 13:37:56 +0000 (21:37 +0800)]
* lisp/follow.el: Rework, eliminating reliance on advice.
(set-process-filter, process-filter, sit-for): Advice deleted.
(follow-mode-off-hook): Obsolete hook removed.
(follow-avoid-tail-recenter-p, follow-process-filter-alist): Vars
deleted.
(follow-auto): Use a :set function.
(follow-mode): Rewritten. Don't advise process filters.
(follow-switch-to-current-buffer-all, follow-scroll-up)
(follow-scroll-down): Assume follow-mode is bound.
(follow-comint-scroll-to-bottom)
(follow-align-compilation-windows): New functions.
(follow--window-sorter): New function.
(follow-all-followers): Use it to explicitly sort windows by their
positions; don't make assumptions about next-window order.
(follow-windows-start-end, follow-delete-other-windows-and-split)
(follow-calc-win-start): Doc fix.
(follow-windows-aligned-p, follow-select-if-visible): Don't call
vertical-motion unnecessarily.
(follow-adjust-window): New function.
(follow-post-command-hook): Use it.
(follow-call-set-process-filter, follow-call-process-filter)
(follow-intercept-process-output, follow-tidy-process-filter-alist)
(follow-stop-intercept-process-output, follow-generic-filter):
Functions deleted.
(follow-scroll-bar-toolkit-scroll, follow-scroll-bar-drag)
(follow-scroll-bar-scroll-up, follow-scroll-bar-scroll-down): New
functions, replacing advice on scroll-bar-* commands.
* lisp/comint.el (comint-adjust-point): New function.
(comint-postoutput-scroll-to-bottom): Use it. Call
follow-comint-scroll-to-bottom for Follow mode buffers.
Glenn Morris [Tue, 1 May 2012 10:20:43 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.
Glenn Morris [Tue, 1 May 2012 10:17:25 +0000 (06:17 -0400)]
Auto-commit of generated files.
Glenn Morris [Tue, 1 May 2012 07:38:15 +0000 (00:38 -0700)]
Only print the edition number of the manuals in the TeX version
Frankly, I think the edition conveys little to no information.
The version number of Emacs is much more relevant.
No-one seems to know what the rules are for updating the edition anyway...
* doc/emacs/emacs.texi (@copying): Only print EDITION in the TeX version.
* doc/lispref/elisp.texi (@copying):
* doc/lispref/intro.texi (Introduction): Only print VERSION in the TeX version.
Glenn Morris [Tue, 1 May 2012 06:59:34 +0000 (23:59 -0700)]
Remove no-byte-compile setting from some lisp/term files.
Not that compiling these will bring any noticeable speed benefit, but
there's really no reason not to compile them. The extra disk space
and build time is negligible, and it might reveal use of obsolete
functions, bugs, etc.
Glenn Morris [Tue, 1 May 2012 03:45:39 +0000 (20:45 -0700)]
Remove references to macros that are not defined anywhere
* src/syssignal.h: Remove reference to BROKEN_SIGINFO (last used in
s/ptx4.h), BROKEN_SIGTSTP (last used in m/ustation.h, m/dpx2.h),
and BROKEN_SIGURG (was in s/gnu-linux.h prior to 2008-02-10).
All were removed before 23.1.
Glenn Morris [Tue, 1 May 2012 01:13:18 +0000 (21:13 -0400)]
Fix typo in previous rpath-related change (thanks hydra)
Glenn Morris [Tue, 1 May 2012 01:07:14 +0000 (21:07 -0400)]
Use libtinfo in preference to libncurses (bug#9741)
* configure.in: Try libtinfo for tputs.
(LIBS_TERMCAP) [gnu*]: Use libtinfo if it was found.
* etc/NEWS: Mention this.
Glenn Morris [Tue, 1 May 2012 00:56:47 +0000 (20:56 -0400)]
* configure.in: Combine adjacent $opsys case blocks.
Glenn Morris [Tue, 1 May 2012 00:50:55 +0000 (20:50 -0400)]
* configure.in (LIBS_TERMCAP): Remove unreachable branch for sol2.
Glenn Morris [Tue, 1 May 2012 00:46:02 +0000 (20:46 -0400)]
* configure.in: Invert the TERMINFO logic
(since "yes" is far more common than "no")
Glenn Morris [Tue, 1 May 2012 00:34:56 +0000 (20:34 -0400)]
Update comment in configure.in
Glenn Morris [Tue, 1 May 2012 00:30:11 +0000 (20:30 -0400)]
Remove HAVE_LIBNCURSES; it is required to be true
Also, it was a confusing name, since it does not necessarily mean that
we literally have libncurses; rather that we have tputs etc.
* configure.in (HAVE_LIBNCURSES): Remove; it is required to be true.
* src/dispnew.c: Remove HAVE_LIBNCURSES test;
it is always true on relevant platforms.
* nt/config.nt (HAVE_LIBNCURSES): Remove undef; not needed.
Stefan Monnier [Tue, 1 May 2012 00:21:23 +0000 (20:21 -0400)]
* lisp/minibuffer.el (completion-table-with-quoting): Fix compatibility
all-completions code to not return a number in the last cdr.
Glenn Morris [Tue, 1 May 2012 00:16:02 +0000 (20:16 -0400)]
Rename autoconf output variable LD_SWITCH_X_SITE_AUX_RPATH
* configure.in (LD_SWITCH_X_SITE_RPATH):
Rename from LD_SWITCH_X_SITE_AUX_RPATH.
* src/Makefile.in (LD_SWITCH_X_SITE_RPATH):
Rename from LD_SWITCH_X_SITE_AUX_RPATH.
Glenn Morris [Tue, 1 May 2012 00:12:02 +0000 (20:12 -0400)]
Remove LD_SWITCH_X_SITE_AUX, which is no longer used
* configure.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used.
* src/Makefile.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used.
Andreas Schwab [Tue, 1 May 2012 00:07:23 +0000 (02:07 +0200)]
* .gdbinit (xpr): Remove checks for no longer existing misc types.
(xintfwd, xboolfwd, xobjfwd, xbufobjfwd, xkbobjfwd, xbuflocal):
Remove.
Eli Zaretskii [Mon, 30 Apr 2012 12:50:12 +0000 (15:50 +0300)]
Resurrect encoding of replies by Rmail which was lost in 2012-04-11T21:37:13Z!monnier@iro.umontreal.ca.
lisp/mail/rmail.el (rmail-yank-current-message): Use the encoding of
the yanked message in preference to the default value of
buffer-file-coding-system.
Leo Liu [Mon, 30 Apr 2012 11:57:47 +0000 (19:57 +0800)]
* lisp/ibuf-ext.el (ibuffer-diff-buffer-with-file-1): Avoid buffer
read-only error.
Martin Rudalics [Mon, 30 Apr 2012 09:09:26 +0000 (11:09 +0200)]
Fix entry in display-buffer--action-function-custom-type