bpt/emacs.git
12 years agoFixes: debbugs:11380
Andreas Schwab [Sun, 29 Apr 2012 20:05:44 +0000 (22:05 +0200)]
Fixes: debbugs:11380

* make-docfile.c (scan_lisp_file) [DEBUG]: Also skip if and
byte-code forms.

12 years agoFix Follow mode's calculation of window ends.
Chong Yidong [Sun, 29 Apr 2012 01:48:23 +0000 (09:48 +0800)]
Fix Follow mode's calculation of window ends.

* lisp/follow.el (follow-calc-win-end): Rewrite to handle partial
screen lines correctly.
(follow-avoid-tail-recenter): Minor cleanup.

Fixes: debbugs:8390

12 years agoDo not avoid creating empty evaporating overlays (Bug#9642).
Paul Eggert [Sat, 28 Apr 2012 22:17:27 +0000 (15:17 -0700)]
Do not avoid creating empty evaporating overlays (Bug#9642).

* buffer.c (Fmove_overlay): Revert the change of 2012-04-23.
That is, do not delete an evaporating overlay if it becomes
empty after its bounds are adjusted to fit within its buffer.
This fix caused other problems, and I'm reverting it until we get
to the bottom of them.

12 years agoAvoid the obsolete `assoc' package.
Stefan Monnier [Sat, 28 Apr 2012 21:59:08 +0000 (17:59 -0400)]
Avoid the obsolete `assoc' package.
* lisp/speedbar.el (speedbar-refresh): Avoid adelete.
(speedbar-file-lists): Simplify and avoid aput.
* lisp/man.el (Man--sections, Man--refpages): New vars, replacing
Man-sections-alist and Man-refpages-alist.
(Man-build-section-alist, Man-build-references-alist):
Use them; avoid aput.
(Man--last-section, Man--last-refpage): New vars.
(Man-follow-manual-reference): Use them.
Use the `default' arg of completing-read.
(Man-goto-section): Idem.  Move prompt to the `interactive' spec.
* lisp/gnus/auth-source.el (auth-source--aput-1, auth-source--aput)
(auth-source--aget): New functions and macros.
Use them instead of aput/aget.

12 years agoAdd some shell indentation test cases.
Stefan Monnier [Sat, 28 Apr 2012 20:04:34 +0000 (16:04 -0400)]
Add some shell indentation test cases.
* test/indent/shell.sh:
* test/indent/shell.rc: Add some test cases.

12 years ago* lisp/vc/diff.el (diff-sentinel): Go to bob.
Chong Yidong [Fri, 27 Apr 2012 14:16:02 +0000 (22:16 +0800)]
* lisp/vc/diff.el (diff-sentinel): Go to bob.

Fixes: debbugs:10259

12 years agoFix org-ctags.el change from trunk 2012-04-09T13:05:48Z!cyd@gnu.org
Glenn Morris [Fri, 27 Apr 2012 06:21:10 +0000 (23:21 -0700)]
Fix org-ctags.el change from trunk 2012-04-09T13:05:48Z!cyd@gnu.org

* lisp/org/org-ctags.el (org-ctags-new-topic-template):
Revert 2012-04-09 removal of * from defcustom value, not doc.

12 years agoFix dates of some merged ChangeLog entries
Glenn Morris [Fri, 27 Apr 2012 06:08:14 +0000 (23:08 -0700)]
Fix dates of some merged ChangeLog entries

12 years agoFix application of menu-bar-mode etc. by X resources.
Chong Yidong [Fri, 27 Apr 2012 05:40:46 +0000 (13:40 +0800)]
Fix application of menu-bar-mode etc. by X resources.

* lisp/startup.el (x-apply-session-resources): New function.

* lisp/term/ns-win.el (ns-initialize-window-system):
* lisp/term/w32-win.el (w32-initialize-window-system):
* lisp/term/x-win.el (x-initialize-window-system): Use it to properly
set menu-bar-mode and other vars from X resources, even if the initial
frame is not a window-system frame (Bug#2299).

12 years agoMerge changes from emacs-24 branch
Chong Yidong [Fri, 27 Apr 2012 03:10:38 +0000 (11:10 +0800)]
Merge changes from emacs-24 branch

12 years agoFix missing prefix warning in pascal.el.
Chong Yidong [Fri, 27 Apr 2012 02:48:38 +0000 (10:48 +0800)]
Fix missing prefix warning in pascal.el.

* progmodes/pascal.el (pascal--extra-indent): Rename from ind, to
fix "missing prefix" warning.  All callers changed.

12 years agoFix for tool-bar confusion in read-key.
Chong Yidong [Fri, 27 Apr 2012 02:24:38 +0000 (10:24 +0800)]
Fix for tool-bar confusion in read-key.

* lisp/subr.el (read-key): Avoid running filter function when setting
up temporary tool bar entries.

Fixes: debbugs:9922

12 years agoAdd NEWS entry pointing to ORG-NEWS.
Chong Yidong [Fri, 27 Apr 2012 02:15:51 +0000 (10:15 +0800)]
Add NEWS entry pointing to ORG-NEWS.

Delete non-Emacs-24 specific items from ORG-NEWS (since standalone Org
mode has its own NEWS, these are not necessary).

12 years ago* emacs-lisp/assoc.el: Move to obsolete/.
Stefan Monnier [Fri, 27 Apr 2012 00:30:56 +0000 (20:30 -0400)]
* emacs-lisp/assoc.el: Move to obsolete/.

12 years agoFix previous change
Glenn Morris [Fri, 27 Apr 2012 00:23:54 +0000 (20:23 -0400)]
Fix previous change

12 years ago* doc/emacs/emacs.texi: Some fixes for detailed menu.
Glenn Morris [Fri, 27 Apr 2012 00:20:02 +0000 (20:20 -0400)]
* doc/emacs/emacs.texi: Some fixes for detailed menu.

12 years agolisp/gnus/plstore.el: Fix buildbot failure with XEmacs
Daiki Ueno [Thu, 26 Apr 2012 22:07:59 +0000 (22:07 +0000)]
lisp/gnus/plstore.el: Fix buildbot failure with XEmacs

12 years agoorg-ctags.el (org-ctags-new-topic-template): Fix the option default value back again.
Bastien Guerry [Thu, 26 Apr 2012 20:46:10 +0000 (22:46 +0200)]
org-ctags.el (org-ctags-new-topic-template): Fix the option default value back again.

This option was changed by error in this commit:
http://git.savannah.gnu.org/cgit/emacs.git/diff/lisp/org/org-protocol.el?h=emacs-24&id=0fc749f9

I first overwrote this change by error, then backported it
into Org git repo, then backported the error back into Emacs.

This is now fixed.

12 years agoChangeLog fix
Glenn Morris [Thu, 26 Apr 2012 18:57:49 +0000 (14:57 -0400)]
ChangeLog fix

12 years ago* lisp/emacs-lisp/assoc.el (aget): Fix dynamic-scoping issue.
Stefan Monnier [Thu, 26 Apr 2012 18:21:03 +0000 (14:21 -0400)]
* lisp/emacs-lisp/assoc.el (aget): Fix dynamic-scoping issue.

Fixes: debbugs:11352

12 years agoChangeLog fix
Glenn Morris [Thu, 26 Apr 2012 18:10:02 +0000 (14:10 -0400)]
ChangeLog fix

12 years agoSome menu fixes for doc/lispref
Glenn Morris [Thu, 26 Apr 2012 17:56:38 +0000 (13:56 -0400)]
Some menu fixes for doc/lispref

* doc/lispref/elisp.texi, doc/lispref/vol1.texi, doc/lispref/vol2.texi:
Some fixes for detailed menu.

* doc/lispref/modes.texi (Major Modes, Auto-Indentation):
* doc/lispref/buffers.texi (Buffers): Some fixes for menu descriptions.

12 years agoSync with Org git commit 374c56b.
Bastien Guerry [Thu, 26 Apr 2012 17:30:04 +0000 (19:30 +0200)]
Sync with Org git commit 374c56b.

12 years agoetc/ORG-NEWS: New file documenting changes between Org 6.34 and current one.
Bastien Guerry [Thu, 26 Apr 2012 17:02:36 +0000 (19:02 +0200)]
etc/ORG-NEWS: New file documenting changes between Org 6.34 and current one.

12 years agolisp/org/ChangeLog: remove references to files that are not in the directory.
Bastien Guerry [Thu, 26 Apr 2012 16:57:34 +0000 (18:57 +0200)]
lisp/org/ChangeLog: remove references to files that are not in the directory.

12 years agoReplace lexical-let by lexical-binding (except Gnus, CEDET, ERT).
Stefan Monnier [Thu, 26 Apr 2012 12:43:28 +0000 (08:43 -0400)]
Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT).
* lisp/term/ns-win.el (ns-define-service):
* lisp/progmodes/pascal.el (pascal-goto-defun):
* lisp/progmodes/js.el (js--read-tab):
* lisp/progmodes/etags.el (tags-lazy-completion-table):
* lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
* lisp/emacs-lisp/ewoc.el (ewoc--wrap):
* lisp/emacs-lisp/assoc.el (aput, adelete, amake):
* lisp/doc-view.el (doc-view-convert-current-doc):
* lisp/url/url.el (url-retrieve-synchronously):
* lisp/vc/diff.el (diff-no-select): Replace lexical-let by lexical-binding.

12 years agoAllow word wrap together with whitespace-mode (bug #11341)
Eli Zaretskii [Thu, 26 Apr 2012 10:49:29 +0000 (13:49 +0300)]
Allow word wrap together with whitespace-mode (bug #11341)

 src/xdisp.c (IT_DISPLAYING_WHITESPACE): In addition to the loaded
 display element, check also the underlying string or buffer
 character.

12 years agoDon't disable Unicode menus on Windows NT and later due to random errors.
Eli Zaretskii [Thu, 26 Apr 2012 10:07:35 +0000 (13:07 +0300)]
Don't disable Unicode menus on Windows NT and later due to random errors.

 src/w32menu.c: Include w32heap.h.
 (add_menu_item): If the call to AppendMenuW (via
 unicode_append_menu) fails, disable Unicode menus only if we are
 running on Windows 9X/Me.

12 years agoFixes: debbugs:11344
Andreas Schwab [Thu, 26 Apr 2012 09:27:37 +0000 (11:27 +0200)]
Fixes: debbugs:11344

* vc/vc-git.el (vc-git-state): Fix regexp matching diff output.

12 years ago* image.el (image-type-from-buffer): Only return supported image type.
Chong Yidong [Thu, 26 Apr 2012 08:43:20 +0000 (16:43 +0800)]
* image.el (image-type-from-buffer): Only return supported image type.

Fixes: debbugs:9045

12 years agoFixes for diff-hunk-kill.
Chong Yidong [Thu, 26 Apr 2012 08:00:47 +0000 (16:00 +0800)]
Fixes for diff-hunk-kill.

* lisp/vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful
value, for symmetry with diff-end-of-hunk.
(diff-split-hunk, diff-find-source-location)
(diff-ignore-whitespace-hunk, diff-refine-hunk): Use it.
(diff-bounds-of-hunk, diff-bounds-of-file): New functions.
(diff-restrict-view, diff-hunk-kill, diff-file-kill): Use them to
compute the relevant hunk or file properly.
(diff-file-junk-re): Add bzr's "modified file" tag.

Fixes: debbugs:6041 debbugs:6005

12 years agoAllow undoing in read-only diff-mode buffers.
Chong Yidong [Thu, 26 Apr 2012 03:43:32 +0000 (11:43 +0800)]
Allow undoing in read-only diff-mode buffers.

* lisp/vc/diff-mode.el (diff-undo): New command.
(diff-mode-shared-map): Bind it to / and [remap undo].

Fixes: debbugs:5302

12 years ago* lisp/vc/vc-mtn.el:
Stefan Monnier [Thu, 26 Apr 2012 03:18:47 +0000 (23:18 -0400)]
* lisp/vc/vc-mtn.el:
* lisp/vc/vc-hg.el:
* lisp/vc/vc-git.el:
* lisp/vc/vc-dir.el:
* lisp/vc/vc-cvs.el:
* lisp/vc/vc-bzr.el:
* lisp/vc/vc-arch.el:
* lisp/vc/vc.el: Replace lexical-let by lexical-binding.
* lisp/minibuffer.el (lazy-completion-table): Avoid ((λ ...) ...).
* lisp/emacs-lisp/cl-macs.el (lexical-let): Fix use in lexical-binding.
* lisp/emacs-lisp/cconv.el (cconv-analyse-form): Warn use of ((λ ...) ...).

12 years agoDeprecate the ((lambda ...) ...) form.
Stefan Monnier [Thu, 26 Apr 2012 03:06:36 +0000 (23:06 -0400)]
Deprecate the ((lambda ...) ...) form.
* doc/lispref/functions.texi (Simple Lambda, Argument List):
* doc/lispref/eval.texi (Function Indirection): Avoid deprecated form.

12 years agoAdapt ediff window handling to multi-tty.
Chong Yidong [Thu, 26 Apr 2012 03:04:36 +0000 (11:04 +0800)]
Adapt ediff window handling to multi-tty.

* vc/ediff-init.el: Always define ediff-pixel-width/height.

* vc/ediff-wind.el (ediff-setup-windows-default): New function.
(ediff-window-setup-function): Use it as the default, to set up
windows based on whether the current frame is graphical.
(ediff-choose-window-setup-function-automatically): Make obsolete.

Fixes: debbugs:2138

12 years agoRevive plstore editing mode previously reverted due to feature freeze.
Daiki Ueno [Thu, 26 Apr 2012 02:03:19 +0000 (11:03 +0900)]
Revive plstore editing mode previously reverted due to feature freeze.

12 years ago* doc/lispref/elisp-covers.texi: Remove file.
Glenn Morris [Thu, 26 Apr 2012 01:51:41 +0000 (18:51 -0700)]
* doc/lispref/elisp-covers.texi: Remove file.

Nothing includes or refers to it, and it has not been updated since Emacs 19.

12 years ago* doc/lispref/front-cover-1.texi: Remove file.
Glenn Morris [Thu, 26 Apr 2012 01:49:03 +0000 (18:49 -0700)]
* doc/lispref/front-cover-1.texi: Remove file.

Nothing includes or refers to it, and it has not been updated since Emacs 19.

12 years agoRemove doc/lispref/tindex.pl
Glenn Morris [Thu, 26 Apr 2012 01:47:05 +0000 (18:47 -0700)]
Remove doc/lispref/tindex.pl
I think it is not needed any more.

* doc/lispref/tindex.pl: Remove file.
* make-dist: No more doc/lispref/tindex.pl.

12 years ago* doc/lispref/Makefile.in (srcs): Remove back.texi (which is unused).
Glenn Morris [Thu, 26 Apr 2012 01:08:03 +0000 (21:08 -0400)]
* doc/lispref/Makefile.in (srcs): Remove back.texi (which is unused).
* doc/lispref/makefile.w32-in (srcs): Same.

12 years agoAdd "et al." to authors for emacs and elisp manuals.
Glenn Morris [Thu, 26 Apr 2012 00:48:08 +0000 (20:48 -0400)]
Add "et al." to authors for emacs and elisp manuals.

This seems only fair, since there have been a large number of
contributors since the original ones.

* doc/emacs/emacs.texi:
* doc/lispref/book-spine.texi, doc/lispref/elisp.texi, doc/lispref/vol1.texi:
* doc/lispref/vol2.texi:
Add "et al." to authors.

12 years agoUse Texinfo recommended convention for quotes+punctuation.
Glenn Morris [Thu, 26 Apr 2012 00:31:47 +0000 (20:31 -0400)]
Use Texinfo recommended convention for quotes+punctuation.

12 years agoAdd support for completion of quoted/escaped data.
Stefan Monnier [Wed, 25 Apr 2012 19:00:18 +0000 (15:00 -0400)]
Add support for completion of quoted/escaped data.

12 years agoRemove unnecessary use of minibuffer-completing-file-name.
Stefan Monnier [Wed, 25 Apr 2012 18:57:09 +0000 (14:57 -0400)]
Remove unnecessary use of minibuffer-completing-file-name.
* lisp/ffap.el: Remove old code for obsolete package.
(ffap-complete-as-file-p): Remove.
* lisp/mh-e/mh-utils.el (minibuffer-completing-file-name): Don't declare.

12 years agoUse completion-table-with-quoting for comint and pcomplete.
Stefan Monnier [Wed, 25 Apr 2012 18:53:57 +0000 (14:53 -0400)]
Use completion-table-with-quoting for comint and pcomplete.
* lisp/comint.el (comint--unquote&requote-argument)
(comint--unquote-argument, comint--requote-argument): New functions.
(comint--unquote&expand-filename, comint-unquote-filename): Obsolete.
(comint-quote-filename): Use regexp-opt-charset.
(comint--common-suffix, comint--common-quoted-suffix)
(comint--table-subvert): Remove.
(comint-unquote-function, comint-requote-function): New vars.
(comint--complete-file-name-data): Use them with
completion-table-with-quoting.
* lisp/pcmpl-unix.el (pcomplete/scp): Use completion-table-subvert.
* lisp/pcomplete.el (pcomplete-arg-quote-list)
(pcomplete-quote-arg-hook, pcomplete-quote-argument): Obsolete.
(pcomplete-unquote-argument-function): Default to non-nil.
(pcomplete-unquote-argument): Simplify.
(pcomplete--common-quoted-suffix): Remove.
(pcomplete-requote-argument-function): New var.
(pcomplete--common-suffix): New function.
(pcomplete-completions-at-point): Use completion-table-with-quoting
and completion-table-subvert.

12 years ago* lisp/minibuffer.el: Use completion-table-with-quoting for read-file-name.
Stefan Monnier [Wed, 25 Apr 2012 18:42:15 +0000 (14:42 -0400)]
* lisp/minibuffer.el: Use completion-table-with-quoting for read-file-name.
(minibuffer--double-dollars): Preserve properties.
(completion--sifn-requote): New function.
(completion--file-name-table): Rewrite using it and c-t-with-quoting.

12 years ago* lisp/minibuffer.el: Add support for completion of quoted/escaped data.
Stefan Monnier [Wed, 25 Apr 2012 18:40:42 +0000 (14:40 -0400)]
* lisp/minibuffer.el: Add support for completion of quoted/escaped data.
(completion-table-with-quoting, completion-table-subvert): New funs.
(completion--twq-try, completion--twq-all): New functions.
(completion--nth-completion): New function.
(completion-try-completion, completion-all-completions): Use it.

12 years ago* lisp/progmodes/python.el (python-pdbtrack-get-source-buffer): Use
Leo Liu [Wed, 25 Apr 2012 16:46:01 +0000 (00:46 +0800)]
* lisp/progmodes/python.el (python-pdbtrack-get-source-buffer): Use
compilation-message if available to find real filename.

12 years ago* progmodes/python.el (python-send-region): Add suffix .py
Leo Liu [Wed, 25 Apr 2012 15:23:19 +0000 (23:23 +0800)]
* progmodes/python.el (python-send-region): Add suffix .py

12 years agoFix whitespace highlighting of context diffs.
Chong Yidong [Wed, 25 Apr 2012 15:06:51 +0000 (23:06 +0800)]
Fix whitespace highlighting of context diffs.

* lisp/vc/diff-mode.el (diff-setup-whitespace): New function.
(diff-mode): Use it.

* lisp/vc/diff.el (diff-sentinel):
* lisp/vc/vc.el (vc-diff-finish): Call diff-setup-whitespace to assign
Whitespace mode variables based on diff style.

Fixes: debbugs:8612

12 years ago* lisp/files.el (auto-mode-alist): Use javascript-mode instead.
Leo Liu [Wed, 25 Apr 2012 14:47:33 +0000 (22:47 +0800)]
* lisp/files.el (auto-mode-alist): Use javascript-mode instead.

12 years agoSync with soap-client repository. Support SOAP simpleType. (Bug#10331)
Alex Harsanyi [Wed, 25 Apr 2012 10:28:29 +0000 (12:28 +0200)]
Sync with soap-client repository.  Support SOAP simpleType.  (Bug#10331)

* soap-client.el (soap-resolve-references-for-sequence-type)
(soap-resolve-references-for-array-type): hack to prevent self
references, see Bug#9.
(soap-parse-envelope): report the contents of the 'detail' node
when receiving a fault reply.
(soap-parse-envelope): report the contents of the entire 'detail' node.

* soap-inspect.el (soap-sample-value-for-simple-type)
(soap-inspect-simple-type): new function

* soap-client.el (soap-simple-type): new struct
(soap-default-xsd-types, soap-default-soapenc-types)
(soap-decode-basic-type, soap-encode-basic-type): support
unsignedInt and double basic types
(soap-resolve-references-for-simple-type)
(soap-parse-simple-type, soap-encode-simple-type): new function
(soap-parse-schema): parse xsd:simpleType declarations

* soap-client.el (soap-default-xsd-types)
(soap-default-soapenc-types): add integer, byte and anyURI types
(soap-parse-complex-type-complex-content): use `soap-wk2l' to find
the local name of "soapenc:Array"
(soap-decode-basic-type, soap-encode-basic-type): support encoding
decoding integer, byte and anyURI xsd types.

12 years ago* cus-edit.el (custom-buffer-create-internal): Update header text.
Chong Yidong [Wed, 25 Apr 2012 08:38:11 +0000 (16:38 +0800)]
* cus-edit.el (custom-buffer-create-internal): Update header text.

12 years agoBetter indexing of "base direction" of paragraphs in the user manual.
Eli Zaretskii [Wed, 25 Apr 2012 08:30:59 +0000 (11:30 +0300)]
Better indexing of "base direction" of paragraphs in the user manual.

 doc/emacs/mule.texi (Bidirectional Editing): Improve indexing.  Minor
 wording tweaks.

12 years agoForce interactive-mode in GDB on MS-Windows.
Eli Zaretskii [Wed, 25 Apr 2012 08:07:57 +0000 (11:07 +0300)]
Force interactive-mode in GDB on MS-Windows.

 lisp/progmodes/gdb-mi.el (gdb-init-1): Condition Windows-specific
 settings on 'system-type', not on 'window-system'.  On MS-Windows,
 set interactive-mode on in GDB.

12 years agoAdd `notifications-get-capabilities' of notifications.el.
Michael Albinus [Tue, 24 Apr 2012 21:52:37 +0000 (23:52 +0200)]
Add `notifications-get-capabilities' of notifications.el.

12 years ago* notifications.el (top): Remove unneeded declarations.
Michael Albinus [Tue, 24 Apr 2012 21:47:24 +0000 (23:47 +0200)]
* notifications.el (top): Remove unneeded declarations.

12 years ago* notifications.el (notifications-get-capabilities): Fix docstring.
Michael Albinus [Tue, 24 Apr 2012 21:44:12 +0000 (23:44 +0200)]
* notifications.el (notifications-get-capabilities): Fix docstring.

12 years ago* .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS.
Andreas Schwab [Tue, 24 Apr 2012 19:05:25 +0000 (21:05 +0200)]
* .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS.
(xgetint): Add missing shift for LSB tags.

12 years ago* notifications.el (notifications-specification-version): Change to "1.2".
Michael Albinus [Tue, 24 Apr 2012 17:56:30 +0000 (19:56 +0200)]
* notifications.el (notifications-specification-version): Change to "1.2".
(notifications-notify): Add :action-items, :resident and
:transient hints.  Change "image_data" to "image-data" and
"image_path" to "image-path".
(notifications-get-capabilities): Return a list of keywords.

* os.texi (Notifications): Extend possible notification hints.

12 years ago* ruby-mode.el: Handle general delimited literals.
Stefan Monnier [Tue, 24 Apr 2012 17:08:55 +0000 (13:08 -0400)]
* ruby-mode.el: Handle general delimited literals.

Fixes: debbugs:6286

12 years ago* lisp/progmodes/ruby-mode.el: Simplify last change, and cleanup code.
Stefan Monnier [Tue, 24 Apr 2012 17:06:12 +0000 (13:06 -0400)]
* lisp/progmodes/ruby-mode.el: Simplify last change, and cleanup code.
(ruby-syntax-propertize-regexp): Remove.
(ruby-syntax-propertize-function): Split regexp into chunks.
Match following code directly.
* test/indent/ruby.rb: New file, to test new syntax-propertize code.

12 years ago* lisp/progmodes/ruby-mode.el: Handle Cucumber defs (bug#6286).
Dmitry Gutov [Tue, 24 Apr 2012 16:00:08 +0000 (12:00 -0400)]
* lisp/progmodes/ruby-mode.el: Handle Cucumber defs (bug#6286).
(ruby-syntax-propertize-regexp): New function.
(ruby-syntax-propertize-function): Use it to handle regexp not preceded
by a special keyword.

12 years ago* lisp/progmodes/ruby-mode.el: Handle general delimited literals.
Dmitry Gutov [Tue, 24 Apr 2012 15:51:14 +0000 (11:51 -0400)]
* lisp/progmodes/ruby-mode.el: Handle general delimited literals.
(ruby-syntax-general-delimiters-goto-beg)
(ruby-syntax-propertize-general-delimiters): New functions.
(ruby-syntax-propertize-function): Use them to handle GDL.
(ruby-font-lock-keywords): Move old handling of GDL...
(ruby-font-lock-syntactic-keywords): .. to here.
(ruby-calculate-indent): Adjust indentation for GDL.

Fixes: debbugs:6286

12 years ago* notifications.el (notifications-interface)
Michael Albinus [Tue, 24 Apr 2012 15:19:07 +0000 (17:19 +0200)]
* notifications.el (notifications-interface)
(notifications-notify-method, notifications-notify)
(notifications-close-notification-method): Fix docstring.
(notifications-get-capabilities-method): New defconst.
(notifications-get-capabilities): New defun.

* os.texi: (Notifications): Add notifications-get-capabilities.

12 years ago* lisp/progmodes/python.el: Move hideshow setup to the end.
Leo Liu [Tue, 24 Apr 2012 14:58:29 +0000 (22:58 +0800)]
* lisp/progmodes/python.el: Move hideshow setup to the end.

12 years agoDon't clear echo area prematurely when handling select window events (Bug#11304).
Martin Rudalics [Tue, 24 Apr 2012 08:56:31 +0000 (10:56 +0200)]
Don't clear echo area prematurely when handling select window events (Bug#11304).

* keyboard.c (read_char): Don't wipe echo area for select window
events: These might get delayed via `mouse-autoselect-window'
(Bug#11304).
* window.el (handle-select-window): Clear echo area since this is
no more done by read_char (Bug#11304).

12 years agosrc/gnutls.c: Fix previous change.
Juanma Barranquero [Tue, 24 Apr 2012 08:35:02 +0000 (10:35 +0200)]
src/gnutls.c: Fix previous change.
(init_gnutls_functions): Protect against (unlikely) manipulation
of :loaded-from data.

12 years agoObsoleted argument list of `dbus-register-signal'.
Michael Albinus [Tue, 24 Apr 2012 07:09:27 +0000 (09:09 +0200)]
Obsoleted argument list of `dbus-register-signal'.

12 years agoEnsure that X selection convertors properly encode returned strings.
Chong Yidong [Tue, 24 Apr 2012 05:34:50 +0000 (13:34 +0800)]
Ensure that X selection convertors properly encode returned strings.

Though not itself a regression, this bug was exposed by the support
for MULTIPLE selections, which is new to Emacs 24 (see Bug#11315).

* lisp/select.el (xselect--encode-string): New function, split from
xselect-convert-to-string.
(xselect-convert-to-string): Use it.
(xselect-convert-to-filename, xselect-convert-to-os)
(xselect-convert-to-host, xselect-convert-to-user): Ensure that
returned strings are properly encoded.

12 years ago* lisp/ibuffer.el (ibuffer-mode-map): Bind `/ m' to filter-used-mode
Stefan Monnier [Tue, 24 Apr 2012 03:40:57 +0000 (23:40 -0400)]
* lisp/ibuffer.el (ibuffer-mode-map): Bind `/ m' to filter-used-mode
and `/ M' to filter-derived-mode.
* lisp/ibuf-ext.el (ibuffer-list-buffer-modes): Simplify; avoid add-to-list.
(ibuffer-filter-by-mode, ibuffer-filter-by-used-mode)
(ibuffer-mark-by-mode): Use default rather than initial-input.
(ibuffer-filter-by-derived-mode): Autoload and require-match.

12 years ago* src/xselect.c (x_convert_selection): Initialize a pointer.
Chong Yidong [Tue, 24 Apr 2012 02:58:26 +0000 (10:58 +0800)]
* src/xselect.c (x_convert_selection): Initialize a pointer.

Fixes: debbugs:11315

12 years ago* lisp/ibuf-ext.el (ibuffer-list-buffer-modes): Add `include-parents' arg.
Ivan Andrus [Tue, 24 Apr 2012 02:07:40 +0000 (22:07 -0400)]
* lisp/ibuf-ext.el (ibuffer-list-buffer-modes): Add `include-parents' arg.
(ibuffer-filter-by-derived-mode): New filter.
* lisp/ibuffer.el (ibuffer-mode-map): Bind to `/ w'.

12 years agosrc/gnutls.c (init_gnutls_functions): Fix bug#11311.
Juanma Barranquero [Mon, 23 Apr 2012 23:15:08 +0000 (01:15 +0200)]
src/gnutls.c (init_gnutls_functions): Fix bug#11311.
The value of :loaded-from is now a cons.

12 years agoDo not create empty overlays with the evaporate property (Bug#9642).
Paul Eggert [Mon, 23 Apr 2012 22:46:35 +0000 (15:46 -0700)]
Do not create empty overlays with the evaporate property (Bug#9642).

* buffer.c (Fmove_overlay): Delete an evaporating overlay
if it becomes empty after its bounds are adjusted to fit within
its buffer.  Without this fix, in a nonempty buffer (let ((o
(make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
yields an empty overlay that has the evaporate property, which is
not supposed to happen.

12 years agoAvoid assertion violation when scrolling minibuffer windows.
Eli Zaretskii [Mon, 23 Apr 2012 16:22:23 +0000 (19:22 +0300)]
Avoid assertion violation when scrolling minibuffer windows.

 src/xdisp.c (pos_visible_p): If the window start position is beyond
 ZV, start the display from buffer beginning.  Prevents assertion
 violation in init_iterator when the minibuffer window is scrolled
 via the scroll bar.
 src/window.c (window_scroll_pixel_based): Likewise.

12 years ago* subr.el (accept-change-group): Fix arg usage.
Chong Yidong [Mon, 23 Apr 2012 15:48:22 +0000 (23:48 +0800)]
* subr.el (accept-change-group): Fix arg usage.

Fixes: debbugs:6095

12 years agoUse proper faces in apropos.el.
Chong Yidong [Mon, 23 Apr 2012 15:38:48 +0000 (23:38 +0800)]
Use proper faces in apropos.el.

* lisp/apropos.el (apropos-symbol, apropos-keybinding, apropos-label)
(apropos-property, apropos-function-button)
(apropos-variable-button, apropos-misc-button): New faces.
(apropos-symbol-face, apropos-keybinding-face)
(apropos-label-face, apropos-property-face, apropos-match-face):
Variables removed.
(apropos-library-button, apropos-format-plist, apropos-print)
(apropos-print-doc, apropos-describe-plist): Callers changed.

Fixes: debbugs:8396

12 years ago* apropos.el (apropos-read-pattern): Fix word list splitting.
Chong Yidong [Mon, 23 Apr 2012 12:44:54 +0000 (20:44 +0800)]
* apropos.el (apropos-read-pattern): Fix word list splitting.

Fixes: debbugs:11132

12 years agoRemove non-option variable handling from customize-apropos
Chong Yidong [Mon, 23 Apr 2012 12:37:55 +0000 (20:37 +0800)]
Remove non-option variable handling from customize-apropos
and enable use of word lists for customize-apropos-options etc.

* lisp/apropos.el (apropos-read-pattern): Make prompt less cryptic.

* lisp/cus-edit.el (customize-apropos, customize-apropos-options):
Disable matching of non-option variables.
(customize-option, customize-option-other-window)
(customize-changed-options): Doc fix.
(customize-apropos-options, customize-apropos-faces)
(customize-apropos-groups): Use apropos-read-pattern.

Fixes: debbugs:11176

12 years ago* net/xesam.el (xesam-mode-map): Use let-bound map in
Michael Albinus [Mon, 23 Apr 2012 11:57:06 +0000 (13:57 +0200)]
* net/xesam.el (xesam-mode-map): Use let-bound map in
initialization.  (Bug#11292)

12 years agoispell.el,flyspell.el: Preserve session localwords when switching back buffers.
Agustín Martín [Mon, 23 Apr 2012 10:33:25 +0000 (12:33 +0200)]
ispell.el,flyspell.el: Preserve session localwords when switching back buffers.

Once a word is declared valid for a session and a buffer it should
stay valid for that buffer regardless buffer switches unless ispell
process is explicitly killed or dictionary changed for that buffer.

However, it is currently lost when we switch to a different buffer
that triggers a new ispell process and then switch back to the
original buffer (triggering a  new ispell restart).

These changes try to keep buffer session localwords accepted in above
case.

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

12 years agoRemove obsolete usage of (ispell-insert-word)
Agustín Martín [Mon, 23 Apr 2012 10:03:33 +0000 (12:03 +0200)]
Remove obsolete usage of (ispell-insert-word)

`ispell-insert-word' is a plain `insert' together with word filtering
through `translation-table-for-input' for character code unification.
This was useful in Emacs 22, but is not needed for Emacs 23 and above
since unification is now direct.

Since XEmacs does not have `translation-table-for-input' there is no
need at all to keep this old code, but use (insert) directly.

12 years agoFix minor GTK3 problems found by static checking.
Paul Eggert [Mon, 23 Apr 2012 07:34:29 +0000 (00:34 -0700)]
Fix minor GTK3 problems found by static checking.

* emacsgtkfixed.c (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
(EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
(struct _EmacsFixedClass, emacs_fixed_get_type):
Move decls here from emacsgtkfixed.h, since they needn't be public.
(emacs_fixed_get_type): Now static.
(emacs_fixed_class_init): Omit unused local.
(emacs_fixed_child_type): Remove; unused.
* emacsgtkfixed.h (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
(EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
(struct _EmacsFixedClass): Move to emacsgtkfixed.c.
(EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS)
(EMACS_FIXED_GET_CLASS): Remove; unused.
* gtkutil.c (xg_create_frame_widgets) [!HAVE_GTK3]: Omit unused local.

12 years agoSpelling fixes.
Paul Eggert [Mon, 23 Apr 2012 05:44:49 +0000 (22:44 -0700)]
Spelling fixes.

12 years ago* configure.in: Remove wrong part of comment.
Paul Eggert [Mon, 23 Apr 2012 05:43:08 +0000 (22:43 -0700)]
* configure.in: Remove wrong part of comment.

12 years ago* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
Paul Eggert [Mon, 23 Apr 2012 04:08:51 +0000 (21:08 -0700)]
* keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.

Problem reported by Juanma Barranquero for Windows -Wunused-function.

12 years agoFix last fix.
Chong Yidong [Mon, 23 Apr 2012 03:44:13 +0000 (11:44 +0800)]
Fix last fix.

12 years agoDoc fixes for where-is-internal.
Chong Yidong [Mon, 23 Apr 2012 03:11:28 +0000 (11:11 +0800)]
Doc fixes for where-is-internal.

* doc/lispref/keymaps.texi (Scanning Keymaps): Fix description of
NO-REMAP arg to where-is-internal.

* src/keymap.c (where_is_internal): Doc fix (Bug#10872).

12 years agoModernize and clean up gmalloc.c to assume C89 (Bug#9119).
Paul Eggert [Sun, 22 Apr 2012 19:23:51 +0000 (12:23 -0700)]
Modernize and clean up gmalloc.c to assume C89 (Bug#9119).

* gmalloc.c: (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t)
(__malloc_size_t, __malloc_ptrdiff_t):
Remove.  All uses removed, replaced by the definiens if needed,
since we can assume C89 or better now.
Include <stdint.h>, for PTRDIFF_MAX, uintptr_t.
(protect_malloc_state, align, get_contiguous_space)
(malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
(malloc_atfork_handler_child, malloc_enable_thread)
(malloc_initialize_1, __malloc_initialize, morecore_nolock)
(_malloc_internal_nolock, _malloc_internal, malloc, _malloc)
(_free, _realloc, _free_internal_nolock, _free_internal, free, cfree)
(special_realloc, _realloc_internal_nolock, _realloc_internal)
(realloc, calloc, __default_morecore, memalign, valloc, checkhdr)
(freehook, mallochook, reallochook, mabort, mcheck, mprobe):
Define using prototypes, not old style.
(align, _malloc_internal_nolock, _free_internal_nolock, memalign):
Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long.
(align): Don't assume that signed integer overflow wraps around.
Omit unused local var.
(malloc_initialize_1, morecore_nolock, _malloc_internal_nolock)
(_free_internal_nolock, memalign, mallochook, reallochook):
Omit no-longer-needed casts.
(valloc): Use getpagesize, not __getpagesize.
(MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit.
(struct hdr): The 'magic' member is now size_t, not unsigned long.

12 years ago* faces.el (face-spec-set): Stop supporting deprecated form of third arg.
Chong Yidong [Sun, 22 Apr 2012 18:04:54 +0000 (02:04 +0800)]
* faces.el (face-spec-set): Stop supporting deprecated form of third arg.

12 years agoMake the "reset-saved" Custom operation reset to default if there is no saved value.
Chong Yidong [Sun, 22 Apr 2012 17:58:14 +0000 (01:58 +0800)]
Make the "reset-saved" Custom operation reset to default if there is no saved value.

* lisp/cus-edit.el (custom-variable-menu)
(custom-variable-reset-saved, custom-face-menu)
(custom-face-reset-saved): If there is no saved value, make the
"reset-saved" operation bring back the default.
(custom-face-state): Properly detect themed faces.

Fixes: debbugs:9509

12 years ago* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
Paul Eggert [Sun, 22 Apr 2012 17:46:49 +0000 (10:46 -0700)]
* dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.

12 years agoMove functions from C to Lisp. Make non-blocking method calls
Michael Albinus [Sun, 22 Apr 2012 14:11:43 +0000 (16:11 +0200)]
Move functions from C to Lisp.  Make non-blocking method calls
the default.  Implement further D-Bus standard interfaces.

* configure.in (dbus_validate_bus_name, dbus_validate_path)
(dbus_validate_interface, dbus_validate_member): Check also for
these library functions

* dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare.
(QCdbus_request_name_allow_replacement)
(QCdbus_request_name_replace_existing)
(QCdbus_request_name_do_not_queue)
(QCdbus_request_name_reply_primary_owner)
(QCdbus_request_name_reply_in_queue)
(QCdbus_request_name_reply_exists)
(QCdbus_request_name_reply_already_owner): Move to dbus.el.
(QCdbus_registered_serial, QCdbus_registered_method)
(QCdbus_registered_signal): New Lisp objects.
(XD_DEBUG_MESSAGE): Use sizeof.
(XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING)
(XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT)
(XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH)
(XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros.
(XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL.
(xd_signature, xd_append_arg): Allow float for integer types.
(xd_get_connection_references): New function.
(xd_get_connection_address): Rename from xd_initialize.  Return
cached address.
(xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS.
(xd_close_bus): Rename from Fdbus_close_bus.  Not needed on Lisp
level.
(Fdbus_init_bus): New optional arg PRIVATE.  Cache address.
Return number of recounts.
(Fdbus_get_unique_name): Make stronger parameter check.
(Fdbus_message_internal): New defun.
(Fdbus_call_method, Fdbus_call_method_asynchronously)
(Fdbus_method_return_internal, Fdbus_method_error_internal)
(Fdbus_send_signal, Fdbus_register_service)
(Fdbus_register_signal, Fdbus_register_method): Move to dbus.el.
(xd_read_message_1): Obey new structure of Vdbus_registered_objects.
(xd_read_queued_messages): Obey new structure of Vdbus_registered_buses.
(Vdbus_compiled_version, Vdbus_runtime_version)
(Vdbus_message_type_invalid, Vdbus_message_type_method_call)
(Vdbus_message_type_method_return, Vdbus_message_type_error)
(Vdbus_message_type_signal): New defvars.
(Vdbus_registered_buses, Vdbus_registered_objects_table): Adapt
docstring.

* net/dbus.el (dbus-message-internal): Declare function.  Remove
unneeded function declarations.
(defvar dbus-message-type-invalid, dbus-message-type-method-call)
(dbus-message-type-method-return, dbus-message-type-error)
(dbus-message-type-signal): Declare variables.  Remove local
definitions.
(dbus-interface-dbus, dbus-interface-peer)
(dbus-interface-introspectable, dbus-interface-properties)
(dbus-path-emacs, dbus-interface-emacs, dbus-return-values-table):
Adapt docstring.
(dbus-interface-objectmanager): New defconst.
(dbus-call-method, dbus-call-method-asynchronously)
(dbus-send-signal, dbus-method-return-internal)
(dbus-method-error-internal, dbus-register-service)
(dbus-register-signal, dbus-register-method): New defuns, moved
from dbusbind.c
(dbus-call-method-handler, dbus-setenv)
(dbus-get-all-managed-objects, dbus-managed-objects-handler): New
defuns.
(dbus-call-method-non-blocking): Make it an obsolete function.
(dbus-unregister-object, dbus-unregister-service)
(dbus-handle-event, dbus-register-property)
(dbus-property-handler): Obey the new structure of
`bus-registered-objects'.
(dbus-introspect): Use `dbus-call-method'.  Use a timeout.
(dbus-get-property, dbus-set-property, dbus-get-all-properties):
Use `dbus-call-method'.

* dbus.texi (Version): New node.
(Properties and Annotations): Mention the object manager
interface.  Describe dbus-get-all-managed-objects.
(Type Conversion): Floating point numbers are allowed, if an
anteger does not fit Emacs's integer range.
(Synchronous Methods): Remove obsolete dbus-call-method-non-blocking.
(Asynchronous Methods): Fix description of
dbus-call-method-asynchronously.
(Receiving Method Calls): Fix some minor errors.  Add
dbus-interface-emacs.
(Signals): Describe unicast signals and the new match rules.
(Alternative Buses): Add the PRIVATE optional argument to
dbus-init-bus.  Describe its new return value.  Add dbus-setenv.

12 years agoTweaks to Customize interface. Set custom-reset-button-menu to t.
Chong Yidong [Sun, 22 Apr 2012 13:58:00 +0000 (21:58 +0800)]
Tweaks to Customize interface.  Set custom-reset-button-menu to t.

* cus-edit.el (custom-commands, custom-reset-menu)
(Custom-reset-standard): Tweak labels.
(custom-reset-button-menu): Change default to t.
(custom-buffer-create-internal): For the custom-reset-button-menu
case, put the revert button first.
(custom-group-subtitle): New face.
(custom-group-value-create): Align docstring to a specific column.

* wid-edit.el (widget-documentation-link-add): Don't handle
indentation in this function.
(widget-documentation-string-indent-to): New function.
(widget-documentation-string-value-create): Use it.

* autorevert.el (auto-revert):
* epg-config.el (epg):
* ibuffer.el (ibuffer):
* mpc.el (mpc):
* ses.el (ses):
* eshell/eshell.el (eshell):
* net/ange-ftp.el (ange-ftp):
* progmodes/ebnf2ps.el (postscript):
* progmodes/flymake.el (flymake):
* progmodes/prolog.el (prolog):
* progmodes/verilog-mode.el (verilog-mode):
* progmodes/which-func.el (which-func):
* textmodes/picture.el (picture):
* textmodes/tildify.el (tildify):
* vc/ediff.el (ediff): Tweak defgroups to improve presentation in
customization buffers.

12 years agoCC Mode. Adding a ) can hide the resulting (..) from searches. Fix it.
Alan Mackenzie [Sun, 22 Apr 2012 11:13:09 +0000 (11:13 +0000)]
CC Mode.  Adding a ) can hide the resulting (..) from searches.  Fix it.

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

12 years agoFix GC_MALLOC_CHECK debugging output on 64-bit hosts.
Paul Eggert [Sun, 22 Apr 2012 07:50:17 +0000 (00:50 -0700)]
Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.

* alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
Do not assume ptrdiff_t is the same width as 'int'.

12 years ago* alloc.c: Handle unusual debugging option combinations.
Paul Eggert [Sun, 22 Apr 2012 07:41:30 +0000 (00:41 -0700)]
* alloc.c: Handle unusual debugging option combinations.

(GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK,
since the two debugging options are incompatible.
(GC_MALLOC_CHECK): Similarly, undef if GC_CHECK_MARKED_OBJECTS
is defined.
(mem_init, mem_insert, mem_insert_fixup):
Define if GC_MARK_STACK || GC_MALLOC_CHECK.
(NEED_MEM_INSERT): Remove; no longer needed.