bpt/emacs.git
10 years agoNew experimental feature to save&restore window and frame setup.
Juanma Barranquero [Thu, 27 Jun 2013 09:08:14 +0000 (11:08 +0200)]
New experimental feature to save&restore window and frame setup.

* etc/NEWS: Document new Desktop option `desktop-save-windows'.

* lisp/desktop.el (desktop-save-windows): New defcustom.
  (desktop--saved-states): New var.
  (desktop--excluded-frame-parameters): New defconst.
  (desktop--filter-frame-parms, desktop--find-frame-in-display)
  (desktop--restore-windows, desktop--save-windows): New functions.
  (desktop-save): Call `desktop--save-windows'.
  (desktop-read): Call `desktop--restore-windows'.

10 years ago* net/shr.el (add-face-text-property): Removed compat definition.
Lars Magne Ingebrigtsen [Thu, 27 Jun 2013 09:01:08 +0000 (11:01 +0200)]
* net/shr.el (add-face-text-property): Removed compat definition.

10 years ago* NEWS: Mention new version of todo-mode.el and obsoleting and
Stephen Berman [Thu, 27 Jun 2013 08:44:19 +0000 (10:44 +0200)]
* NEWS: Mention new version of todo-mode.el and obsoleting and
renaming of old version.

10 years ago* obsolete/otodo-mode.el: Add obsolescence info to file header.
Stephen Berman [Thu, 27 Jun 2013 08:33:43 +0000 (10:33 +0200)]
* obsolete/otodo-mode.el: Add obsolescence info to file header.

10 years ago* python-tests.el (python-tests-with-temp-file): Clean up after ourself
Glenn Morris [Thu, 27 Jun 2013 05:46:51 +0000 (22:46 -0700)]
* python-tests.el (python-tests-with-temp-file): Clean up after ourself

10 years ago* net/eww.el (eww-read-bookmarks): Check file size.
Leo Liu [Thu, 27 Jun 2013 04:27:53 +0000 (12:27 +0800)]
* net/eww.el (eww-read-bookmarks): Check file size.

10 years agoFix ChangeLog typo
Glenn Morris [Thu, 27 Jun 2013 02:16:53 +0000 (19:16 -0700)]
Fix ChangeLog typo

10 years ago* automated/undo-tests.el (undo-test3): Remove test that seems to
Glenn Morris [Thu, 27 Jun 2013 02:00:54 +0000 (19:00 -0700)]
* automated/undo-tests.el (undo-test3): Remove test that seems to
nothing that the previous one doesn't, except leave a tempfile.

Fix copyright header.

10 years agoDo not create locallisppath directories.
Juanma Barranquero [Thu, 27 Jun 2013 01:40:46 +0000 (03:40 +0200)]
Do not create locallisppath directories.

* Makefile.in (install-arch-indep): Do not create directories passed
with --enable-locallisppath.

* etc/NEWS: Mention policy change with respect to locallisppath dirs.

10 years ago* lisp/emacs-lisp/nadvice.el (advice--defalias-fset): Move advice back to
Stefan Monnier [Wed, 26 Jun 2013 22:31:19 +0000 (18:31 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--defalias-fset): Move advice back to
advice--pending if newdef is nil or an autoload.
(advice-mapc): New function.

Fixes: debbugs:13820

10 years ago(eww-bookmark-browse): Don't bug out if it's the only window.
Lars Magne Ingebrigtsen [Wed, 26 Jun 2013 17:14:46 +0000 (19:14 +0200)]
(eww-bookmark-browse): Don't bug out if it's the only window.

10 years ago(eww-add-bookmark): Remove newlines from the title.
Lars Magne Ingebrigtsen [Wed, 26 Jun 2013 16:59:21 +0000 (18:59 +0200)]
(eww-add-bookmark): Remove newlines from the title.

10 years agoAdd bookmark support to eww
Lars Magne Ingebrigtsen [Wed, 26 Jun 2013 16:54:48 +0000 (18:54 +0200)]
Add bookmark support to eww

* net/eww.el (eww-mode): Undo isn't necessary in eww buffers,
probably.
(eww-mode-map): Add a menu bar.
(eww-add-bookmark): New command.
(eww-bookmark-mode): New mode and commands.

10 years ago* tips.texi (Coding Conventions): Improve wording.
Christopher Schmidt [Wed, 26 Jun 2013 15:22:21 +0000 (17:22 +0200)]
* tips.texi (Coding Conventions): Improve wording.

10 years ago(eww-mode-map): Add a menu bar.
Lars Magne Ingebrigtsen [Wed, 26 Jun 2013 13:07:24 +0000 (15:07 +0200)]
(eww-mode-map): Add a menu bar.

10 years agoImplement a command and mode for displaying and editing cookies
Lars Magne Ingebrigtsen [Wed, 26 Jun 2013 12:54:33 +0000 (14:54 +0200)]
Implement a command and mode for displaying and editing cookies

10 years ago* lisp/htmlfontify.el (hfy-triplet): Handle unspecified-fg, bg.
Glenn Morris [Wed, 26 Jun 2013 06:59:48 +0000 (23:59 -0700)]
* lisp/htmlfontify.el (hfy-triplet): Handle unspecified-fg, bg.
(hfy-size): Handle ttys.

Fixes: debbugs:14668

10 years agoinfo-xref.el: Update for Texinfo 5 change in *note format
Glenn Morris [Wed, 26 Jun 2013 01:52:09 +0000 (18:52 -0700)]
info-xref.el: Update for Texinfo 5 change in *note format

* lisp/info-xref.el (info-xref-node-re, info-xref-note-re): New constants.
(info-xref-check-buffer): Use info-xref-note-re.

* test/automated/info-xref.el: New file.

10 years ago* lisp/simple.el (set-variable): Use read-from-minibuffer.
Stefan Monnier [Wed, 26 Jun 2013 00:50:50 +0000 (20:50 -0400)]
* lisp/simple.el (set-variable): Use read-from-minibuffer.

Fixes: debbugs:14710

10 years ago* lisp/emacs-lisp/package.el (package--add-to-archive-contents): Add missing
Stefan Monnier [Wed, 26 Jun 2013 00:44:35 +0000 (20:44 -0400)]
* lisp/emacs-lisp/package.el (package--add-to-archive-contents): Add missing
nil to terminate the loop.

Fixes: debbugs:14718

10 years ago(eww-render): Move the history reset to the correct buffer.
Lars Magne Ingebrigtsen [Tue, 25 Jun 2013 22:29:01 +0000 (00:29 +0200)]
(eww-render): Move the history reset to the correct buffer.

10 years ago* net/eww.el: Rework history traversal.
Lars Magne Ingebrigtsen [Tue, 25 Jun 2013 22:24:43 +0000 (00:24 +0200)]
* net/eww.el: Rework history traversal.

When going forward/back, put these actions into the history, too, so
that they can be replayed.

10 years ago* lisp/files-x.el (read-file-local-variable-value): Add `default'.
Juri Linkov [Tue, 25 Jun 2013 20:48:54 +0000 (23:48 +0300)]
* lisp/files-x.el (read-file-local-variable-value): Add `default'.

Fixes: debbugs:14710

10 years ago* lisp/files-x.el (modify-dir-local-variable): Change the header comment
Juri Linkov [Tue, 25 Jun 2013 20:23:10 +0000 (23:23 +0300)]
* lisp/files-x.el (modify-dir-local-variable): Change the header comment
in the file with directory local variables.

Fixes: debbugs:14692

10 years ago* net/eww.el (eww-download): New command and keystroke.
Ivan Kanis [Tue, 25 Jun 2013 19:50:05 +0000 (21:50 +0200)]
* net/eww.el (eww-download): New command and keystroke.

* net/eww.el (eww-make-unique-file-name): Create a unique file
name before saving to entering `y' accidentally asynchronously.

