bpt/emacs.git
12 years ago* xgselect.c (xg_select): Put maxfds+1 into a var.
Paul Eggert [Thu, 10 May 2012 05:27:24 +0000 (22:27 -0700)]
* xgselect.c (xg_select): Put maxfds+1 into a var.

This is slightly clearer, and pacifies Ubuntu 12.04 gcc.

12 years ago* sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA.
Paul Eggert [Thu, 10 May 2012 05:00:53 +0000 (22:00 -0700)]
* sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA.

12 years agoInstall self-contained ns leim files directly to their final destination
Glenn Morris [Thu, 10 May 2012 03:40:20 +0000 (20:40 -0700)]
Install self-contained ns leim files directly to their final destination

This is instead of installing them first in one place, then moving them.
It also fixes the previous change, which was incorrect for
the -disable-ns-self-contained case.

* configure.in (LEIM_INSTALLDIR): New output variable.

* leim/Makefile.in: (install_prefix): New.
(LEIM_INSTALLDIR): New, set by configure.
(install): Use LEIM_INSTALLDIR.

12 years ago* loading.texi (Loading Non-ASCII): Multibyte sessions no longer exist.
Glenn Morris [Thu, 10 May 2012 02:57:10 +0000 (19:57 -0700)]
* loading.texi (Loading Non-ASCII): Multibyte sessions no longer exist.

12 years agoUpdate doc for obsolescence of "unibyte: t"
Glenn Morris [Thu, 10 May 2012 02:54:07 +0000 (19:54 -0700)]
Update doc for obsolescence of "unibyte: t"

* doc/emacs/mule.texi (Disabling Multibyte):
* doc/lispref/loading.texi (Loading Non-ASCII):
Replace the obsolete "unibyte: t" with "coding: raw-text".
* etc/NEWS: Related markup.

12 years agoSimply leim install rule for ns case
Glenn Morris [Thu, 10 May 2012 02:46:58 +0000 (19:46 -0700)]
Simply leim install rule for ns case

* leim/Makefile.in (MV_DIRS): Remove.
(install): Simplify the --with-ns case.

12 years agoState that --prefix has no effect for a default --with-ns build.
Glenn Morris [Thu, 10 May 2012 02:40:38 +0000 (19:40 -0700)]
State that --prefix has no effect for a default --with-ns build.

12 years agoDocument new create-lockfiles option
Glenn Morris [Thu, 10 May 2012 00:58:16 +0000 (20:58 -0400)]
Document new create-lockfiles option

12 years agoAdd the option to not create lockfiles
Dave Abrahams [Thu, 10 May 2012 00:55:57 +0000 (20:55 -0400)]
Add the option to not create lockfiles

* 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

12 years agoetags: pacify gcc -Wstack-protector on Ubuntu 12.04 x86
Paul Eggert [Thu, 10 May 2012 00:27:32 +0000 (17:27 -0700)]
etags: pacify gcc -Wstack-protector on Ubuntu 12.04 x86

* etags.c: Include <stdarg.h>.
(error): Declare as printf-style, as that's what it really is.
All uses changed.
(add_regex): Use single char rather than array-of-one char.

12 years ago* dbusbind.c (xd_registered_buses): New internal Lisp object.
Michael Albinus [Wed, 9 May 2012 21:13:43 +0000 (23:13 +0200)]
* dbusbind.c (xd_registered_buses): New internal Lisp object.
Rename all occurences of Vdbus_registered_buses to xd_registered_buses.
(syms_of_dbusbind): Remove declaration of Vdbus_registered_buses.
Initialize xd_registered_buses.

12 years ago* unexaix.c (make_hdr): Fix typo in prototype.
Paul Eggert [Wed, 9 May 2012 19:44:19 +0000 (12:44 -0700)]
* unexaix.c (make_hdr): Fix typo in prototype.

This bug broke the build on AIX.  Problem reported by Gilles Pion.

