Kenichi Handa [Sat, 27 Apr 2013 13:35:45 +0000 (22:35 +0900)]
merge trunk
Kenichi Handa [Sat, 27 Apr 2013 13:34:02 +0000 (22:34 +0900)]
merge trunk
Stefan Monnier [Sat, 27 Apr 2013 13:32:53 +0000 (09:32 -0400)]
* lisp/emacs-lisp/package.el (package-autoload-ensure-default-file):
Add current dir to the load-path.
(package-generate-autoloads): Don't rely on autoload-ensure-default-file.
Kenichi Handa [Sat, 27 Apr 2013 13:32:24 +0000 (22:32 +0900)]
font.c (font_open_entity): Always open a font of manageable size.
Glenn Morris [Sat, 27 Apr 2013 10:17:37 +0000 (06:17 -0400)]
Auto-commit of generated files.
Bastien Guerry [Sat, 27 Apr 2013 06:38:41 +0000 (08:38 +0200)]
lisp/ChangeLog: Tiny ChangeLog formatting fix.
Reuben Thomas [Fri, 26 Apr 2013 23:55:06 +0000 (00:55 +0100)]
Fix docstring buglet in remember.el
Paul Eggert [Fri, 26 Apr 2013 19:31:09 +0000 (12:31 -0700)]
Port better to AIX.
* configure.ac (CFLAGS): Append -O if the user did not specify CFLAGS,
we did not already infer an optimization option, and -O works.
AIX xlc needs -O, otherwise garbage collection doesn't work.
* src/lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too,
to pacify AIX xlc.
Fixes: debbugs:14258
Leo Liu [Fri, 26 Apr 2013 17:11:04 +0000 (01:11 +0800)]
* progmodes/octave.el (octave-sync-function-file-names): Fix last
change.
Leo Liu [Fri, 26 Apr 2013 16:44:38 +0000 (00:44 +0800)]
* progmodes/octave.el (octave-sync-function-file-names): New function.
(octave-mode): Use it in before-save-hook.
Stefan Monnier [Fri, 26 Apr 2013 14:47:07 +0000 (10:47 -0400)]
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode): Disable undo.
Fixes: debbugs:14274
Stefan Monnier [Fri, 26 Apr 2013 14:34:26 +0000 (10:34 -0400)]
* lisp/progmodes/octave.el (octave-smie-forward-token): Properly skip
\n and comment, even if it's not an implicit ;.
Fixes: debbugs:14218
Katsumi Yamaoka [Fri, 26 Apr 2013 13:56:37 +0000 (13:56 +0000)]
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix again
Katsumi Yamaoka [Fri, 26 Apr 2013 10:36:36 +0000 (10:36 +0000)]
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Fix last change
Katsumi Yamaoka [Fri, 26 Apr 2013 10:22:07 +0000 (10:22 +0000)]
lisp/gnus/mail-source.el (mail-source-fetch-pop, mail-source-check-pop): Don't set the MAILHOST environment variable permanently (Bug#14271)
Glenn Morris [Fri, 26 Apr 2013 07:59:32 +0000 (00:59 -0700)]
* lisp/gnus/message.el (message-bury): Revert 2013-03-18 change.
Fixes: debbugs:14117
Glenn Morris [Fri, 26 Apr 2013 07:34:54 +0000 (00:34 -0700)]
Merge from emacs-24; up to 2012-12-27T08:21:08Z!rgm@gnu.org
Glenn Morris [Fri, 26 Apr 2013 07:31:27 +0000 (00:31 -0700)]
Add missing reftex-label-ignored-macros-and-environments :version tag
Glenn Morris [Fri, 26 Apr 2013 07:25:45 +0000 (00:25 -0700)]
list-load-path-shadows simplification
* lisp/emacs-lisp/shadow.el (list-load-path-shadows):
No longer necessary to check for duplicate simple.el, since
2012-07-07 change to init_lread to not include installation lisp
directories in load-path when running uninstalled.
Fixes: debbugs:14270
Leo Liu [Fri, 26 Apr 2013 04:16:37 +0000 (12:16 +0800)]
* progmodes/octave.el (octave-submit-bug-report): Obsolete.
(octave-mode, inferior-octave-mode): Use setq-local.
(octave-not-in-string-or-comment-p): Renamed to
octave-in-string-or-comment-p.
(octave-in-comment-p, octave-in-string-p)
(octave-in-string-or-comment-p): Replace defsubst with defun.
Andrew Cohen [Fri, 26 Apr 2013 02:08:43 +0000 (02:08 +0000)]
lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Re-order conditional to work for string values of 'gcc-self
Paul Eggert [Thu, 25 Apr 2013 21:20:17 +0000 (14:20 -0700)]
* Makefile.in (distclean): Remove $(lisp)/loaddefs.el~.
Bastien Guerry [Thu, 25 Apr 2013 17:39:44 +0000 (19:39 +0200)]
* textmodes/remember.el (remember-data-directory)
(remember-directory-file-name-format): Fix custom types.
Thanks to Glenn Morris for reporting these problems and for the fixes.
Leo Liu [Thu, 25 Apr 2013 16:23:56 +0000 (00:23 +0800)]
* progmodes/octave.el (octave-completion-at-point-function): Make
use of inferior octave process.
(octave-initialize-completions): Remove.
(inferior-octave-completion-table): New function.
(inferior-octave-completion-at-point): Use it.
(octave-completion-alist): Remove.
Stefan Monnier [Thu, 25 Apr 2013 16:07:33 +0000 (12:07 -0400)]
* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
(opascal-mode-syntax-table): New var.
(opascal-literal-kind, opascal-is-literal-end)
(opascal-literal-token-at): Rewrite.
(opascal--literal-start-re, opascal-font-lock-keywords)
(opascal--syntax-propertize): New constants.
(opascal-font-lock-defaults): Adjust.
(opascal-mode): Use them. Set comment-<foo> variables as well.
(delphi-comment-face, opascal-comment-face, delphi-string-face)
(opascal-string-face, delphi-keyword-face, opascal-keyword-face)
(delphi-other-face, opascal-other-face): Remove face variables.
(opascal-save-state): Remove macro.
(opascal-fontifying-progress-step): Remove constant.
(opascal--ignore-changes): Remove var.
(opascal-set-token-property, opascal-parse-next-literal)
(opascal-is-stable-literal, opascal-complete-literal)
(opascal-is-literal-start, opascal-face-of)
(opascal-parse-region, opascal-parse-region-until-stable)
(opascal-fontify-region, opascal-after-change)
(opascal-debug-show-is-stable, opascal-debug-unparse-buffer)
(opascal-debug-parse-region, opascal-debug-parse-window)
(opascal-debug-parse-buffer, opascal-debug-fontify-window)
(opascal-debug-fontify-buffer): Remove.
(opascal-debug-mode-map): Adjust accordingly.
Leo Liu [Thu, 25 Apr 2013 14:51:08 +0000 (22:51 +0800)]
Merge octave-mod.el and octave-inf.el into octave.el with some
cleanups.
* progmodes/octave.el: New file renamed from octave-mod.el.
* progmodes/octave-inf.el: Merged into octave.el.
* progmodes/octave-mod.el: Renamed to octave.el.
Tassilo Horn [Thu, 25 Apr 2013 12:01:09 +0000 (14:01 +0200)]
* textmodes/reftex-vars.el
(reftex-label-ignored-macros-and-environments): New defcustom.
* textmodes/reftex-parse.el (reftex-parse-from-file): Use it.
Stefan Monnier [Thu, 25 Apr 2013 03:25:34 +0000 (23:25 -0400)]
* lisp/progmodes/octave-mod.el (octave-smie-forward-token): Only emit
semi-colons if the line is not otherwise empty.
* lisp/emacs-lisp/smie.el (smie-indent--hanging-p): Don't burp at EOB.
(smie-indent-keyword): Improve the check to ensure that the next
comment is really on the same line.
(smie-indent-comment): Don't align with a subsequent closer (or eob).
Fixes: debbugs:14218
Glenn Morris [Thu, 25 Apr 2013 00:53:18 +0000 (20:53 -0400)]
* lisp/vc/vc-bzr.el (vc-bzr-print-log): Tweak LIMIT = 1 case.
Andrew Cohen [Wed, 24 Apr 2013 22:07:21 +0000 (22:07 +0000)]
lisp/gnus/nnir.el (nnir-close-group): Make sure we are in the right group
Andrew Cohen [Wed, 24 Apr 2013 22:06:56 +0000 (22:06 +0000)]
lisp/gnus/gnus-sum.el (gnus-summary-insert-articles): Force dependencies update with newly retrieved headers
Paul Eggert [Wed, 24 Apr 2013 21:02:44 +0000 (14:02 -0700)]
Spelling fix.
Stefan Monnier [Wed, 24 Apr 2013 20:44:45 +0000 (16:44 -0400)]
* lisp/progmodes/opascal.el (opascal-set-token-property): Rename from
opascal-set-text-properties and only set `token'.
(opascal-literal-text-properties): Remove.
(opascal-parse-next-literal, opascal-debug-unparse-buffer):
Adjust callers.
Fixes: debbugs:14134
Eli Zaretskii [Wed, 24 Apr 2013 19:06:20 +0000 (22:06 +0300)]
Fix "make info" in doc/lispintro on MS-Windows.
doc/lispintro/makefile.w32-in (INFO_OPTS): Add "-I$(emacsdir)" to fix last
commit.
Glenn Morris [Wed, 24 Apr 2013 17:31:43 +0000 (10:31 -0700)]
* subr.el (read-number): Once more use `read'
rather than `string-to-number', to trap non-numeric input.
Fixes: debbugs:14254
Tassilo Horn [Wed, 24 Apr 2013 16:50:14 +0000 (18:50 +0200)]
* themes/tsdh-dark-theme.el (tsdh-dark): Add ido faces and remove
:box from outline faces.
Kenichi Handa [Wed, 24 Apr 2013 15:09:49 +0000 (00:09 +0900)]
coding.c (decode_coding_iso_2022): When an invalid escape sequence is encountered, reset the invocation and designation status to the safest one.
Bastien Guerry [Wed, 24 Apr 2013 14:35:59 +0000 (16:35 +0200)]
* textmodes/remember.el (remember-handler-functions): Add an
option for a new handler `remember-store-in-files'.
(remember-data-directory, remember-directory-file-name-format):
New options.
(remember-store-in-files): New function to store remember notes
as separate files within a directory.
Magnus Henoch [Wed, 24 Apr 2013 13:50:22 +0000 (09:50 -0400)]
* lisp/progmodes/compile.el (compilation-next-error-function):
Pass "formats" to compilation-find-file.
Fixes: debbugs:11777
Glenn Morris [Wed, 24 Apr 2013 08:13:52 +0000 (01:13 -0700)]
* vc/vc-bzr.el (vc-bzr-print-log): Improve START-REVISION with LIMIT != 1.
Fixes: debbugs:14168
Glenn Morris [Wed, 24 Apr 2013 07:59:29 +0000 (00:59 -0700)]
vc-hg, vc-svn print-log fixes for start-revision with limit != 1
* vc/vc-hg.el (vc-hg-print-log):
* vc/vc-svn.el (vc-svn-print-log): Fix START-REVISION with LIMIT != 1.
Fixes: debbugs:14168
Glenn Morris [Wed, 24 Apr 2013 07:52:00 +0000 (00:52 -0700)]
Doc fixes related to vc-print-log
* vc/vc-bzr.el (vc-bzr-print-log):
* vc/vc-cvs.el (vc-cvs-print-log):
* vc/vc-git.el (vc-git-print-log):
* vc/vc-hg.el (vc-hg-print-log):
* vc/vc-mtn.el (vc-mtn-print-log):
* vc/vc-rcs.el (vc-rcs-print-log):
* vc/vc-sccs.el (vc-sccs-print-log):
* vc/vc-svn.el (vc-svn-print-log):
* vc/vc.el (vc-print-log-internal): Doc fixes.
Glenn Morris [Wed, 24 Apr 2013 01:09:00 +0000 (21:09 -0400)]
Remove old comments about making various formats (use Makefile instead)
Glenn Morris [Wed, 24 Apr 2013 00:58:23 +0000 (20:58 -0400)]
Minor lispintro tweaks
* doc/lispintro/Makefile.in (emacsdir): New variable..
(MAKEINFO_OPTS, ENVADD): Add $emacsdir.
(srcs): Add emacsver.texi.
(dist): Include emacsver.texi. Edit emacsdir.
* doc/lispintro/emacs-lisp-intro.texi (emacsver.texi): Include it.
(copying): For non-printed versions, uses Emacs version rather
than that of the printed book.
(Complications, Lisp macro, defvar and asterisk, defcustom): Copyedits.
* doc/lispintro/makefile.w32-in (emacsdir): New variable.
(INFO_SOURCES): Add emacsver.texi.
(ENVADD): Add $emacsdir (and $texinfodir).
Xue Fuqiao [Tue, 23 Apr 2013 22:26:40 +0000 (06:26 +0800)]
Doc fix for emacs-lisp-intro.texi.
* doc/lispintro/emacs-lisp-intro.texi (Writing Defuns, Prevent confusion,
Determining the Element, lambda): Refine the doc about Lisp macros,
reported by Glenn Morris.
Glenn Morris [Tue, 23 Apr 2013 21:51:40 +0000 (17:51 -0400)]
Remove some code duplication in startup.el
"If keys have their default meanings, use precomputed string to save
lots of time" implies substitute-command-keys was slow 20+ years ago
when this was originally written. But we were accidentally using the
"slow" branch for 5 years and no-one complained about speed (bug#13970).
* lisp/startup.el (normal-no-mouse-startup-screen, normal-about-screen):
Remove venerable code attempting to avoid substitute-command-keys.
Glenn Morris [Tue, 23 Apr 2013 18:57:44 +0000 (11:57 -0700)]
* doc/lispref/internals.texi (Writing Emacs Primitives): Remove obvious example.
Tweak other to avoid overly long line.
Tassilo Horn [Tue, 23 Apr 2013 17:07:49 +0000 (19:07 +0200)]
Fix recursive load issue with reftex.el and reftex-vars.el.
Tassilo Horn [Tue, 23 Apr 2013 15:23:59 +0000 (17:23 +0200)]
* textmodes/reftex.el (reftex-compile-variables): Add autoload
cookie.
Tassilo Horn [Tue, 23 Apr 2013 15:18:58 +0000 (17:18 +0200)]
* textmodes/reftex-vars.el (reftex-label-regexps): Call
`reftex-compile-variables' after changes to this variable.
Stefan Monnier [Tue, 23 Apr 2013 12:29:14 +0000 (08:29 -0400)]
* lisp/jit-lock.el: Fix signals in jit-lock-force-redisplay.
Use lexical-binding.
(jit-lock-force-redisplay): Use markers, check buffer's continued
existence and beware narrowed buffers.
(jit-lock-fontify-now): Adjust call accordingly.
Stefan Monnier [Tue, 23 Apr 2013 12:27:06 +0000 (08:27 -0400)]
* lisp/minibuffer.el (minibuffer-completion-contents): Fix obsolescence info
to avoid misleading the user.
Xue Fuqiao [Tue, 23 Apr 2013 00:43:07 +0000 (08:43 +0800)]
emacs-lisp-intro.texi fixes.
* doc/lispintro/emacs-lisp-intro.texi (Complications, defvar): Refine the doc about Lisp macros. (http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00618.html)
Leo Liu [Mon, 22 Apr 2013 14:41:32 +0000 (22:41 +0800)]
* info-look.el: Prefer latex2e.info.
Fixes: debbugs:14240
Erik Charlebois [Mon, 22 Apr 2013 14:11:37 +0000 (10:11 -0400)]
* lisp/emacs-lisp/syntax.el (syntax-propertize-multiline):
Use `syntax-multiline' text property consistently instead of
`font-lock-multiline'..
Fixes: debbugs:14237
Michael Albinus [Mon, 22 Apr 2013 10:26:09 +0000 (12:26 +0200)]
* net/tramp-compat.el (tramp-compat-call-process): Move function ...
* net/tramp.el (tramp-call-process): ... here
(tramp-set-completion-function, tramp-parse-putty):
* net/tramp-adb.el (tramp-adb-execute-adb-command):
* net/tramp-gvfs.el (tramp-gvfs-send-command):
* net/tramp-sh.el (tramp-sh-handle-set-file-times)
(tramp-set-file-uid-gid, tramp-sh-handle-write-region)
(tramp-call-local-coding-command): Use `tramp-call-process'
instead of `tramp-compat-call-process'.
* net/tramp-sh.el (tramp-perl-pack, tramp-perl-unpack): New defconst.
(tramp-local-coding-commands, tramp-remote-coding-commands): Use them.
(tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
(tramp-find-inline-compress):Improve traces.
(tramp-maybe-send-script): Check for Perl binary.
(tramp-get-inline-coding): Do not redirect STDOUT for local decoding.
Paul Eggert [Mon, 22 Apr 2013 05:18:30 +0000 (22:18 -0700)]
* Makefile.in (bootstrap-clean): Remove stamp-h1 too.
Without this fix, "make distclean" leaves stamp-h1 behind.
Paul Eggert [Mon, 22 Apr 2013 05:08:36 +0000 (22:08 -0700)]
* make-dist: Do not distribute admin/unidata/Makefile.
It is generated by 'configure'.
Paul Eggert [Mon, 22 Apr 2013 05:01:33 +0000 (22:01 -0700)]
* build-aux/update-subdirs: Don't leave subdirs.el~ behind.
It messes up 'make distclean', and contains no useful information
because it's a copy of subdirs.el.
Daiki Ueno [Mon, 22 Apr 2013 04:53:05 +0000 (13:53 +0900)]
epg.el: support pinentry mode added in GnuPG 2.1
* epg.el (epg-context-pinentry-mode): New function.
(epg-context-set-pinentry-mode): New function.
(epg--start): Pass --pinentry-mode option to gpg command.
Glenn Morris [Mon, 22 Apr 2013 01:47:58 +0000 (18:47 -0700)]
ChangeLog fix
Xue Fuqiao [Sun, 21 Apr 2013 11:56:28 +0000 (19:56 +0800)]
* emacs-lisp-intro.texi (defcustom, defun, simplified-beginning-of-buffer, defvar, Building Robots, Review, save-excursion): `defun' and `defcustom' are now macros rather than special forms. (Bug#13853)
Xue Fuqiao [Sun, 21 Apr 2013 11:16:30 +0000 (19:16 +0800)]
* doc/lispref/internals.texi (Writing Emacs Primitives): Remove unnecessary references to the sources. (Bug#13800)
Xue Fuqiao [Sun, 21 Apr 2013 03:27:51 +0000 (11:27 +0800)]
searching.texi (Regexp Backslash): Doc fix for backslash constructs in regular expressions.
Xue Fuqiao [Sun, 21 Apr 2013 03:13:04 +0000 (11:13 +0800)]
comint.el: (comint-dynamic-complete-functions, comint-mode-map): `comint-dynamic-complete' is obsolete since 24.1, replaced by `completion-at-point'. (Bug#13774)
Xue Fuqiao [Sun, 21 Apr 2013 02:45:38 +0000 (10:45 +0800)]
startup.el (normal-no-mouse-startup-screen): Bug fix, the default key binding for C-h C-o'. (Bug#13970)
Glenn Morris [Sun, 21 Apr 2013 00:37:54 +0000 (17:37 -0700)]
vc.el doc fixes
* lisp/vc/vc.el (vc-print-log-setup-buttons, vc-print-log-internal):
Add doc strings.
(vc-print-log): Clarify interactive prompt.
Glenn Morris [Sat, 20 Apr 2013 19:48:04 +0000 (12:48 -0700)]
No longer include timestamp in header of .elc files
This removes needless differences between files compiled at different
times or by different people, or from sources in different locations.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00187.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-insert-header):
No longer include timestamp etc information.
* etc/NEWS: Mention this.
Glenn Morris [Sat, 20 Apr 2013 19:11:25 +0000 (12:11 -0700)]
Merge from emacs-24; up to 2012-12-26T22:30:58Z!yamaoka@jpl.org
Roland Winkler [Sat, 20 Apr 2013 17:33:52 +0000 (12:33 -0500)]
lisp/faces.el (read-face-name): Bug fix, return just one face if arg multiple is nil
Stefan Monnier [Sat, 20 Apr 2013 16:24:04 +0000 (12:24 -0400)]
Use add/remove-function to manipulate process-filters.
* lisp/emacs-lisp/nadvice.el (advice--where-alist): Add :override.
(remove-function): Autoload.
* lisp/comint.el (comint-redirect-original-filter-function): Remove.
(comint-redirect-cleanup, comint-redirect-send-command-to-process):
* lisp/vc/vc-cvs.el (vc-cvs-annotate-process-filter,vc-cvs-annotate-command):
* lisp/progmodes/octave-inf.el (inferior-octave-send-list-and-digest):
* lisp/progmodes/prolog.el (prolog-consult-compile):
* lisp/progmodes/gdb-mi.el (gdb, gdb--check-interpreter):
Use add/remove-function instead.
* lisp/progmodes/gud.el (gud-tooltip-original-filter): Remove.
(gud-tooltip-process-output, gud-tooltip-tips):
Use add/remove-function instead.
* lisp/progmodes/xscheme.el (xscheme-previous-process-state): Remove.
(scheme-interaction-mode, exit-scheme-interaction-mode):
Use add/remove-function instead.
* lisp/vc/vc-dispatcher.el: Use lexical-binding.
(vc--process-sentinel): Rename from vc-process-sentinel.
Change last arg to be the code to run. Don't use vc-previous-sentinel
and vc-sentinel-commands any more.
(vc-exec-after): Allow code to be a function. Use add/remove-function.
(compilation-error-regexp-alist, view-old-buffer-read-only): Declare.
Erik Charlebois [Sat, 20 Apr 2013 07:32:31 +0000 (10:32 +0300)]
Better full-screen frame support on MS-Windows.
src/w32fns.c (w32_fullscreen_rect): New function to compute the
window rectangle for the given fullscreen mode.
(w32_wnd_proc): When in a fullscreen mode, WM_WINDOWPOSCHANGING no
longer tunes the window size. This keeps the window's edges flush
with the screen and allows the taskbar to hide itself in fullboth.
src/w32term.c (w32fullscreen_hook): 'fullboth' now shows without
window decorations and uses the entire screen.
src/w32term.h (w32_fullscreen_rect) Add prototype.
(struct w32_output): Replace normal_width, normal_height,
normal_top, and normal_left members with a single normal_placement
struct.
(FRAME_NORMAL_WIDTH, FRAME_NORMAL_HEIGHT, FRAME_NORMAL_TOP):
Remove macros.
(FRAME_NORMAL_PLACEMENT): New macro.
Fixes: debbugs:14180
Masatake YAMATO [Fri, 19 Apr 2013 19:56:16 +0000 (04:56 +0900)]
Added bug number (Bug#14112) to my last ChangeLog entries.
Masatake YAMATO [Fri, 19 Apr 2013 19:02:55 +0000 (04:02 +0900)]
* automated/imenu-tests.el: New file.
Masatake YAMATO [Fri, 19 Apr 2013 18:50:28 +0000 (03:50 +0900)]
* lisp/progmodes/sh-script.el (sh-imenu-generic-expression): Handle
function names with a single character.
Dima Kogan [Fri, 19 Apr 2013 15:58:07 +0000 (11:58 -0400)]
* lisp/progmodes/gud.el (gud-perldb-marker-filter): Understand position info
for subroutines defined in an eval.
Fixes: debbugs:14182
Fabián Ezequiel Gallina [Fri, 19 Apr 2013 13:29:41 +0000 (10:29 -0300)]
Small fixes to 2013-04-19T02:31:09Z!fgallina@gnu.org
* lisp/ChangeLog: Fix Changelog Entry.
* progmodes/python.el (python-imenu-create-flat-index): Remove
leftover `message' call and give credit to old
imenu--flatten-index-alist.
Glenn Morris [Fri, 19 Apr 2013 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.
Thierry Volpiatto [Fri, 19 Apr 2013 05:11:16 +0000 (01:11 -0400)]
* lisp/bookmark.el (bookmark-completing-read): Improve handling of empty
string.
Fixes: debbugs:14176
Stefan Monnier [Fri, 19 Apr 2013 04:09:08 +0000 (00:09 -0400)]
* lisp/vc/vc-dispatcher.el (vc-do-command): Get rid of default sentinel msg.
Fabián Ezequiel Gallina [Fri, 19 Apr 2013 02:31:09 +0000 (23:31 -0300)]
New faster Imenu implementation.
* lisp/progmodes/python.el:
(python-imenu-prev-index-position):
(python-imenu-format-item-label-function)
(python-imenu-format-parent-item-label-function)
(python-imenu-format-parent-item-jump-label-function):
New vars.
(python-imenu-format-item-label)
(python-imenu-format-parent-item-label)
(python-imenu-format-parent-item-jump-label)
(python-imenu--put-parent, python-imenu--build-tree)
(python-imenu-create-index, python-imenu-create-flat-index)
(python-util-popn): New functions.
(python-mode): Set imenu-create-index-function to
python-imenu-create-index.
* test/automated/python-tests.el (python-imenu-prev-index-position-1):
Removed test.
(python-imenu-create-index-1, python-imenu-create-flat-index-1):
New tests.
Fixes: debbugs:14058
John Marino [Thu, 18 Apr 2013 17:12:21 +0000 (10:12 -0700)]
* configure.ac: Add DragonFly BSD, mostly same as FreeBSD (tiny change)
Fixes: debbugs:14068
Stefan Monnier [Thu, 18 Apr 2013 13:15:08 +0000 (09:15 -0400)]
* lisp/winner.el (winner-active-region): Use region-active-p, activate-mark
and deactivate-mark.
* lisp/simple.el (deactivate-mark): Don't inline it.
Fixes: debbugs:14225
Michael Albinus [Thu, 18 Apr 2013 12:47:01 +0000 (14:47 +0200)]
* net/tramp-sh.el (tramp-remote-process-environment): Add "TMOUT=0".
Glenn Morris [Thu, 18 Apr 2013 10:17:38 +0000 (06:17 -0400)]
Auto-commit of generated files.
Tassilo Horn [Thu, 18 Apr 2013 06:24:10 +0000 (08:24 +0200)]
* files.el (auto-mode-alist): Delete OpenDocument and StarOffice
file extensions from the archive-mode entry in order to prefer
doc-view-mode-maybe with archive-mode as fallback (bug#14188).
Glenn Morris [Thu, 18 Apr 2013 05:03:53 +0000 (22:03 -0700)]
Replace AC_PROG_LN_S by a less strict configure test
* configure.ac (AC_PROG_LN_S): Remove, too restrictive.
(LN_S_FILEONLY): New output variable.
* Makefile.in (LN_S): Remove.
(LN_S_FILEONLY): New, set by configure.
(install-arch-dep): Use LN_S_FILEONLY rather than LN_S.
Leo Liu [Thu, 18 Apr 2013 02:20:12 +0000 (10:20 +0800)]
Add an additional key ? for describe-prefix-bindings
Stefan Monnier [Thu, 18 Apr 2013 00:12:33 +0000 (20:12 -0400)]
* lisp/subr.el (with-wrapper-hook): Declare obsolete.
* lisp/simple.el (filter-buffer-substring-function): New hook.
(filter-buffer-substring): Use it.
(filter-buffer-substring-functions): Mark obsolete.
* lisp/minibuffer.el (completion-in-region-function): New hook.
(completion-in-region): Use it.
(completion-in-region-functions): Mark obsolete.
* lisp/mail/mailabbrev.el (mail-abbrevs-setup): Use abbrev-expand-function.
* lisp/abbrev.el (abbrev-expand-function): New hook.
(expand-abbrev): Use it.
(abbrev-expand-functions): Mark obsolete.
* lisp/emacs-lisp/nadvice.el (advice--where-alist): Add :filter-args
and :filter-return.
* lisp/org/org-agenda.el (org-agenda-mode):
* lisp/org/org-indent.el (org-indent-mode): Use the `local' arg of
add-hook/remove-hook.
Fabián Ezequiel Gallina [Wed, 17 Apr 2013 22:23:13 +0000 (19:23 -0300)]
* lisp/progmodes/python.el (python-nav--syntactically): Fix cornercases
and do not care about match data.
* test/automated/python-tests.el (python-nav-backward-defun-2)
(python-nav-backward-defun-3, python-nav-forward-defun-2)
(python-nav-forward-defun-3): New tests.
Stefan Monnier [Wed, 17 Apr 2013 20:52:02 +0000 (16:52 -0400)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Provide specialized
completion tables when completing error conditions and
`declare' arguments.
(lisp-complete-symbol, field-complete): Mark as obsolete.
(check-parens): Unmatched parens are user errors.
* lisp/minibuffer.el (minibuffer-completion-contents): Mark as obsolete.
Agustín Martín [Wed, 17 Apr 2013 18:03:46 +0000 (20:03 +0200)]
textmodes/flyspell.el: Don't check pre-word if buffer was switched.
If command changed the buffer, the decision may be made based on the
current buffer even though it should based on the previous one. This
may lead to false positives and more importantly to errors since
`flyspell-pre-point' is buffer local so it may have unsanitised value
(such as nil) in previous buffer.
To be honest, I'm not sure how this can happen since
`flyspell-pre-point' is set in previous buffer, but nonetheless, I've
been encountering the error for quite some time and finally decided to
fix it. Interestingly, line making `flyspell-pre-point'
a buffer-local variable has a very revealing "Why?? --Stef" comment.
To avoid the problem, change flyspell-check-pre-word-p so that it does
not allow checking of pre-word if command changed buffer
(ie. `flyspell-pre-buffer' is not current buffer).
Agustín Martín [Wed, 17 Apr 2013 17:48:10 +0000 (19:48 +0200)]
ispell.el: use `comment-normalize-vars' in ispell-add-per-file-word-list (Bug #14214).
Fabián Ezequiel Gallina [Wed, 17 Apr 2013 05:08:20 +0000 (02:08 -0300)]
New defun movement commands.
* lisp/progmodes/python.el (python-nav--syntactically)
(python-nav--forward-defun, python-nav-backward-defun)
(python-nav-forward-defun): New functions.
* test/automated/python-tests.el (python-nav-backward-defun-1)
(python-nav-forward-defun-1): New tests.
Fabián Ezequiel Gallina [Wed, 17 Apr 2013 02:52:50 +0000 (23:52 -0300)]
* progmodes/python.el (python-syntax--context-compiler-macro): New defun.
(python-syntax-context): Use named compiler-macro for backwards
compatibility with Emacs 24.x.
Leo Liu [Wed, 17 Apr 2013 01:49:22 +0000 (09:49 +0800)]
Fix last change
Leo Liu [Wed, 17 Apr 2013 01:46:26 +0000 (09:46 +0800)]
* progmodes/octave-mod.el (octave-mode-map): Fix key binding to
octave-hide-process-buffer.
Stefan Monnier [Wed, 17 Apr 2013 00:50:44 +0000 (20:50 -0400)]
* lisp/vc/vc-hg.el (vc-hg-annotate-re): Disallow ": " in file names.
Fixes: debbugs:14216
Jean-Philippe Gravel [Wed, 17 Apr 2013 00:35:22 +0000 (20:35 -0400)]
* lisp/progmodes/gdb-mi.el (gdbmi-bnf-incomplete-record-result):
Fix adjustment of offset when receiving incomplete responses from GDB.
Fixes: debbugs:14129
Stefan Monnier [Tue, 16 Apr 2013 17:28:11 +0000 (13:28 -0400)]
* lisp/progmodes/python.el (python-mode-skeleton-abbrev-table): Rename from
python-mode-abbrev-table.
(python-skeleton-define): Adjust accordingly.
(python-mode-abbrev-table): New table that inherits from it so that
python-skeleton-autoinsert does not affect non-skeleton abbrevs.
* lisp/abbrev.el (abbrev--symbol): New function, extracted from abbrev-symbol.
(abbrev-symbol): Use it.
(abbrev--before-point): Use it since we already handle inheritance.