10 years agoUse `w' for copying URLs in shr and eww
Lars Magne Ingebrigtsen [Tue, 25 Jun 2013 19:25:14 +0000 (21:25 +0200)]
Use `w' for copying URLs in shr and eww

* net/eww.el (eww-mode-map): Ditto.

* net/eww.el (eww-copy-page-url): Changed name of command.

* net/shr.el (shr-map): Change `shr-copy-url' from `u' to `w' to
be more consistent with Info and dired.

10 years agolisp/window.el: Fix previous change (2013-06-25T15:08:47Z!lekktu@gmail.com).
Stefan Monnier [Tue, 25 Jun 2013 17:20:19 +0000 (19:20 +0200)]
lisp/window.el: Fix previous change (2013-06-25T15:08:47Z!lekktu@gmail.com).

10 years ago* lisp/emacs-lisp/package.el: Include obsolete packages from archives.
Stefan Monnier [Tue, 25 Jun 2013 16:13:49 +0000 (12:13 -0400)]
* lisp/emacs-lisp/package.el: Include obsolete packages from archives.
Use lexical-binding.
(package-archive-contents): Change format; include obsolete packages.
(package-desc): Use `dir' to mark builtin packages.
(package--from-builtin): Set the `dir' field to `builtin'.
(generated-autoload-file, version-control): Declare.
(package-compute-transaction): Change first arg and return value to be
lists of package-descs.  Adjust to new package-archive-contents format.
(package--add-to-archive-contents): Adjust to new
package-archive-contents format.
(package-download-transaction): Arg is now a list of package-descs.
(package-install): If `pkg' is a package name, pass it as
a requirement, so it is subject to the usual (e.g. disabled) checks.
(describe-package): Accept package-desc as well.
(describe-package-1): Describe a specific package-desc.  Add links to
other package-descs for the same package name.
(package-menu-describe-package): Pass the actual package-desc.
(package-menu-mode): Add to tabulated-list-revert-hook so revert-buffer
works correctly.
(package-desc-status): New function.
(package-menu--refresh): New function, extracted
from package-menu--generate.
(package-menu--generate): Use it.
(package-delete): Update package-alist.
(package-menu-execute): Don't call package-initialize.

* lisp/progmodes/idlw-toolbar.el, lisp/progmodes/idlw-shell.el,
lisp/progmodes/idlw-help.el, lisp/progmodes/idlw-complete-structtag.el,
lisp/progmodes/ebnf-yac.el, lisp/progmodes/ebnf-otz.el,
lisp/progmodes/ebnf-iso.el, lisp/progmodes/ebnf-ebx.el,
lisp/progmodes/ebnf-dtd.el, lisp/progmodes/ebnf-bnf.el,
lisp/progmodes/ebnf-abn.el, lisp/emacs-lisp/package-x.el,
lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el
lisp/cedet/data-debug.el, lisp/cedet/cedet-idutils.el:
Neuter the "Version:" header.

10 years agoMention eww
Lars Magne Ingebrigtsen [Tue, 25 Jun 2013 15:49:02 +0000 (17:49 +0200)]
Mention eww

10 years agolisp/window.el (window--state-get-1): Workaround for bug#14527.
Martin Rudalics [Tue, 25 Jun 2013 15:44:42 +0000 (17:44 +0200)]
lisp/window.el (window--state-get-1): Workaround for bug#14527.
http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00941.html

10 years ago(eww-forward-url) Allow going forward in the history, too.
Lars Magne Ingebrigtsen [Tue, 25 Jun 2013 15:39:13 +0000 (17:39 +0200)]
(eww-forward-url) Allow going forward in the history, too.

This may not be the most intuitive way to implement this.  Perhaps
following links should flush "forwards"...

10 years agont/configure.bat: Warn about deprecation status.
Juanma Barranquero [Tue, 25 Jun 2013 15:08:47 +0000 (17:08 +0200)]
nt/configure.bat: Warn about deprecation status.

10 years ago(eww) Reimplement the history functionality
Lars Magne Ingebrigtsen [Tue, 25 Jun 2013 14:59:13 +0000 (16:59 +0200)]
(eww) Reimplement the history functionality

* net/eww.el (eww-back-url): Implement the history by stashing all
the data into a list.

10 years ago* lisp/files-x.el (read-file-local-variable-value): Use read-from-minibuffer
Stefan Monnier [Tue, 25 Jun 2013 13:07:04 +0000 (09:07 -0400)]
* lisp/files-x.el (read-file-local-variable-value): Use read-from-minibuffer
for values and use read--expression for expressions.
(read-file-local-variable): Avoid setq.
(read-file-local-variable-mode): Use minor-mode-list.

Fixes: debbugs:14710

10 years agobibtex-generate-url-list): Add support for DOI URLs
Roland Winkler [Tue, 25 Jun 2013 09:18:09 +0000 (21:18 +1200)]
bibtex-generate-url-list): Add support for DOI URLs

10 years agobibtex-mode: Update imenu-support when dialect changes
Roland Winkler [Tue, 25 Jun 2013 09:15:44 +0000 (21:15 +1200)]
bibtex-mode: Update imenu-support when dialect changes

10 years agoShameful typo
Glenn Morris [Tue, 25 Jun 2013 02:31:09 +0000 (19:31 -0700)]
Shameful typo

10 years ago* test/automated/occur-tests.el (occur-test-create): New function.
Glenn Morris [Tue, 25 Jun 2013 02:24:32 +0000 (19:24 -0700)]
* test/automated/occur-tests.el (occur-test-create): New function.
Use it to create separate tests for each element, so we run them
all rather than stopping at the first error.

10 years agoAdd some notes related to the Emacs www pages
Glenn Morris [Tue, 25 Jun 2013 02:15:00 +0000 (19:15 -0700)]
Add some notes related to the Emacs www pages

10 years ago* ido.el (ido-read-internal): Allow forward slash on windows.
Leo Liu [Tue, 25 Jun 2013 01:04:06 +0000 (09:04 +0800)]
* ido.el (ido-read-internal): Allow forward slash on windows.

10 years ago* test/automated/occur-tests.el (occur-tests):
Glenn Morris [Mon, 24 Jun 2013 23:52:33 +0000 (19:52 -0400)]
* test/automated/occur-tests.el (occur-tests):
Update for 2013-05-29 change to occur header line.

10 years ago* net/eww.el (eww): Start of strings is \\`, not ^.
Lars Magne Ingebrigtsen [Mon, 24 Jun 2013 17:42:22 +0000 (19:42 +0200)]
* net/eww.el (eww): Start of strings is \\`, not ^.

10 years ago* net/shr.el (shr-browse-url): Fix interactive spec.
Ivan Kanis [Mon, 24 Jun 2013 17:41:26 +0000 (19:41 +0200)]
* net/shr.el (shr-browse-url): Fix interactive spec.

10 years ago* net/eww.el (eww): Add a trailing slash to domain names.
Ivan Kanis [Mon, 24 Jun 2013 17:38:51 +0000 (19:38 +0200)]
* net/eww.el (eww): Add a trailing slash to domain names.

10 years agolisp/faces.el (face-spec-recalc): Revert part of 2013-06-23T20:29:18Z!lekktu@gmail...
Juanma Barranquero [Mon, 24 Jun 2013 16:06:47 +0000 (18:06 +0200)]
lisp/faces.el (face-spec-recalc): Revert part of 2013-06-23T20:29:18Z!lekktu@gmail.com.

Fixes: debbugs:14705

10 years ago* net/shr.el (shr-browse-url): Use an external browser if given a prefix.
Lars Magne Ingebrigtsen [Mon, 24 Jun 2013 14:03:26 +0000 (16:03 +0200)]
* net/shr.el (shr-browse-url): Use an external browser if given a prefix.

10 years ago* net/eww.el (eww-external-browser): Moved to shr.
Lars Magne Ingebrigtsen [Mon, 24 Jun 2013 13:57:35 +0000 (15:57 +0200)]
* net/eww.el (eww-external-browser): Moved to shr.

10 years agoeww improvements
Ivan Kanis [Mon, 24 Jun 2013 13:42:07 +0000 (15:42 +0200)]
eww improvements

* net/eww.el (eww): Work more correctly for file: URLs.
(eww-detect-charset): Allow quoted charsets.
(eww-yank-page-url): New command and keystroke.

10 years agoAuto-commit of generated files.
Glenn Morris [Mon, 24 Jun 2013 10:17:44 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoepg.el: Add context option `home-directory' and `program'.
Daiki Ueno [Mon, 24 Jun 2013 07:07:08 +0000 (16:07 +0900)]
epg.el: Add context option `home-directory' and `program'.