12 years ago* mail/smtpmail.el (smtpmail-send-command): Send the command and
Jason L. Wright [Wed, 9 May 2012 19:12:20 +0000 (21:12 +0200)]
* mail/smtpmail.el (smtpmail-send-command): Send the command and
the following \r\n using a single `process-send-string', since the
Lotus SMTP server refuses to accept any commands if they are sent
with two `process-send-string's.

Fixes: debbugs:11444

12 years agoUntag more efficiently if USE_LSB_TAG.
Paul Eggert [Wed, 9 May 2012 17:51:30 +0000 (10:51 -0700)]
Untag more efficiently if USE_LSB_TAG.

This is based on a proposal by YAMAMOTO Mitsuharu in
<http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01876.html>.
For an admittedly artificial (nth 8000 longlist) benchmark on
Fedora 15 x86-64, this yields a 25% CPU speedup.  Also, it shrinks
Emacs's overall text size by 1%.
* lisp.h (XUNTAG): New macro.
(XCONS, XVECTOR, XSTRING, XSYMBOL, XFLOAT, XMISC, XPROCESS, XWINDOW)
(XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE, XSUB_CHAR_TABLE, XBOOL_VECTOR)
(XSETTYPED_PSEUDOVECTOR, XHASH_TABLE, TYPED_PSEUDOVECTORP): Use it.
* eval.c (Fautoload):
* font.h (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT):
* frame.h (XFRAME): Use XUNTAG.

12 years ago* lisp/shell.el (shell-parse-pcomplete-arguments):
Stefan Monnier [Wed, 9 May 2012 17:20:24 +0000 (13:20 -0400)]
* lisp/shell.el (shell-parse-pcomplete-arguments):
Obey pcomplete-arg-quote-list inside double-quoted args as well.

Fixes: debbugs:11348

12 years agoPort recent dbusbind.c changes to 32-bit --with-wide-int.
Paul Eggert [Wed, 9 May 2012 15:07:46 +0000 (08:07 -0700)]
Port recent dbusbind.c changes to 32-bit --with-wide-int.

* dbusbind.c (xd_append_arg, xd_retrieve_arg, Fdbus_message_internal):
Remove unportable assumptions about print widths of types like
dbus_uint32_t.
(xd_get_connection_address, Fdbus_init_bus): Cast Emacs integer to
intptr_t when converting between pointer and integer, to avoid GCC
warnings about wrong width.

12 years agoEncoding fix for browse-url-encode-url.
Chong Yidong [Wed, 9 May 2012 12:39:40 +0000 (20:39 +0800)]
Encoding fix for browse-url-encode-url.

* lisp/net/browse-url.el (browse-url-url-encode-chars): Use upper-case.
(browse-url-encode-url): Encode spaces and quotes.

Fixes: debbugs:6300

12 years ago* url-util.el (url--allowed-chars): Use upper-case for percent-encoding.
Chong Yidong [Wed, 9 May 2012 12:20:26 +0000 (20:20 +0800)]
* url-util.el (url--allowed-chars): Use upper-case for percent-encoding.

12 years agoImprove RFC 3986 conformance of url package.
Chong Yidong [Wed, 9 May 2012 08:33:48 +0000 (16:33 +0800)]
Improve RFC 3986 conformance of url package.
Fix 2012-04-10 change to url.el.

* url-http.el (url-http-create-request): Ignore obsolete
attributes slot of url-object.

* url-parse.el: Improve RFC 3986 conformance.
(url-generic-parse-url): Do not populate the ATTRIBUTES slot,
since this is not reliable for general RFC 3986 URIs.  Keep the
whole path and query inside the FILENAME slot.  Improve docstring.
(url-recreate-url-attributes): Mark as obsolete.
(url-recreate-url): Handle missing scheme and userinfo.

* url-util.el (url-encode-url): New function for URL quoting.
(url-encoding-table, url-host-allowed-chars)
(url-path-allowed-chars): New constants.
(url--allowed-chars): New helper function.
(url-hexify-string): Use them.

