bpt/emacs.git
10 years agoDon't infloop when we can't find a good place to break lines in shr
Lars Ingebrigtsen [Wed, 25 Dec 2013 22:52:15 +0000 (23:52 +0100)]
Don't infloop when we can't find a good place to break lines in shr

(shr-insert): Don't infloop if we can't find a good place to break
the line.

Fixes: debbugs:16256

10 years agoSome fixes for vc-ignore (Bug#15754).
Xue Fuqiao [Wed, 25 Dec 2013 22:57:00 +0000 (06:57 +0800)]
Some fixes for vc-ignore (Bug#15754).

Inspired by Andreas Politz and Dmitry Gutov.

10 years agolisp/ChangeLog: Fix last commit
Katsumi Yamaoka [Wed, 25 Dec 2013 22:53:57 +0000 (22:53 +0000)]
lisp/ChangeLog: Fix last commit

10 years agobyte-run.el (eval-when-compile), cc-defs.el (cc-eval-when-compile): Fix edebug spec...
Katsumi Yamaoka [Wed, 25 Dec 2013 22:37:04 +0000 (22:37 +0000)]
byte-run.el (eval-when-compile), cc-defs.el (cc-eval-when-compile): Fix edebug spec (bug#16184)

10 years agolisp/gnus/gnus-sum.el (gnus-summary-exit): Stop animations
Lars Ingebrigtsen [Wed, 25 Dec 2013 22:28:09 +0000 (22:28 +0000)]
lisp/gnus/gnus-sum.el (gnus-summary-exit): Stop animations

10 years agoMerge from mainline.
Xue Fuqiao [Wed, 25 Dec 2013 22:27:00 +0000 (06:27 +0800)]
Merge from mainline.

10 years agoSome fixes for vc-ignore (Bug#15754).
Xue Fuqiao [Wed, 25 Dec 2013 22:24:37 +0000 (06:24 +0800)]
Some fixes for vc-ignore (Bug#15754).

Inspired by Andreas Politz and Dmitry Gutov.

10 years agoGrammer fix
Lars Ingebrigtsen [Wed, 25 Dec 2013 19:38:08 +0000 (20:38 +0100)]
Grammer fix

10 years ago* net/shr.el (shr-visit-file): Removed debugging function.
Lars Ingebrigtsen [Wed, 25 Dec 2013 19:37:41 +0000 (20:37 +0100)]
* net/shr.el (shr-visit-file): Removed debugging function.

10 years agoFurther shr quotation mark fill fixes
Lars Ingebrigtsen [Wed, 25 Dec 2013 18:14:49 +0000 (19:14 +0100)]
Further shr quotation mark fill fixes

(shr-char-kinsoku-bol-p): The quotation mark isn't a kinsoky BOL char.
(shr-find-fill-point): Remove the special checks for the quotation
mark, since `shr-char-kinsoku-bol-p' should now return the right
thing.

10 years ago* lisp/progmodes/python.el:
Fabián Ezequiel Gallina [Wed, 25 Dec 2013 18:07:31 +0000 (15:07 -0300)]
* lisp/progmodes/python.el:
(python-nav--lisp-forward-sexp): New function.
(python-nav--lisp-forward-sexp-safe): Use it.  Rename from
python-nav-lisp-forward-sexp-safe.
(python-nav--forward-sexp): New argument SAFE allows switching
forward sexp movement behavior for parens.
(python-nav-forward-sexp): Throw errors on unterminated parens.
(python-nav-backward-sexp, python-nav-forward-sexp-safe)
(python-nav-backward-sexp-safe): New functions.
(python-shell-buffer-substring): Use
`python-nav-forward-sexp-safe'.

* test/automated/python-tests.el
(python-nav-lisp-forward-sexp-safe-1): Remove test.
(python-nav-forward-sexp-safe-1): New test.

Fixes: debbugs:16191

10 years agoFold shr text with single quotation marks better
Lars Ingebrigtsen [Wed, 25 Dec 2013 17:31:39 +0000 (18:31 +0100)]
Fold shr text with single quotation marks better

* net/shr.el (shr-find-fill-point): Don't break lines before a
quotation mark.

10 years agoFix bug #16252 with 'mailto:' documents passed to w32-shell-execute.
Eli Zaretskii [Wed, 25 Dec 2013 17:30:24 +0000 (19:30 +0200)]
Fix bug #16252 with 'mailto:' documents passed to w32-shell-execute.

 src/w32fns.c (Fw32_shell_execute): Make DOCUMENT absolute only if it
 is a file name.

10 years agoeww textarea fixups
Kenjiro NAKAYAMA [Wed, 25 Dec 2013 15:33:16 +0000 (16:33 +0100)]
eww textarea fixups

* net/eww.el (eww-form-textarea): Use a different face for
textareas than text input since they have different keymaps.

Fixes: debbugs:16142

10 years agoDoc updates for several Emacs 24.4 changes.
Chong Yidong [Wed, 25 Dec 2013 10:24:52 +0000 (18:24 +0800)]
Doc updates for several Emacs 24.4 changes.

* doc/lispref/commands.texi (Event Input Misc): Document new arg to
input-pending-p.

* doc/lispref/display.texi (Font Selection): Tweak example.

* doc/lispref/keymaps.texi (Active Keymaps): Re-organize the text.
(Searching Keymaps): Rewrite the pseudo-code for 24.4 changes.
(Controlling Active Maps): Note that set-transient-map uses
overriding-terminal-local-map.

* doc/lispref/nonascii.texi (Specifying Coding Systems): Don't refer to
emacs-mule-dos.
(Lisp and Coding Systems): Describe emacs-mule return value in
modern terms.

* doc/lispref/tips.texi (Coding Conventions): Tweak the coding system tip;
Emacs now uses utf-8 by default for Emacs Lisp source files.

* doc/emacs/glossary.texi (Glossary): Define MULE in modern terms.

* src/keyboard.c (Voverriding_terminal_local_map):
(Voverriding_local_map): Doc fix.

* src/keymap.c (Vemulation_mode_map_alists): Doc fix.

10 years agoRephrase lexical binding requirement sentence.
Tassilo Horn [Wed, 25 Dec 2013 09:12:24 +0000 (10:12 +0100)]
Rephrase lexical binding requirement sentence.

* doc/lispref/control.texi (Pattern matching case statement): Rephrase lexical
binding requirement: the example needs it, not `pcase' itself.

10 years agoDocument `eval' changes.
Chong Yidong [Wed, 25 Dec 2013 03:05:11 +0000 (11:05 +0800)]
Document `eval' changes.

* doc/lispref/eval.texi (Eval): Document the LEXICAL arg to eval.

* doc/lispref/variables.texi (Variables, Void Variables): Use "scoping rule"
terminology consistently.
(Variable Scoping): Add index entries, and use "dynamic scope"
terminology in place of "indefinite scope" to reduce confusion.
(Lexical Binding): Document lexical environment format.
(Using Lexical Binding): Add index entries for error messages.

10 years agoDoc fixes (index and comment).
Xue Fuqiao [Wed, 25 Dec 2013 02:18:43 +0000 (10:18 +0800)]
Doc fixes (index and comment).

10 years ago* lisp/progmodes/python.el (python-nav-beginning-of-statement): Speed
Fabián Ezequiel Gallina [Tue, 24 Dec 2013 19:48:40 +0000 (16:48 -0300)]
* lisp/progmodes/python.el (python-nav-beginning-of-statement): Speed
up.

Fixes: debbugs:15295

10 years agoAutomate the procedure for updating copyright year.
Paul Eggert [Tue, 24 Dec 2013 18:27:53 +0000 (10:27 -0800)]
Automate the procedure for updating copyright year.

* admin/merge-gnulib (GNULIB_MODULES): Add update-copyright.
* admin/notes/years: Mention admin/update-copyright.
* admin/update-copyright: New file.
* build-aux/update-copyright: New file.
* make-dist: Distribute it.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* msdos/autogen/Makefile.in: Update copyright year.

10 years agoeww bookmark window restoration
Lars Ingebrigtsen [Tue, 24 Dec 2013 18:07:55 +0000 (19:07 +0100)]
eww bookmark window restoration

* net/eww.el (eww-bookmark-browse): Use `quit-window' to restore
the window configuration.

10 years agoAttempt to catch backtrace of segfault in bug #16234.
Eli Zaretskii [Tue, 24 Dec 2013 17:55:07 +0000 (19:55 +0200)]
Attempt to catch backtrace of segfault in bug #16234.

10 years agoFix eww-open-file for MS-Windows and MS-DOS.
Eli Zaretskii [Tue, 24 Dec 2013 17:23:56 +0000 (19:23 +0200)]
Fix eww-open-file for MS-Windows and MS-DOS.

 lisp/net/eww.el (eww-open-file): Ensure 3 slashes after "file:" when
 we run on MS-Windows or MS-DOS.

10 years agoMinor fixes in w32-shell-execute.
Eli Zaretskii [Tue, 24 Dec 2013 17:21:06 +0000 (19:21 +0200)]
Minor fixes in w32-shell-execute.

 src/w32fns.c (Fw32_shell_execute): Ensure DOCUMENT is an absolute
 file name when it is submitted to ShellExecute.  Simplify code.
 Don't test DOCUMENT for being a string, as that is enforced by
 CHECK_STRING.  Doc fix.

10 years agoIn balance-windows-area don't call window-height and window-width. Bug#16241.
Martin Rudalics [Tue, 24 Dec 2013 16:42:03 +0000 (17:42 +0100)]
In balance-windows-area don't call window-height and window-width.  Bug#16241.

* window.el (balance-windows-area): Call window-size instead of
window-height and window-width.  Bug#16241.

10 years agoFix missing arg in pcase example.
Tassilo Horn [Tue, 24 Dec 2013 15:30:59 +0000 (16:30 +0100)]
Fix missing arg in pcase example.

* doc/lispref/control.texi (Pattern matching case statement): Fix missing
argument in simple expression language sample.  Add
some sample programs written in that language.  Mention that
`pcase' requires lexical binding.

Fixes: debbugs:16238

10 years ago* doc/emacs/trouble.texi (Checklist): Fix a cross-reference.
Xue Fuqiao [Tue, 24 Dec 2013 08:33:02 +0000 (16:33 +0800)]
* doc/emacs/trouble.texi (Checklist): Fix a cross-reference.

10 years agoFix eww bookmark window configuration
Lars Ingebrigtsen [Tue, 24 Dec 2013 07:25:27 +0000 (08:25 +0100)]
Fix eww bookmark window configuration

* net/eww.el (eww-bookmark-quit): Remove.
(eww-bookmark-browse): Restore the window configuration when you
choose a bookmark.

Fixes: debbugs:16144

10 years agoFix my previous change.
Xue Fuqiao [Tue, 24 Dec 2013 06:52:10 +0000 (14:52 +0800)]
Fix my previous change.

10 years agoChange some `error's to `user-error's.
Xue Fuqiao [Tue, 24 Dec 2013 04:41:18 +0000 (12:41 +0800)]
Change some `error's to `user-error's.

* admin/admin.el (add-release-logs):
(set-version-in-file, set-version, set-copyright):
Use `user-error'.

10 years agoMinor edits to NEWS.
Chong Yidong [Tue, 24 Dec 2013 04:14:17 +0000 (12:14 +0800)]
Minor edits to NEWS.

10 years agoChange icomplete to display completions on initial input
Daniel Colascione [Tue, 24 Dec 2013 03:48:55 +0000 (19:48 -0800)]
Change icomplete to display completions on initial input

10 years ago* doc/emacs/trouble.texi (Understanding Bug Reporting): Minor update.
Xue Fuqiao [Tue, 24 Dec 2013 03:07:21 +0000 (11:07 +0800)]
* doc/emacs/trouble.texi (Understanding Bug Reporting): Minor update.

10 years agoRevert 2013-12-23T13:11:29Z!xfq.free@gmail.com.
Xue Fuqiao [Mon, 23 Dec 2013 22:27:49 +0000 (06:27 +0800)]
Revert 2013-12-23T13:11:29Z!xfq.free@gmail.com.

According to: http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00828.html

10 years agoLast portion of fix for bug #16051 with redisplay loops.
Eli Zaretskii [Mon, 23 Dec 2013 19:24:25 +0000 (21:24 +0200)]
Last portion of fix for bug #16051 with redisplay loops.

 src/xdisp.c (redisplay_tool_bar): Modify the tool-bar-lines frame parameter
 only when the new size is different from the old one, and the new
 size can be achieved given the frame height.

10 years agoUpdate MS-Windows installation instructions for librsvg.
Eli Zaretskii [Mon, 23 Dec 2013 18:32:58 +0000 (20:32 +0200)]
Update MS-Windows installation instructions for librsvg.

10 years agoFix most of bug #16051 with redisplay loops when resizing tool-bar.
Eli Zaretskii [Mon, 23 Dec 2013 16:36:34 +0000 (18:36 +0200)]
Fix most of bug #16051 with redisplay loops when resizing tool-bar.

 src/xdisp.c (tool_bar_height): Use WINDOW_PIXEL_WIDTH to set up the
 iterator X limits, not FRAME_TOTAL_COLS, for consistency with what
 redisplay_tool_bar does.  Improve and fix commentary.
 (hscroll_window_tree): Don't assume w->cursor.vpos is within the
 limits of the glyph matrices.

10 years ago* configure.ac: Replace obsolete macro AC_CONFIG_HEADER by
Andreas Schwab [Mon, 23 Dec 2013 15:13:14 +0000 (16:13 +0100)]
* configure.ac: Replace obsolete macro AC_CONFIG_HEADER by
AC_CONFIG_HEADERS.

10 years agoMove provide to end of file for icomplete
Daniel Colascione [Mon, 23 Dec 2013 15:01:32 +0000 (07:01 -0800)]
Move provide to end of file for icomplete

10 years ago* doc/emacs/regs.texi (Bookmarks): Document `bookmark-default-file'.
Xue Fuqiao [Mon, 23 Dec 2013 13:17:59 +0000 (21:17 +0800)]
* doc/emacs/regs.texi (Bookmarks): Document `bookmark-default-file'.

10 years ago* etc/MORE.STUFF: Mention RefTeX.
Xue Fuqiao [Mon, 23 Dec 2013 13:11:29 +0000 (21:11 +0800)]
* etc/MORE.STUFF: Mention RefTeX.

10 years agoNoted `gnutls-verify-error', cfengine-mode, and package.el changes.
Ted Zlatanov [Mon, 23 Dec 2013 13:05:27 +0000 (08:05 -0500)]
Noted `gnutls-verify-error', cfengine-mode, and package.el changes.

* NEWS: Updated for `gnutls-verify-error', cfengine-mode, and
package.el changes.

10 years agoMinor doc fixes.
Xue Fuqiao [Mon, 23 Dec 2013 13:01:25 +0000 (21:01 +0800)]
Minor doc fixes.

* doc/emacs/misc.texi (Shell Mode): Add a cross-reference.

* doc/emacs/building.texi (Lisp Eval): Add an index.

10 years agonet/gnutls.el (gnutls-verify-error): Add version tag.
Ted Zlatanov [Mon, 23 Dec 2013 12:51:51 +0000 (07:51 -0500)]
net/gnutls.el (gnutls-verify-error): Add version tag.

* net/gnutls.el (gnutls-verify-error): Add version tag.

10 years agoDocument `gnutls-verify-error'.
Ted Zlatanov [Mon, 23 Dec 2013 12:50:47 +0000 (07:50 -0500)]
Document `gnutls-verify-error'.

* emacs-gnutls.texi (Help For Users): Document `gnutls-verify-error'.

10 years ago* src/conf_post.h: Use unsigned it for bool_bf if GNUSTEP.
Jan Djärv [Mon, 23 Dec 2013 12:07:46 +0000 (13:07 +0100)]
* src/conf_post.h: Use unsigned it for bool_bf if GNUSTEP.

Fixes: debbugs:16210

10 years agoNEWS tweak.
Xue Fuqiao [Mon, 23 Dec 2013 11:40:42 +0000 (19:40 +0800)]
NEWS tweak.

10 years agoDocument `special-form-p' and `macrop'.
Xue Fuqiao [Mon, 23 Dec 2013 11:27:29 +0000 (19:27 +0800)]
Document `special-form-p' and `macrop'.

* doc/lispref/eval.texi (Special Forms): Document `special-form-p'.

* doc/lispref/macros.texi (Simple Macro): Document `macrop'.

10 years agoFix an argument of `copy-file'.
Xue Fuqiao [Mon, 23 Dec 2013 08:50:31 +0000 (16:50 +0800)]
Fix an argument of `copy-file'.

* doc/lispref/files.texi (Changing Files): Fix an argument of `copy-file'.

10 years agoUnmark electric-indent-mode; it requires more doc changes.
Tassilo Horn [Mon, 23 Dec 2013 08:11:14 +0000 (09:11 +0100)]
Unmark electric-indent-mode; it requires more doc changes.

10 years agoDocument TRIM in `split-string'.
Xue Fuqiao [Mon, 23 Dec 2013 07:55:08 +0000 (15:55 +0800)]
Document TRIM in `split-string'.

* doc/lispref/strings.texi (Creating Strings): Document TRIM in
`split-string'.

10 years ago* indent.el (indent-rigidly): Use substitute-command-keys.
Chong Yidong [Mon, 23 Dec 2013 04:07:01 +0000 (12:07 +0800)]
* indent.el (indent-rigidly): Use substitute-command-keys.

10 years agoRename set-temporary-overlay-map -> set-transient-map
Chong Yidong [Mon, 23 Dec 2013 03:59:10 +0000 (11:59 +0800)]
Rename set-temporary-overlay-map -> set-transient-map

* lisp/subr.el (set-transient-map): Rename from
set-temporary-overlay-map.  Doc fix.

* lisp/face-remap.el (text-scale-adjust):
* lisp/indent.el (indent-rigidly):
* lisp/kmacro.el (kmacro-call-macro):
* lisp/minibuffer.el (minibuffer-force-complete):
* lisp/repeat.el (repeat):
* lisp/simple.el (universal-argument--mode):
* lisp/calendar/todo-mode.el (todo-insert-item--next-param):
* lisp/progmodes/f90.el (f90-abbrev-start): Callers changed.

* lisp/org/org.el (orgstruct-make-binding): Call set-transient-map
instead of old name set-temporary-overlay-map.

* doc/lispref/keymaps.texi (Controlling Active Maps): Renamed
set-temporary-overlay-map to set-transient map.  Doc fixes.
(Searching Keymaps): The transient keymap takes precedence.

10 years agoSome documenting of load-prefer-newer
Glenn Morris [Mon, 23 Dec 2013 02:54:28 +0000 (18:54 -0800)]
Some documenting of load-prefer-newer

* doc/lispref/loading.texi (How Programs Do Loading, Load Suffixes):
Mention `load-prefer-newer'.

* src/lread.c (Fload): Mention load-prefer-newer in doc.

10 years agoDocument `hash-table-keys and `hash-table-values'.
Xue Fuqiao [Sun, 22 Dec 2013 23:19:42 +0000 (07:19 +0800)]
Document `hash-table-keys and `hash-table-values'.

* doc/lispref/hash.texi (Other Hash): Document `hash-table-keys and
`hash-table-values'.

10 years agoMisc small fixes for some recent doc changes
Glenn Morris [Sun, 22 Dec 2013 23:13:18 +0000 (15:13 -0800)]
Misc small fixes for some recent doc changes

* doc/emacs/calendar.texi (General Calendar):
* doc/emacs/rmail.texi (Rmail Scrolling):
* doc/misc/woman.texi (Navigation):
Use itemx where appropriate.

* doc/emacs/entering.texi (Entering Emacs): Typo fix.

10 years agoeww: jump to next select field easier and better ftp error
Kenjiro NAKAYAMA [Sun, 22 Dec 2013 22:40:35 +0000 (17:40 -0500)]
eww: jump to next select field easier and better ftp error

* net/eww.el (eww-tag-select): Add text-property to jump to next
select field.
(eww) : Add non-supported ftp error.

10 years ago* lisp/progmodes/ruby-mode.el (ruby--electric-indent-p): Improve the
Dmitry Gutov [Sun, 22 Dec 2013 20:38:26 +0000 (22:38 +0200)]
* lisp/progmodes/ruby-mode.el (ruby--electric-indent-p): Improve the
comments.  Handle electric indent after typing `?' and `!'.

10 years agoFix last commit in doc/emacs/regs.texi.
Eli Zaretskii [Sun, 22 Dec 2013 18:31:38 +0000 (20:31 +0200)]
Fix last commit in doc/emacs/regs.texi.

10 years agoAdd 4 new bidi-class values in unidata-gen.el.
Eli Zaretskii [Sun, 22 Dec 2013 18:24:23 +0000 (20:24 +0200)]
Add 4 new bidi-class values in unidata-gen.el.

10 years agoUpdate UCD reference in ELisp manual.
Eli Zaretskii [Sun, 22 Dec 2013 18:17:20 +0000 (20:17 +0200)]
Update UCD reference in ELisp manual.

10 years agoFix bug #16216 with 'name' Unicode property of control characters.
Eli Zaretskii [Sun, 22 Dec 2013 18:02:37 +0000 (20:02 +0200)]
Fix bug #16216 with 'name' Unicode property of control characters.

 admin/unidata/unidata-gen.el (unidata-split-name): Don't give any NAME
 to <control> characters: the Unicode Standard says they have no
 name.

 doc/lispref/nonascii.texi (Character Properties): NAME or OLD-NAME
 properties can be nil (there's no empty string).

10 years agoHandle Bug#16207 by being more restrictive when running hooks.
Martin Rudalics [Sun, 22 Dec 2013 15:19:09 +0000 (16:19 +0100)]
Handle Bug#16207 by being more restrictive when running hooks.

* window.c (unwind_change_frame): New function.
(Fset_window_configuration): Don't run configuration change hook
while the frame configuration is unsafe.  Call select_window
twice.

10 years agoPrevent themes from obliterating faces on low-color terminals.
Chong Yidong [Sun, 22 Dec 2013 13:40:44 +0000 (21:40 +0800)]
Prevent themes from obliterating faces on low-color terminals.

* lisp/faces.el (face-spec-recalc): If the theme specs are not
applicable to a frame, fall back on the defface spec.

10 years agoIgnore info/dir
Andreas Schwab [Sun, 22 Dec 2013 11:33:28 +0000 (12:33 +0100)]
Ignore info/dir

10 years agoSpelling fix.
Paul Eggert [Sun, 22 Dec 2013 07:23:49 +0000 (23:23 -0800)]
Spelling fix.

10 years agoDocument new bool-vector set operation functions.
Xue Fuqiao [Sun, 22 Dec 2013 07:11:05 +0000 (15:11 +0800)]
Document new bool-vector set operation functions.

* doc/lispref/sequences.texi (Bool-Vectors): Document new bool-vector
set operation functions.

10 years agoDocument `get-pos-property'.
Xue Fuqiao [Sun, 22 Dec 2013 06:25:57 +0000 (14:25 +0800)]
Document `get-pos-property'.

* doc/lispref/text.texi (Examining Properties): Document `get-pos-property'.

10 years agoDocument `enable-dir-local-variables'.
Xue Fuqiao [Sun, 22 Dec 2013 06:15:17 +0000 (14:15 +0800)]
Document `enable-dir-local-variables'.

* doc/lispref/variables.texi (Directory Local Variables): Document `enable-dir-local-variables'.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
Dmitry Gutov [Sun, 22 Dec 2013 06:04:40 +0000 (08:04 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after `{'.  We need it after block openers, and it doesn't seem
to hurt after hash openers.

10 years agoDocument negative argument of replacement commands.
Xue Fuqiao [Sun, 22 Dec 2013 05:57:32 +0000 (13:57 +0800)]
Document negative argument of replacement commands.

* doc/emacs/search.texi (Special Isearch):
(Query Replace): Document negative argument of replacement commands.

10 years agoDocument `isearch-forward-symbol-at-point'.
Xue Fuqiao [Sun, 22 Dec 2013 05:36:29 +0000 (13:36 +0800)]
Document `isearch-forward-symbol-at-point'.

* doc/emacs/search.texi (Symbol Search): Document `isearch-forward-symbol-at-point'.

10 years agoDocument image-{next, previous}-file, plus some minor tweak.
Xue Fuqiao [Sun, 22 Dec 2013 05:20:03 +0000 (13:20 +0800)]
Document image-{next, previous}-file, plus some minor tweak.

10 years agoIntegrate ruby-mode with electric-indent-mode better
Dmitry Gutov [Sun, 22 Dec 2013 04:57:00 +0000 (06:57 +0200)]
Integrate ruby-mode with electric-indent-mode better

* lisp/progmodes/ruby-mode.el (ruby--at-indentation-p): New function,
extracted from `ruby-smie-rules'.
(ruby--electric-indent-chars): New variable.
(ruby--electric-indent-p): New function.
(ruby-mode): Use `electric-indent-functions' instead of
`electric-indent-chars'.

10 years agoAnother NEWS mark.
Xue Fuqiao [Sun, 22 Dec 2013 04:55:31 +0000 (12:55 +0800)]
Another NEWS mark.

10 years agoDocument `debugger-toggle-locals'.
Xue Fuqiao [Sun, 22 Dec 2013 03:36:04 +0000 (11:36 +0800)]
Document `debugger-toggle-locals'.

* doc/lispref/debugging.texi (Debugger Commands): Document `debugger-toggle-locals'.

10 years ago* doc/emacs/regs.texi (File Registers): Document `kmacro-to-register'.
Xue Fuqiao [Sun, 22 Dec 2013 02:55:43 +0000 (10:55 +0800)]
* doc/emacs/regs.texi (File Registers): Document `kmacro-to-register'.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
Dmitry Gutov [Sun, 22 Dec 2013 02:31:21 +0000 (04:31 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): Tweak the
docstring.
(ruby-smie-rules): Indent plus one level after `=>'.

10 years agoDoc fix for `tab-stop-list'.
Xue Fuqiao [Sun, 22 Dec 2013 01:56:52 +0000 (09:56 +0800)]
Doc fix for `tab-stop-list'.

* doc/emacs/indent.texi (Tab Stops): Mention recent changes about `tab-stop-list'.

10 years agoDocument `scroll-bar-adjust-thumb-portion'.
Xue Fuqiao [Sun, 22 Dec 2013 01:45:13 +0000 (09:45 +0800)]
Document `scroll-bar-adjust-thumb-portion'.

10 years agoAdd NEWS marks for focus-{in, out}-hook.
Xue Fuqiao [Sun, 22 Dec 2013 01:17:48 +0000 (09:17 +0800)]
Add NEWS marks for focus-{in, out}-hook.

10 years agoAdd NEWS marks for VC.
Xue Fuqiao [Sun, 22 Dec 2013 01:07:22 +0000 (09:07 +0800)]
Add NEWS marks for VC.

10 years ago* src/lread.c (syms_of_lread) <load_prefer_newer>: Doc fix.
Xue Fuqiao [Sun, 22 Dec 2013 00:52:26 +0000 (08:52 +0800)]
* src/lread.c (syms_of_lread) <load_prefer_newer>: Doc fix.

10 years agoDocument how to make RET not indent.
Richard M. Stallman [Sat, 21 Dec 2013 22:55:59 +0000 (17:55 -0500)]
Document how to make RET not indent.

* simple.el (newline): Doc fix.

10 years agoeww: fix wrong key binding
Kenjiro NAKAYAMA [Sat, 21 Dec 2013 20:50:02 +0000 (15:50 -0500)]
eww: fix wrong key binding

* net/eww.el (eww-checkbox-map): Fix wrong key bind to `eww-toggle-checkbox'.

10 years agoeww: support disabled and readonly text
Kenjiro NAKAYAMA [Sat, 21 Dec 2013 20:42:23 +0000 (15:42 -0500)]
eww: support disabled and readonly text

* net/eww.el (eww-form-text): Support text form with disabled and readonly attributes.

10 years agoeww: machinery to list browser history
Ted Zlatanov [Sat, 21 Dec 2013 20:33:44 +0000 (15:33 -0500)]
eww: machinery to list browser history

* net/eww.el (eww-list-histories, eww-list-histories)
(eww-history-browse, eww-history-quit, eww-history-kill)
(eww-history-mode-map, eww-history-mode): New command and
functions to list browser histories.

10 years agoeww: minor code fixes and toolbar support
Rüdiger Sonderfeld [Sat, 21 Dec 2013 20:13:09 +0000 (15:13 -0500)]
eww: minor code fixes and toolbar support

* net/eww.el (eww-back-url, eww-forward-url, eww-next-url)
(eww-previous-url, eww-up-url, eww-top-url, eww-add-bookmark)
(eww-bookmark-prepare, eww-bookmark-kill, eww-bookmark-yank)
(eww-bookmark-browse, eww-next-bookmark, eww-previous-bookmark):
Use `user-error'.
(eww-bookmark-mode-map): Add menu.
(eww-render, eww-mode): Use `setq-local'.
(eww-tool-bar-map): New variable.
(eww-mode): Set `tool-bar-map'.
(eww-view-source): Check for `html-mode' with `fboundp'.

10 years ago* net/shr.el (shr--extract-best-source): Don't bug out on audio elements
Lars Magne Ingebrigtsen [Sat, 21 Dec 2013 17:54:16 +0000 (18:54 +0100)]
* net/shr.el (shr--extract-best-source): Don't bug out on audio elements

That have text inside.  Also remove debugging.

10 years agoChangelog for previous checkin, missed to mark.
Jan Djärv [Sat, 21 Dec 2013 16:12:52 +0000 (17:12 +0100)]
Changelog for previous checkin, missed to mark.

10 years agoCustomize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB.
Jan Djärv [Sat, 21 Dec 2013 16:11:55 +0000 (17:11 +0100)]
Customize ns-use-srgb-colorspace on OSX >= 10.7 to use sRGB.

* etc/NEWS: Mention ns-use-srgb-colorspace.

* lisp/cus-start.el (all): Add ns-use-srgb-colorspace.

* src/nsfns.m (Fxw_color_values): Use colorUsingDefaultColorSpace.

* src/nsterm.h: Declare EmacsColor category.

* src/nsterm.m (NSColor): Implement EmacsColor category.
(ns_get_color): Use colorUsingDefaultColorSpace.
(ns_get_color, ns_term_init): Use colorForEmacsRed.

10 years agoDon't make faces when loading Custom themes.
Chong Yidong [Sat, 21 Dec 2013 15:31:09 +0000 (23:31 +0800)]
Don't make faces when loading Custom themes.

* custom.el (custom-theme-recalc-face): Do nothing if the face is
undefined.  Thus, theme settings for undefined faces do not take
effect until the faces are defined with defface, the same as with
theme variables.

* faces.el (face-spec-set): Use face-spec-recalc in all cases.
(face-spec-reset-face): Don't assign extra properties in temacs.
(face-spec-recalc): Apply X resources too.

10 years agoDoc fixes for face functions.
Chong Yidong [Sat, 21 Dec 2013 13:44:20 +0000 (21:44 +0800)]
Doc fixes for face functions.

* faces.el (face-spec-set):
* cus-face.el (custom-theme-set-faces, custom-set-faces):
* custom.el (defface): Doc fixes.

Fixes: debbugs:16203

10 years ago* themes/tango-dark-theme.el: Minor color tweak.
Chong Yidong [Sat, 21 Dec 2013 13:43:11 +0000 (21:43 +0800)]
* themes/tango-dark-theme.el: Minor color tweak.

10 years agoFix compilation warning on MS-Windows in my_png_error.
Eli Zaretskii [Sat, 21 Dec 2013 09:09:48 +0000 (11:09 +0200)]
Fix compilation warning on MS-Windows in my_png_error.

 src/image.c (fn_png_longjmp) [WINDOWSNT]: Mark the function as
 having the PNG_NORETURN attribute, to avoid compiler warning in
 my_png_error.

10 years agoTweak C-x TAB behavior changes, and update docs.
Chong Yidong [Sat, 21 Dec 2013 08:37:08 +0000 (16:37 +0800)]
Tweak C-x TAB behavior changes, and update docs.

* lisp/indent.el (indent-rigidly-map): Add docstring, and move commands
into named functions.
(indent-rigidly-left, indent-rigidly-right)
(indent-rigidly-left-to-tab-stop)
(indent-rigidly-right-to-tab-stop): New functions.  Decide on
indentation direction based on bidi direction, and accumulate
sequential commands in a single undo boundary.
(indent-rigidly--pop-undo): New utility function.

* doc/emacs/indent.texi (Indentation Commands): Document C-x TAB changes.

* doc/lispref/text.texi (Region Indent): Note the new interactive
behavior of indent-rigidly.

10 years agoRe-organize NEWS.
Chong Yidong [Sat, 21 Dec 2013 08:34:49 +0000 (16:34 +0800)]
Re-organize NEWS.

10 years agoRemove fringe background extension code on W32.
YAMAMOTO Mitsuharu [Sat, 21 Dec 2013 07:04:07 +0000 (16:04 +0900)]
Remove fringe background extension code on W32.

* w32term.h (struct scroll_bar): Remove member `fringe_extended_p'.

* w32term.c (w32_draw_fringe_bitmap, x_scroll_run): Remove code for
fringe background extension.
(x_scroll_bar_create): Remove variables `sb_left' and `sb_width',
because they are now always the same as `left' and `width',
respectively.  Remove code for the case that `width' and
`sb_width' are different.

10 years ago* faces.el (read-face-name): Require crm.el when using crm-separator.
Juanma Barranquero [Fri, 20 Dec 2013 23:06:17 +0000 (00:06 +0100)]
* faces.el (read-face-name): Require crm.el when using crm-separator.

10 years ago* progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
Daniel Colascione [Fri, 20 Dec 2013 21:41:57 +0000 (13:41 -0800)]
* progmodes/sh-script.el (sh-mode): Tweak paragraph-separate
so that we don't reflow comments into the shebang line.