* epg.el (epg-make-context): Check if PROTOCOL is valid; embed the
file name of gpg executable.
(epg-context-program): New function.
(epg-context-home-directory): New function.
(epg-context-set-program): New function.
(epg-context-set-home-directory): New function.
(epg--start): Use `epg-context-program' instead of
'epg-gpg-program'.
(epg--list-keys-1): Likewise.

11 years agoMerge from emacs-24; up to 2012-12-29T06:14:00Z!cyd@gnu.org
Glenn Morris [Mon, 24 Jun 2013 06:58:52 +0000 (23:58 -0700)]
Merge from emacs-24; up to 2012-12-29T06:14:00Z!cyd@gnu.org

11 years ago* doc/emacs/rmail.texi: Comment
Glenn Morris [Mon, 24 Jun 2013 06:52:33 +0000 (23:52 -0700)]
* doc/emacs/rmail.texi: Comment

11 years agoSimplify last change to ido.el
Leo Liu [Mon, 24 Jun 2013 04:08:10 +0000 (12:08 +0800)]
Simplify last change to ido.el

11 years agoRevert previous change
Glenn Morris [Mon, 24 Jun 2013 02:38:45 +0000 (19:38 -0700)]
Revert previous change

11 years ago* doc/misc/eudc.texi (Overview, Creating BBDB Records): Restrict bbdb cross-ref
Glenn Morris [Mon, 24 Jun 2013 02:26:57 +0000 (19:26 -0700)]
* doc/misc/eudc.texi (Overview, Creating BBDB Records): Restrict bbdb cross-ref
to info output.  It's not very important, and gives broken links in
the html version.

11 years ago* doc/emacs/files.texi: Comment.
Glenn Morris [Mon, 24 Jun 2013 02:24:40 +0000 (19:24 -0700)]
* doc/emacs/files.texi: Comment.

11 years ago* ido.el (ido-read-internal): Fix bug#14620.
Leo Liu [Mon, 24 Jun 2013 02:15:56 +0000 (10:15 +0800)]
* ido.el (ido-read-internal): Fix bug#14620.

11 years ago* doc/misc/eshell.texi: Fix cross-references to other manuals.
Glenn Morris [Mon, 24 Jun 2013 00:42:12 +0000 (17:42 -0700)]
* doc/misc/eshell.texi: Fix cross-references to other manuals.

11 years agoA more-conservative workaround for Cygwin SIGCHLD issues.
Paul Eggert [Mon, 24 Jun 2013 00:31:31 +0000 (17:31 -0700)]
A more-conservative workaround for Cygwin SIGCHLD issues.

* callproc.c (Fcall_process):
* process.c (create_process):
Make sure SIGCHLD is caught before we fork,
since Emacs startup no arranges to catch SIGCHLD.
* process.c (lib_child_handler): Initialize to null, not to
dummy_handler.
(catch_child_signal): Allow self to be called lazily.
Do nothing if it's already been called.
Assume caller has blocked SIGCHLD (all callers do now).
* emacs.c (main): Do not catch SIGCHLD here; defer it until
just before it's really needed.
* nsterm.m (ns_term_init): No need to re-catch SIGCHLD here,
since it hasn't been caught yet.

Fixes: debbugs:14569

11 years agolisp/faces.el: Minor changes.
Juanma Barranquero [Sun, 23 Jun 2013 20:29:18 +0000 (22:29 +0200)]
lisp/faces.el: Minor changes.
(face-documentation): Simplify.
(read-face-attribute, tty-find-type, x-resolve-font-name):
Use `string-match-p'.
(list-faces-display): Use `string-match-p'.  Simplify.
(face-spec-recalc): Check face to avoid face alias loops.
(read-color): Use `string-match-p' and non-capturing parenthesis.