* url-vars.el (url-nonrelative-link): Make the regexp stricter.

* url.el (url-retrieve-internal): Use url-encode-url.

Fixes: debbugs:7017

12 years agoYet more ChangeLog merge fixes
Glenn Morris [Wed, 9 May 2012 03:30:51 +0000 (20:30 -0700)]
Yet more ChangeLog merge fixes

12 years agoChangeLog merge fix
Glenn Morris [Wed, 9 May 2012 03:23:20 +0000 (20:23 -0700)]
ChangeLog merge fix

12 years agoRemove the need for lispref vol1.texi and vol2.texi
Glenn Morris [Wed, 9 May 2012 03:11:41 +0000 (20:11 -0700)]
Remove the need for lispref vol1.texi and vol2.texi

* vol1.texi, vol2.texi: Remove files.
* elisp.texi: Add VOL1,2 conditionals equivalent to vol1,2.texi
* two-volume.make: Use elisp.texi as input rather than vol1,2.texi.

12 years agoMerge from emacs-24; up to 2012-04-21T14:12:27Z!sdl.web@gmail.com
Glenn Morris [Wed, 9 May 2012 03:06:08 +0000 (20:06 -0700)]
Merge from emacs-24; up to 2012-04-21T14:12:27Z!sdl.web@gmail.com

12 years agolisp/textmodes/rst.el: Silence byte-compiler warnings.
Juanma Barranquero [Wed, 9 May 2012 00:57:18 +0000 (02:57 +0200)]
lisp/textmodes/rst.el: Silence byte-compiler warnings.
(rst-re-alist, rst-reset-section-caches): Move around.
(rst-re): Use `characterp', not `char-valid-p'.
(font-lock-beg, font-lock-end): Declare.