11 years agoImplement :max-width/:max-height for (ImageMagic) images
Lars Magne Ingebrigtsen [Sun, 23 Jun 2013 19:24:27 +0000 (21:24 +0200)]
Implement :max-width/:max-height for (ImageMagic) images

* doc/lispref/display.texi (ImageMagick Images): Mention :max-width and
:max-height.

* lisp/net/shr.el (shr-rescale-image): Use the new
:max-width/:max-height functionality.

* src/image.c (compute_image_size): New function to implement
:max-width and :max-height.
(imagemagick_load_image): Use it.

11 years ago* net/eww.el: Bind `C-c C-c' to "submit" in all form keymaps.
Ivan Kanis [Sun, 23 Jun 2013 18:29:30 +0000 (20:29 +0200)]
* net/eww.el: Bind `C-c C-c' to "submit" in all form keymaps.

11 years agoeww.el: Add a command to browse using and external browser
Ivan Kanis [Sun, 23 Jun 2013 18:27:58 +0000 (20:27 +0200)]
eww.el: Add a command to browse using and external browser

(eww-external-browser): New variable.
(eww-mode-map): New keystroke.
(eww-browse-with-external-browser): New command.

11 years agoeww.el: If given a non-domain text, search for the term
Ivan Kanis [Sun, 23 Jun 2013 18:22:28 +0000 (20:22 +0200)]
eww.el: If given a non-domain text, search for the term

* net/eww.el (eww-search-prefix): New variable.
(eww): Use it.

11 years agoTry to avoid malloc SEGVs on Cygwin.
Paul Eggert [Sun, 23 Jun 2013 18:18:47 +0000 (11:18 -0700)]
Try to avoid malloc SEGVs on Cygwin.

* callproc.c, process.h (block_child_signal, unblock_child_signal):
Now extern.
* emacs.c (main): Catch SIGCHLD just before initializing gfilenotify.
* process.c (catch_child_signal): Block SIGCHLD while futzing with
the SIGCHLD handler, since the code is not atomic and (due to glib)
signals may be arriving now.
* sysdep.c (init_signals): Do not catch child signals here;
'main' now does that later, at a safer time.

Fixes: debbugs:14569

11 years agolisp/emacs-lisp/tabulated-list.el: Fix alignment problem with :pad-right = 0.
Juanma Barranquero [Sun, 23 Jun 2013 13:23:49 +0000 (15:23 +0200)]
lisp/emacs-lisp/tabulated-list.el: Fix alignment problem with :pad-right = 0.
(tabulated-list-init-header): Don't skip aligning the next header field when
padding is 0; otherwise, field width is not respected unless the title is as
wide as the field.

11 years agoRemove some doc/misc/Makefile.in stuff that is not needed any more
Glenn Morris [Sun, 23 Jun 2013 01:48:23 +0000 (18:48 -0700)]
Remove some doc/misc/Makefile.in stuff that is not needed any more

* doc/misc/Makefile.in (HTML_TARGETS, html, emacs-faq.html, emacs-faq):
Remove; not needed now we use a standard html layout for the faq.
(clean): Remove HTML_TARGETS, emacs-faq.text.

11 years ago* lisp/emacs-lisp/package.el (package-el-version): Remove.
Stefan Monnier [Sat, 22 Jun 2013 20:09:19 +0000 (16:09 -0400)]
* lisp/emacs-lisp/package.el (package-el-version): Remove.
(package-process-define-package): Fix inf-loop.
(package-install): Allow symbols as arguments again.

11 years agoClean up SIGCHLD handling a bit.
Paul Eggert [Sat, 22 Jun 2013 19:01:47 +0000 (12:01 -0700)]
Clean up SIGCHLD handling a bit.