12 years agolisp/progmodes/idlw-shell.el: Cleanup after 2012-05-04T05:14:14Z!cyd@gnu.org.
Juanma Barranquero [Wed, 9 May 2012 00:45:34 +0000 (02:45 +0200)]
lisp/progmodes/idlw-shell.el: Cleanup after 2012-05-04T05:14:14Z!cyd@gnu.org.
(specs): Remove reference to deleted variable
`idlwave-shell-activate-alt-keybindings' and simplify.

12 years agolisp/eshell/esh-cmd.el (eshell-debug-command): Fix typo in previous change.
Juanma Barranquero [Wed, 9 May 2012 00:29:00 +0000 (02:29 +0200)]
lisp/eshell/esh-cmd.el (eshell-debug-command): Fix typo in previous change.

12 years agoMove part of previous clean rule change to mostlyclean
Glenn Morris [Tue, 8 May 2012 19:39:29 +0000 (15:39 -0400)]
Move part of previous clean rule change to mostlyclean

* doc/lispref/Makefile.in (mostlyclean): Add some more vol1/2 items.

12 years agoFix a typo in last commit of src/ChangeLog.
Eli Zaretskii [Tue, 8 May 2012 19:09:38 +0000 (22:09 +0300)]
Fix a typo in last commit of src/ChangeLog.

12 years ago* lisp/files.el (auto-mode-alist): Treat ".make" like ".mk".
Glenn Morris [Tue, 8 May 2012 17:23:09 +0000 (13:23 -0400)]
* lisp/files.el (auto-mode-alist): Treat ".make" like ".mk".

12 years ago* lisp/vc/log-edit.el: Add GNU coding standards highlighting.
Stefan Monnier [Tue, 8 May 2012 15:19:18 +0000 (11:19 -0400)]
* lisp/vc/log-edit.el: Add GNU coding standards highlighting.
(log-edit-font-lock-gnu-style)
(log-edit-font-lock-gnu-keywords): New vars.
(log-edit-font-lock-keywords): New fun.
(log-edit-mode): Don't fold case in font-lock.
(log-edit-font-lock-keywords): Do not assume case-folding.
* .dir-locals.el (log-edit-mode): Enable gnu-style checks.

12 years ago* lisp/imenu.el: Misc cleanup. Make docstrings out of comments.
Stefan Monnier [Tue, 8 May 2012 14:19:08 +0000 (10:19 -0400)]
* lisp/imenu.el: Misc cleanup.  Make docstrings out of comments.
Use lexical-binding.
(imenu--index-alist, imenu--last-menubar-index-alist)
(imenu-menubar-modified-tick): Use defvar-local.
(imenu--split-menu): Remove unused var.
(imenu--cleanup-seen): Declare as global.
(imenu--cleanup): Use dolist.

12 years ago* lisp/subr.el (defvar-local): Add debug spec and doc-string position.
Stefan Monnier [Tue, 8 May 2012 14:11:47 +0000 (10:11 -0400)]
* lisp/subr.el (defvar-local): Add debug spec and doc-string position.

12 years agoRemove doc/lispref/two.el
Glenn Morris [Tue, 8 May 2012 07:18:18 +0000 (00:18 -0700)]
Remove doc/lispref/two.el

* doc/lispref/two.el: Remove; unused since creation of two-volume.make.

* make-dist: No more doc/lispref/*.el.

12 years agoFOR-RELEASE comment
Glenn Morris [Tue, 8 May 2012 06:44:18 +0000 (23:44 -0700)]
FOR-RELEASE comment

12 years agoStop keeping 3 copies of the lispref menu structure for no reason
Glenn Morris [Tue, 8 May 2012 06:38:27 +0000 (23:38 -0700)]
Stop keeping 3 copies of the lispref menu structure for no reason

vol1.texi and vol2.texi are only used to generate TeX output, and this
constructs its own table of contents and does not use the @menu stuff.

* vol1.texi, vol2.texi: No need to keep menus in these files.
* elisp.texi, anti.texi: Comments.

12 years ago* doc/lispref/Makefile.in (clean): Add some more vol1/2 items.
Glenn Morris [Tue, 8 May 2012 02:01:28 +0000 (22:01 -0400)]
* doc/lispref/Makefile.in (clean): Add some more vol1/2 items.

12 years agodoc/lispref/two-volume.make small fix
Glenn Morris [Tue, 8 May 2012 01:57:08 +0000 (21:57 -0400)]
doc/lispref/two-volume.make small fix

* doc/lispref/two-volume.make (emacsdir): New.
(tex): Add directory with emacsver.texi to TEXINPUTS.

12 years agoRemove no-byte-compile setting from some lisp/language files.
Glenn Morris [Tue, 8 May 2012 01:50:17 +0000 (21:50 -0400)]
Remove no-byte-compile setting from some lisp/language files.

Same comments as per 2012-05-01T06:59:34Z!rgm@gnu.org, for lisp/term:

  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.

12 years ago* lisp/play/zone.el (zone-pgm-stress): Don't pollute kill-ring. (Bug#11388)
Glenn Morris [Tue, 8 May 2012 01:41:05 +0000 (21:41 -0400)]
* lisp/play/zone.el (zone-pgm-stress): Don't pollute kill-ring.  (Bug#11388)

12 years ago* progmodes/make-mode.el (makefile-browse): Remove unnecessary interactive.
Aaron S. Hawley [Tue, 8 May 2012 01:25:52 +0000 (21:25 -0400)]
* progmodes/make-mode.el (makefile-browse): Remove unnecessary interactive.

Fixes: debbugs:11324

12 years ago* shell.el (shell-completion-vars): Fix last change.
Stefan Monnier [Tue, 8 May 2012 00:27:13 +0000 (20:27 -0400)]
* shell.el (shell-completion-vars): Fix last change.

Fixes: debbugs:11348

12 years ago* doc/misc/forms.texi (Long Example): Update for changed location of files.
Glenn Morris [Mon, 7 May 2012 23:02:28 +0000 (19:02 -0400)]
* doc/misc/forms.texi (Long Example): Update for changed location of files.

12 years agoMove some forms.el example files to etc/forms directory
Glenn Morris [Mon, 7 May 2012 22:53:17 +0000 (18:53 -0400)]
Move some forms.el example files to etc/forms directory

* 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.

12 years agoFix NEWS typo
Glenn Morris [Mon, 7 May 2012 22:40:58 +0000 (18:40 -0400)]
Fix NEWS typo

12 years agoAlso apply previous change to file locals at the end of the file
Glenn Morris [Mon, 7 May 2012 21:45:34 +0000 (17:45 -0400)]
Also apply previous change to file locals at the end of the file

12 years ago* lisp/international/mule.el (find-auto-coding): Make "unibyte: t" obsolete.
Glenn Morris [Mon, 7 May 2012 21:26:08 +0000 (17:26 -0400)]
* lisp/international/mule.el (find-auto-coding): Make "unibyte: t" obsolete.
* etc/NEWS: Edits.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-04/msg00434.html

12 years ago* loadup.el: Preload newcomment.el.
Stefan Monnier [Mon, 7 May 2012 20:48:41 +0000 (16:48 -0400)]
* loadup.el: Preload newcomment.el.
* newcomment.el: Move autoload-only code to toplevel.

12 years ago2012-05-05 Stefan Merten <smerten@oekonux.de>
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.

12 years ago* lisp/buff-menu.el (list-buffers--refresh): Mark `size' as right-align.
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.

12 years agoFix up display of the *Minibuf-0* buffer in the mini window.
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.

12 years ago* dbusbind.c (XD_DEBUG_MESSAGE): Don't print message twice in
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.

12 years agoRestore Buffer-menu-use-header-line functionality.
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.

12 years agoImprove previous dir-locals-read-from-file change
Glenn Morris [Mon, 7 May 2012 04:29:59 +0000 (21:29 -0700)]
Improve previous dir-locals-read-from-file change

12 years agoFix a gdb-mi process filtering issue arising in ansi-color.el.
Chong Yidong [Mon, 7 May 2012 03:14:21 +0000 (11:14 +0800)]
Fix a gdb-mi process filtering issue arising in ansi-color.el.

* lisp/ansi-color.el (ansi-color-process-output): Check for validity
of comint-last-output-start before using it.  This avoids a bad
interaction with gdb-mi's input/output buffer.

12 years ago* files.el (dir-locals-read-from-file): Mention dir-locals in any error message.
Glenn Morris [Sun, 6 May 2012 17:57:28 +0000 (10:57 -0700)]
* files.el (dir-locals-read-from-file): Mention dir-locals in any error message.

12 years ago* lisp/buff-menu.el: Convert to Tabulated List mode.
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.

12 years ago* lisp/emacs-lisp/cl-macs.el (cl-expr-contains): Handle cons cells
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

12 years agoAuto-commit of generated files.
Glenn Morris [Sun, 6 May 2012 10:18:48 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoSome cleanups for the buffer menu and electric buffer menu.
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.

12 years agoImprovements for Tabulated List mode.
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

12 years agoFix match highlighting in compilation buffers.
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

12 years ago* frames.texi (Mouse References, Mouse Commands): Fix index entries.
Chong Yidong [Sun, 6 May 2012 04:28:58 +0000 (12:28 +0800)]
* frames.texi (Mouse References, Mouse Commands): Fix index entries.

Fixes: debbugs:11362

12 years agoCosmetic fix for Man-unindent.
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

12 years ago* emacs-lisp/package.el (package-built-in-p): Handle `emacs' package.
Chong Yidong [Sun, 6 May 2012 04:05:43 +0000 (12:05 +0800)]
* emacs-lisp/package.el (package-built-in-p): Handle `emacs' package.

Fixes: debbugs:11410

12 years agoOptionally include holidays in cal-html output
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.

12 years agoMove function from cal-tex to 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.

12 years agoChangeLog fixes
Glenn Morris [Sat, 5 May 2012 16:38:22 +0000 (09:38 -0700)]
ChangeLog fixes

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 5 May 2012 11:17:30 +0000 (07:17 -0400)]
Auto-commit of generated files.