* process.c, process.h (catch_child_signal):
Now always extern, even if !NS_IMPL_GNUSTEP.
* process.c (catch_child_signal): Move glib tickler here from
init_process_emacs, so that it's done earlier in Emacs
initialization.  Also move the noninteractive && !initialized
check here from init_process_emacs.  This is all a bit cleaner for
GNUish platforms, and I hope it works around the Cygwin bug.
* sysdep.c (init_signals): Invoke catch_child_signal here, so
that glib signal handling is tickled before glib creates threads.

Fixes: debbugs:14569

11 years ago* process.c (wait_reading_process_output): Avoid int overflow
Paul Eggert [Sat, 22 Jun 2013 16:43:39 +0000 (09:43 -0700)]
* process.c (wait_reading_process_output): Avoid int overflow

when reading more than 2 GiB total from a process.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `catch',
Dmitry Gutov [Sat, 22 Jun 2013 13:25:43 +0000 (17:25 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move `catch',
add some more keyword-like methods.
http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00911.html

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 22 Jun 2013 11:17:30 +0000 (07:17 -0400)]
Auto-commit of generated files.

11 years ago.bzrignore: Add GNU idutils ID database file.
Juanma Barranquero [Sat, 22 Jun 2013 02:41:14 +0000 (04:41 +0200)]
.bzrignore: Add GNU idutils ID database file.

11 years agolisp/bs.el, emacs-lock.el: Use defvar-local, setq-local.
Juanma Barranquero [Sat, 22 Jun 2013 02:33:33 +0000 (04:33 +0200)]
lisp/bs.el, emacs-lock.el: Use defvar-local, setq-local.

* lisp/bs.el (bs-buffer-show-mark): Make defvar-local.
  (bs-mode): Use setq-local.

* lisp/emacs-lock.el (emacs-lock-mode, emacs-lock--old-mode)
  (emacs-lock--try-unlocking): Make defvar-local.

11 years ago* lisp/play/cookie1.el (cookie-apropos): Minor simplification.
Glenn Morris [Sat, 22 Jun 2013 00:37:18 +0000 (20:37 -0400)]
* lisp/play/cookie1.el (cookie-apropos): Minor simplification.

11 years ago* lisp/progmodes/gdb-mi.el (gdb-mapcar*): Remove, replace with cl-mapcar.
Glenn Morris [Sat, 22 Jun 2013 00:35:51 +0000 (20:35 -0400)]
* lisp/progmodes/gdb-mi.el (gdb-mapcar*): Remove, replace with cl-mapcar.

11 years ago* configure.ac: Include X11/X.h when testing for Xft.h.
Glenn Morris [Sat, 22 Jun 2013 00:28:07 +0000 (20:28 -0400)]
* configure.ac: Include X11/X.h when testing for Xft.h.

Fixes: debbugs:14684