12 years ago* configure.in: Fix quoting bugs.
Andreas Schwab [Sat, 5 May 2012 10:34:06 +0000 (12:34 +0200)]
* configure.in: Fix quoting bugs.

12 years ago* configure.in: Fix last change.
Andreas Schwab [Sat, 5 May 2012 10:18:38 +0000 (12:18 +0200)]
* configure.in: Fix last change.

12 years agoOnly ignore info/*.info
Andreas Schwab [Sat, 5 May 2012 09:40:49 +0000 (11:40 +0200)]
Only ignore info/*.info

12 years agoFix failures in starting subprocesses on Windows 7.
Eli Zaretskii [Sat, 5 May 2012 08:40:31 +0000 (11:40 +0300)]
Fix failures in starting subprocesses on Windows 7.

 src/w32proc.c (new_child): Force Windows to reserve only 64KB of
 stack for each reader_thread, instead of defaulting to 8MB
 determined by the linker.  This avoids failures in creating
 subprocesses on Windows 7, see the discussion in this thread:
 http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html.

12 years agoFix package.el handling of local variables on first line.
Chong Yidong [Sat, 5 May 2012 05:13:27 +0000 (13:13 +0800)]
Fix package.el handling of local variables on first line.

* lisp/emacs-lisp/package.el (package-buffer-info): Avoid putting
local variables into description.

12 years agoMerge from emacs-24; up to 2012-04-20T05:47:55Z!eliz@gnu.org
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

12 years ago* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
Stefan Monnier [Sat, 5 May 2012 04:18:49 +0000 (00:18 -0400)]
* lisp/shell.el (shell-completion-vars): Set pcomplete-arg-quote-list like
shell-delimiter-argument-list.
(shell-parse-pcomplete-arguments): Obey pcomplete-arg-quote-list.

Fixes: debbugs:11348

12 years ago* lisp/files.el (file-auto-mode-skip): New var.
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.

12 years agoUse set-temporary-overlay-map.
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.

12 years ago* minibuf.texi (Minibuffer History, Basic Completion): Tweak page breaks.
Glenn Morris [Sat, 5 May 2012 02:49:19 +0000 (19:49 -0700)]
* minibuf.texi (Minibuffer History, Basic Completion): Tweak page breaks.

12 years agoUndo part of previous change
Glenn Morris [Sat, 5 May 2012 02:28:00 +0000 (19:28 -0700)]
Undo part of previous change

12 years agoMore small edits for doc/lispref
Glenn Morris [Sat, 5 May 2012 02:26:45 +0000 (19:26 -0700)]
More small edits for doc/lispref

* internals.texi (Garbage Collection, Memory Usage)
(Writing Emacs Primitives): Tweak page breaks.

12 years ago* lisp/emacs-lisp/pcase.el (pcase--let*): New function.
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).

12 years agoNew function set-temporary-overlay-map and macros (defvar|setq)-local.
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.

12 years agoMore page break tweaks for doc/lispref
Glenn Morris [Sat, 5 May 2012 01:16:54 +0000 (21:16 -0400)]
More page break tweaks for doc/lispref

* doc/lispref/edebug.texi (Edebug Display Update): Improve page break.
* doc/lispref/streams.texi (Output Variables): Improve page break.

12 years ago* doc/lispref/compile.texi (Disassembly): Condense the examples.
Glenn Morris [Sat, 5 May 2012 01:05:12 +0000 (21:05 -0400)]
* doc/lispref/compile.texi (Disassembly): Condense the examples.

12 years agoMore small edits for doc/lispref
Glenn Morris [Sat, 5 May 2012 00:37:30 +0000 (20:37 -0400)]
More small edits for doc/lispref

* control.texi: Where possible, use example rather than smallexample.
(Sequencing, Conditionals, Signaling Errors, Handling Errors):
Tweak page breaks.

* customize.texi: Where possible, use example rather than smallexample.
(Common Keywords, Variable Definitions, Applying Customizations)
(Custom Themes): Tweak page breaks.

* eval.texi, functions.texi, loading.texi, macros.texi:
Where possible, use example rather than smallexample.

* sequences.texi (Arrays): Tweak page breaks.

* symbols.texi: Where possible, use example rather than smallexample.
(Symbol Components): Fix typo.
(Other Plists): Tweak page break.

12 years agoAdd new error and function `user-error'.
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.

12 years ago* doc/misc/Makefile.in (info): Make it the first target again.
Glenn Morris [Fri, 4 May 2012 20:53:03 +0000 (16:53 -0400)]
* doc/misc/Makefile.in (info): Make it the first target again.

12 years ago* lisp/dabbrev.el (dabbrev--ignore-case-p): New function.
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.

12 years ago* lisp/files.el (automount-dir-prefix): Mark as obsolete.
Stefan Monnier [Fri, 4 May 2012 19:14:42 +0000 (15:14 -0400)]
* lisp/files.el (automount-dir-prefix): Mark as obsolete.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 4 May 2012 11:17:28 +0000 (07:17 -0400)]
Auto-commit of loaddefs files.

12 years agoBackport fix for Bug#11282 from trunk
Kenichi Handa [Fri, 4 May 2012 10:26:36 +0000 (18:26 +0800)]
Backport fix for Bug#11282 from trunk

12 years ago* select.el (xselect--encode-string): Always use utf-8 for TEXT on Nextstep.
Chong Yidong [Fri, 4 May 2012 10:23:00 +0000 (18:23 +0800)]
* select.el (xselect--encode-string): Always use utf-8 for TEXT on Nextstep.

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 4 May 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoSmall edits for doc/lispref/lists.texi
Glenn Morris [Fri, 4 May 2012 07:38:33 +0000 (00:38 -0700)]
Small edits for doc/lispref/lists.texi

* lists.texi (List-related Predicates, List Variables): Tweak page-breaks.
(Sets And Lists): Convert inforef to xref.

12 years ago* text.texi (Auto Filling): Don't mention Emacs 19.
Glenn Morris [Fri, 4 May 2012 07:29:52 +0000 (00:29 -0700)]
* text.texi (Auto Filling): Don't mention Emacs 19.

12 years agoA belated farewell to documenting Emacs 18 features
Glenn Morris [Fri, 4 May 2012 07:27:29 +0000 (00:27 -0700)]
A belated farewell to documenting Emacs 18 features

* commands.texi (Event Input Misc): Don't mention unread-command-char.
* numbers.texi (Predicates on Numbers): Don't mention Emacs 18.

12 years ago* objects.texi (Process Type, Overlay Type): Tweak page-breaks.
Glenn Morris [Fri, 4 May 2012 07:24:02 +0000 (00:24 -0700)]
* objects.texi (Process Type, Overlay Type): Tweak page-breaks.

12 years agoSmall edits for lispref/intro.texi
Glenn Morris [Fri, 4 May 2012 07:14:51 +0000 (00:14 -0700)]
Small edits for lispref/intro.texi

* intro.texi (Caveats): Copyedit.
(Lisp History): Convert inforef to xref.
(Lisp History, Printing Notation, Version Info): Improve page-breaks.

12 years ago* elisp.texi (DATE): Forgot to change the month in 2012-04-21 change.
Glenn Morris [Fri, 4 May 2012 07:04:40 +0000 (00:04 -0700)]
* elisp.texi (DATE): Forgot to change the month in 2012-04-21 change.

12 years agoGive info files the .info extension
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.