11 years ago* lisp/progmodes/ruby-mode.el (auto-mode-alist): Do not use
Dmitry Gutov [Sat, 22 Jun 2013 00:11:24 +0000 (04:11 +0400)]
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Do not use
`regexp-opt', it breaks the build during dumping.

11 years ago* progmodes/ruby-mode.el (auto-mode-alist): Forgot "Guardfile".
Dmitry Gutov [Fri, 21 Jun 2013 23:20:54 +0000 (03:20 +0400)]
* progmodes/ruby-mode.el (auto-mode-alist): Forgot "Guardfile".

11 years ago* lisp/progmodes/ruby-mode.el (auto-mode-alist): Consolidate different
Dmitry Gutov [Fri, 21 Jun 2013 23:14:38 +0000 (03:14 +0400)]
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Consolidate different
entries into one regexp and add more *file-s.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
Dmitry Gutov [Fri, 21 Jun 2013 23:07:49 +0000 (03:07 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
keyword-like methods on Kernel and Module with
font-lock-builtin-face.

11 years ago* process.c (create_process): Handle a couple more cases,
Paul Eggert [Fri, 21 Jun 2013 22:16:37 +0000 (15:16 -0700)]
* process.c (create_process): Handle a couple more cases,

i.e., work even if new_argv and wait_child_setup[i] are cached.
Use Fcall_process's style for volatile vars.

11 years ago* lisp/ChangeLog: Add changes for new version of todo-mode.el.
Stephen Berman [Fri, 21 Jun 2013 21:55:44 +0000 (23:55 +0200)]
* lisp/ChangeLog: Add changes for new version of todo-mode.el.

11 years agoMerge from trunk.
Stephen Berman [Fri, 21 Jun 2013 21:40:50 +0000 (23:40 +0200)]
Merge from trunk.

11 years ago* process.c (create_process): Mark PROCESS volatile.
Andreas Schwab [Fri, 21 Jun 2013 21:27:17 +0000 (23:27 +0200)]
* process.c (create_process): Mark PROCESS volatile.

11 years ago* calendar/ChangeLog: Remove prior to merging new version of
Stephen Berman [Fri, 21 Jun 2013 21:04:32 +0000 (23:04 +0200)]
* calendar/ChangeLog: Remove prior to merging new version of
  todo-mode.el to trunk.

11 years ago* lib-src/ebrowse.c: Include <stddef.h>, needed on some platforms.
Paul Eggert [Fri, 21 Jun 2013 20:27:13 +0000 (13:27 -0700)]
* lib-src/ebrowse.c: Include <stddef.h>, needed on some platforms.

11 years agoUse C99-style flexible array members if available.
Paul Eggert [Fri, 21 Jun 2013 20:11:44 +0000 (13:11 -0700)]
Use C99-style flexible array members if available.

This avoids some subtle aliasing issues, which typically
aren't a problem with GCC but may be a problem elsewhere.
* lib-src/ebrowse.c (struct member, struct alias, struct sym):
Use FLEXIBLE_ARRAY_MEMBER.
(add_sym, add_member, make_namespace, register_namespace_alias):
Use offsetof (struct, flex_array_member), not sizeof (struct), as
that ports better to pre-C99 non-GCC.
* src/alloc.c (sdata): New typedef, replacing the old struct sdata.
It is a struct if GC_CHECK_STRING_BYTES, a union otherwise.
In either case, it uses a flexible array member rather than
the old struct hack.  All uses changed.
(SDATA_NBYTES, sweep_strings) [!GC_CHECK_STRING_BYTES]:
Adjust to sdata reorganization.
* src/alloc.c (VBLOCK_BYTES_MIN, allocate_vectorlike, Fgarbage_collect):
Use offsetof (struct, flex_array_member), not sizeof (struct), as
that ports better to pre-C99 non-GCC.
* src/chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
Use CHAR_TABLE_STANDARD_SLOTS rather than its definition,
as the latter has changed.
* src/conf_post.h (FLEXIBLE_ARRAY_MEMBER): Move here from w32.c,
and port better to pre-C99 GCC.
* src/image.c (struct xpm_cached_color):
* src/lisp.h (struct Lisp_Vector, struct Lisp_Bool_Vector)
(struct Lisp_Char_Table, struct Lisp_Sub_Char_Table):
Use FLEXIBLE_ARRAY_MEMBER.
* src/lisp.h (string_bytes) [GC_CHECK_STRING_BYTES]:
Move decl to top level so it gets checked against implementation.
(CHAR_TABLE_STANDARD_SLOTS): Adjust to struct Lisp_Char_Table change.
* src/w32.c (FLEXIBLE_ARRAY_MEMBER): Move to conf_post.h.

11 years agoMerge from trunk.
Stephen Berman [Fri, 21 Jun 2013 18:37:42 +0000 (20:37 +0200)]
Merge from trunk.

11 years agoUse cookie functions in yow
Glenn Morris [Fri, 21 Jun 2013 16:00:00 +0000 (09:00 -0700)]
Use cookie functions in yow

* play/cookie1.el (cookie-apropos): Add optional display argument.
* obsolete/yow.el (apropos-zippy): Use cookie-apropos.
(psychoanalyze-pinhead): Use cookie-doctor.

11 years agolisp/emacs-lisp/package.el (tar-get-file-descriptor, tar--extract): Declare.
Juanma Barranquero [Fri, 21 Jun 2013 15:30:53 +0000 (17:30 +0200)]
lisp/emacs-lisp/package.el (tar-get-file-descriptor, tar--extract): Declare.

11 years agoExtend flymake's warning predicate to be a function. Test suite for flymake.
Eduard Wiebe [Fri, 21 Jun 2013 14:36:13 +0000 (10:36 -0400)]
Extend flymake's warning predicate to be a function.  Test suite for flymake.
* lisp/progmodes/flymake.el (flymake-warning-predicate): New.
(flymake-parse-line): Use it.
(flymake-warning-re): Make obsolete alias to
`flymake-warning-predicate'.
* doc/misc/flymake.texi (Parsing the output, Customizable variables):
Add reference to `flymake-warning-predicate'.
* test/automated/flymake-tests.el:
* test/automated/flymake/warnpred/Makefile
* test/automated/flymake/warnpred/test.c
* test/automated/flymake/warnpred/test.pl: New files.

Fixes: debbugs:14217

11 years ago* lisp/emacs-lisp/package.el (package-alist): Include obsolete packages.
Stefan Monnier [Fri, 21 Jun 2013 14:12:56 +0000 (10:12 -0400)]
* lisp/emacs-lisp/package.el (package-alist): Include obsolete packages.
(package-obsolete-list): Remove.
(package-activate): Remove min-version argument.  Add `force' argument.
Adjust to new package-alist format.
(package-mark-obsolete): Remove.
(package-unpack): Force reload of the package's autoloads.
(package-installed-p): Check builtins if the installed package is not
recent enough.
(package-initialize): Don't reset package-obsolete-list.
Don't specify which package version to activate.
(package-process-define-package, describe-package-1)
(package-menu--generate): Adjust to new package-alist format.

11 years ago* todo-mode.el: Change two occurrences of "document string" to
Stephen Berman [Fri, 21 Jun 2013 14:07:46 +0000 (16:07 +0200)]
* todo-mode.el: Change two occurrences of "document string" to
"documentation string".

11 years ago* todo-mode.el: Clean up doc strings, comments and prompt strings,
Stephen Berman [Fri, 21 Jun 2013 14:02:39 +0000 (16:02 +0200)]
* todo-mode.el: Clean up doc strings, comments and prompt strings,
mainly by changing "Todo" to "todo" when it is not part of a mode
name or does not begin a sentence.

11 years agoleim/quail/*.el: Fix typos.
Juanma Barranquero [Fri, 21 Jun 2013 13:37:15 +0000 (15:37 +0200)]
leim/quail/*.el: Fix typos.

* leim/quail/croatian.el ("croatian-prefix"):
* leim/quail/czech.el ("czech", "czech-qwerty"):
* leim/quail/ipa-praat.el ("ipa-praat"):
* leim/quail/ipa.el ("ipa-x-sampa"):
* leim/quail/tibetan.el ("tibetan-wylie", "tibetan-tibkey"):
* leim/quail/uni-input.el (ucs-input-activate): Fix typos in docstrings.

11 years ago* todo-mode.el: Offer to convert legacy file. Update commentary.
Stephen Berman [Fri, 21 Jun 2013 13:23:51 +0000 (15:23 +0200)]
* todo-mode.el: Offer to convert legacy file.  Update commentary.
(todo-show): If a legacy file is found and no new todo file
exists, offer to convert it and show it.  Restore autoload cookie.
(todo-convert-legacy-files): Delete unused local variable.
If todo-directory doesn't exist, create it before writing to file.
Check format of converted files.  Prompt to show converted todo file.

11 years agolisp/*.el: Fix typos; use string-match-p, looking-at-p, setq-local, defvar-local.
Juanma Barranquero [Fri, 21 Jun 2013 12:24:37 +0000 (14:24 +0200)]
lisp/*.el: Fix typos; use string-match-p, looking-at-p, setq-local, defvar-local.

* lisp/allout-widgets.el (allout-widgets-mode-off)
  (allout-widgets-mode-on, allout-widgets-pre-command-business)
  (allout-widgets-post-command-business)
  (allout-widgets-after-copy-or-kill-function)
  (allout-widgets-after-undo-function, allout-test-range-overlaps)
  (allout-decorate-item-and-context)
  (allout-graphics-modification-handler): Fix typos in docstrings.
  (allout-get-or-create-parent-widget): Use `looking-at-p'.

* lisp/cmuscheme.el (scheme-start-file): Doc fix.
  (inferior-scheme-mode, switch-to-scheme): Fix typos in docstrings.
  (scheme-input-filter): Use `string-match-p'.

* lisp/composite.el (compose-gstring-for-terminal): Fix typo in docstring.

* lisp/dired-x.el: Use Dired consistently in docstrings.

* lisp/dired.el: Use Dired consistently in docstrings.
  (dired-readin, dired-mode): Use `setq-local'.
  (dired-switches-alist): Make defvar-local.
  (dired-buffers-for-dir): Use `zerop'.
  (dired-safe-switches-p, dired-switches-escape-p)
  (dired-insert-old-subdirs, dired-move-to-end-of-filename)
  (dired-glob-regexp, dired-in-this-tree, dired-goto-file-1)
  (dired-sort-set-mode-line, dired-sort-toggle, dired-sort-R-check):
  (dired-goto-next-nontrivial-file): Use `string-match-p'.
  (dired-align-file, dired-insert-directory, dired-mark-files-in-region)
  (dired-toggle-marks, dired-mark-files-containing-regexp)
  (dired-mark-symlinks, dired-mark-directories, dired-mark-executables)
  (dired-flag-auto-save-files, dired-flag-backup-files):
  Use `looking-at-p'.
  (dired-mark-files-regexp, dired-build-subdir-alist):
  Use `string-match-p', `looking-at-p'.

* lisp/dos-w32.el (untranslated-canonical-name, untranslated-file-p)
  (direct-print-region-helper): Use `string-match-p'.

11 years agoAuto-commit of generated files.
Glenn Morris [Fri, 21 Jun 2013 10:17:38 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* comint.el (comint-redirect-results-list-from-process): Fix
Leo Liu [Fri, 21 Jun 2013 09:37:04 +0000 (17:37 +0800)]
* comint.el (comint-redirect-results-list-from-process): Fix
infinite loop.