1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

116079 commits

Author SHA1 Message Date
Stefan Monnier
102626e225 * lisp/electric.el (electric-pair-mode): Improve interaction with
electric-layout-mode.
(electric-pair-default-inhibit): Don't assume (eq char (char-before)).
(electric-pair-syntax): Use text-mode-syntax-table in comments and strings.
(electric-pair--insert): New function.
(electric-pair-post-self-insert-function): Use it and electric--after-char-pos.
2013-06-19 00:42:32 -04:00
Glenn Morris
789cf83370 Edit more configure variables in doc make dist rules.
* doc/emacs/Makefile.in (dist):
* doc/lispintro/Makefile.in (dist):
* doc/lispref/Makefile.in (dist): Edit more configure variables.
Try to check that we do not miss any in future.

Fixes: debbugs:14660
2013-06-18 20:49:26 -07:00
Glenn Morris
e8b3825d3d * doc/lispref/loading.texi (Autoload): Fix typo. 2013-06-18 20:45:10 -07:00
Leo Liu
ad5281251b * progmodes/octave.el (octave-help): Fix regexp. 2013-06-19 10:02:30 +08:00
Gnus developers
924d699786 Merge changes made in Gnus master
2013-06-18 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-netrc-parse-entries): Remove debugging.

2013-06-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr-make-table-1): Implement <td rowspan>.
(shr-table-horizontal-line): Allow nil as a value, and change the default.
(shr-insert-table-ruler): Respect the nil value.

2013-06-18 Tom Tromey <tromey@barimba>
* net/eww.el (eww-next-url, eww-previous-url, eww-up-url, eww-top-url):
  New defvars.
(eww-open-file): New defun.
(eww-render): Initialize new variables.
(eww-display-html): Handle "link" and "a".
(eww-handle-link, eww-tag-link, eww-tag-a): New defuns.
(eww-mode-map): Move "p" to "l".  Bind "p", "n", "t", and "u".
(eww-back-url): Rename from eww-previous-url.
(eww-next-url, eww-previous-url, eww-up-url, eww-top-url): New defuns.
2013-06-18 22:38:34 +00:00
Dmitry Gutov
d1bbba4fa5 * lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Distinguish ternary operator tokens from slash symbol and slash
char literal.
2013-06-19 02:17:56 +04:00
Juanma Barranquero
14dd22d2ce Convert symbol prettification into minor mode and global minor mode.
* etc/NEWS: Document new Prettify Symbols mode.

* lisp/progmodes/prog-mode.el (prettify-symbols-alist): Rename from
  `prog-prettify-symbols', and make a local defvar instead of defcustom.
  (prettify-symbols--keywords): Rename from `prog-prettify-symbols-alist'
  and make a local defvar.
  (prettify-symbols--compose-symbol): Rename from
  `prog--prettify-font-lock-compose-symbol'.
  (prettify-symbols--make-keywords): Rename from
  `prog-prettify-font-lock-symbols-keywords' and simplify.
  (prog-prettify-install): Remove.
  (prettify-symbols-mode): New minor mode, based on `prog-prettify-install'.
  (turn-on-prettify-symbols-mode): New function.
  (global-prettify-symbols-mode): New globalized minor mode.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
* lisp/progmodes/cfengine.el (cfengine3-mode):
* lisp/progmodes/perl-mode.el (perl-mode): Don't call `prog-prettify-install';
  set `prettify-symbols-alist' instead.
2013-06-19 00:13:25 +02:00
Paul Eggert
ec9295aeaa Merge from gnulib (comment fixes only). 2013-06-18 14:31:00 -07:00
Juri Linkov
292c880c7e * lisp/files-x.el (modify-file-local-variable-message): New function.
(modify-file-local-variable)
(modify-file-local-variable-prop-line): Add arg INTERACTIVE
and call `modify-file-local-variable-message' when it's non-nil.
(add-file-local-variable, delete-file-local-variable)
(add-file-local-variable-prop-line)
(delete-file-local-variable-prop-line): Add arg INTERACTIVE and use it.

Fixes: debbugs:9820
2013-06-18 23:38:43 +03:00
Juri Linkov
0950aa27a2 Add explicit arg REPLACE to the callers of `shell-command-on-region'.
* lisp/simple.el (shell-command-on-region): Doc fix.

* lisp/emulation/vi.el (vi-shell-op):
* lisp/emulation/vip.el (vip-execute-com, ex-command):
* lisp/emulation/viper-cmd.el (viper-exec-bang):
* lisp/emulation/viper-ex.el (ex-command): Add non-nil arg REPLACE to
the call of `shell-command-on-region'. 

* lisp/mh-e/mh-alias.el (mh-alias-local-users): Add non-nil arg REPLACE to
the call of `shell-command-on-region'.

Fixes: debbugs:14637
2013-06-18 23:24:44 +03:00
Stefan Monnier
8fbcca1658 * lisp/emacs-lisp/eieio-custom.el: Remove misleading Version: header.
Fixes: debbugs:14633
2013-06-18 16:06:18 -04:00
Jan Djärv
69f60cdc23 * process.c: Include xgselect.h if HAVE_GLIB. Include glib.h
if HAVE_GLIB && ! WINDOWSNT.

Fixes: debbugs:14654
2013-06-18 20:41:48 +02:00
Paul Eggert
0d6224d432 * conf_post.h: Add comments for INLINE, EXTERN_INLINE, etc. 2013-06-18 11:36:13 -07:00
Glenn Morris
4ba54f7d9d Move some files from gnus/ to net/
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00567.html
2013-06-18 14:04:09 -04:00
Glenn Morris
dd7426eaf3 * newcomment.el (comment-search-forward, comment-search-backward): Doc fix. 2013-06-18 13:57:56 -04:00
Stephen Berman
857b9748a7 * todos.el: Reinstate current copyright dates and original
todo-mode.el author.  Add reference in commentary to legacy file
format conversion command.
(todos-legacy-date-time-regexp): Rename from
todos-todo-mode-date-time-regexp and adjust uses.
2013-06-18 19:44:01 +02:00
Paul Eggert
5ebb1ee6c9 Spelling fixes. 2013-06-18 10:15:25 -07:00
Stephen Berman
a8f4bb8361 * diary-lib.el (diary-goto-entry-function): New variable.
(diary-entry): Use it in the action of this button type instead of
diary-goto-entry.

* todos.el (todos-diary-goto-entry): Add item locating code from
diary-goto-entry.  Add it at the top-level to override the latter
function.
(todos-powerset): Use definition by Wolfgang Jenkner, posted at
http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00423.html.
2013-06-18 18:05:01 +02:00
Kenichi Handa
f7e3f7cd3f src/ChangeLog: Add bug ID to the previous change. 2013-06-18 23:54:48 +09:00
Kenichi Handa
de86fd6193 merge emacs 2013-06-18 23:49:59 +09:00
Kenichi Handa
3c542890fe font.c (Ffont_spec): Signal an error for an invalid font name. 2013-06-18 23:45:08 +09:00
Michael Albinus
7946c240f9 Fix typo. 2013-06-18 16:16:12 +02:00
Lars Magne Ingebrigtsen
d2aa978075 lisp/gnus/shr.el: (shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and <dd> 2013-06-18 11:24:16 +00:00
Juanma Barranquero
a020afb989 lisp/ChangeLog, src/ChangeLog: Rotate changelogs. 2013-06-18 13:17:50 +02:00
Juanma Barranquero
58aa805b97 lisp/face-remap.el (buffer-face-toggle): Fix typo in docstring.
(buffer-face-mode-invoke): Doc fix.
2013-06-18 12:52:07 +02:00
Lars Magne Ingebrigtsen
f462d10ac4 Don't colourise images from tables
* shr.el (shr-tag-table): Insert the images after the table, so that
they're not covered by the table coulorisation, which often looked
awkward.
2013-06-18 10:46:53 +00:00
Katsumi Yamaoka
db5a34cae7 lisp/gnus/eww.el (eww-detect-charset): Improve regexp; move backward 2013-06-18 09:29:20 +00:00
Matthias Meulien
9a08a6173c lisp/tabify.el (untabify, tabify): With prefix, apply to entire buffer. 2013-06-18 10:17:01 +02:00
Glenn Morris
9445f99bd6 Replace obsolete generic-make-keywords calls
* lisp/generic-x.el (bat-generic-mode, rc-generic-mode, rul-generic-mode):
Replace obsolete function generic-make-keywords with its expansion.

* lisp/emacs-lisp/generic.el: Update commentary.
2013-06-18 00:43:46 -07:00
Paul Eggert
9349e5f767 Porting fixes for merged specpdl and backtrace stacks.
In particular this ports to 32-bit sparc Sun cc.
* eval.c (init_eval_once, grow_specpdl): Allocate a specbinding
array with a dummy element at specpdl[-1], so that its address can
be taken portably.
(unbind_to): Do not copy the binding; not needed, now that we
copy old_value in the one place where the copy is needed.
* fileio.c (Fwrite_region): Use ptrdiff_t, not int, for specpdl count.
* lisp.h (BITS_PER_PTRDIFF_T): Remove; no longer needed.
(union specbinding): Rename from struct specbinding.  Redo layout
to avoid the need for 'ptrdiff_t nargs : BITS_PER_PTRDIFF_T - 1;',
which is not portable.  With Sun C 5.12 32-bit sparc, the
declaration causes nargs to be an unsigned bitfield, a behavior
that the C standard allows; but Emacs wants nargs to be signed.
The overall type is now a union of structures rather than a
structure of union of structures, and the 'kind' member is now a
bitfield, so that the overall type doesn't grow.  All uses changed.
* process.c (Fmake_serial_process): Remove unnecessary initialization.

Fixes: debbugs:14643
2013-06-18 00:42:37 -07:00
Glenn Morris
e0df2d1420 * lisp/progmodes/python.el (ffap-alist): Declare. 2013-06-18 00:17:58 -07:00
Glenn Morris
9798967722 * lisp/gnus/mm-decode.el (widget-convert-button): Autoload. 2013-06-18 00:16:09 -07:00
Glenn Morris
5ad64ce6f3 * lisp/gnus/sieve-manage.el (mm-enable-multibyte): Autoload. 2013-06-18 00:13:18 -07:00
Glenn Morris
0143b8a3b1 * lisp/gnus/shr.el (libxml-parse-html-region): Declare.
(shr-render-buffer): Explicit error if no libxml2 support.
2013-06-18 00:10:56 -07:00
Glenn Morris
f2f426ca48 * lisp/textmodes/reftex.el (bibtex-mode-map): Declare 2013-06-18 00:00:27 -07:00
Glenn Morris
33f7372ef5 * lisp/cedet/semantic/ctxt.el (semantic-ctxt-end-of-symbol-default):
Remove unused free variable `symlist'.
2013-06-17 22:06:33 -04:00
Stefan Monnier
f7f9a720af * lisp/emacs-lisp/package.el: Update package-alist after install.
(package-unpack, package-unpack-single): Return the pkg-dir.
(package-download-transaction): Use it to update package-alist.

Fixes: debbugs:14632
2013-06-17 21:26:47 -04:00
Lars Magne Ingebrigtsen
57ff04e08d (browse-url-browser-function): Add `eww' as a possible choice. 2013-06-18 01:59:09 +02:00
Teodor Zlatanov
cc52b6cc95 lisp/gnus/auth-source.el: When a data token is "machine", abort parsing the current line 2013-06-17 23:35:46 +00:00
Lars Magne Ingebrigtsen
9822de7295 lisp/gnus/eww.el (eww-tag-input): Support <input type=image> 2013-06-17 23:11:40 +00:00
Juri Linkov
c048c02287 * lisp/net/webjump.el (webjump-sample-sites): Add DuckDuckGo. 2013-06-18 01:45:14 +03:00
Lars Magne Ingebrigtsen
be2aa13578 lisp/gnus/{eww,shr}.el: Merge changes made in Gnus master
lisp/gnus/eww.el (eww-tag-select): Don't render totally empty <select> forms.
(eww-convert-widgets): Don't bug out if the first widget starts at the beginning of the buffer.
(eww-convert-widgets): Fix last patch.

lisp/gnus/shr.el (shr-insert-table): Respect border-collapse: collapse.
(shr-tag-base): Protect against base specs that are degenerate.
(shr-ensure-paragraph): Don't delete empty lines that have text properties, because these may be input fields.

lisp/gnus/eww.el (eww-convert-widgets): Put `help-echo' on input fields so that we can navigate to them.

lisp/gnus/shr.el (shr-colorize-region): Put the colours over the entire region.
(shr-inhibit-decoration): New variable.
(shr-add-font): Use it to inhibit text property decorations while doing preliminary table renderings.  This speeds up typical Wikipedia page renderings by 15%.
(shr-tag-span): Don't respect the <title>, because that overwrites the help-echo from links inside the spans.
(shr-next-link): Use `help-echo' for navigation, so that we can navigate to form elements, too.

lisp/gnus/eww.el (eww-button): New face.
(eww-convert-widgets): Use it to make submit buttons more button-like.
2013-06-17 22:06:27 +00:00
Paul Eggert
ec6ecaad44 * frame.c (x_report_frame_params): Cast parent_desc to uintptr_t.
Needed if HAVE_NTGUI.  Reported by Juanma Barranquero.
2013-06-17 14:12:21 -07:00
Paul Eggert
0a4df6a50e * nsfont.m (ns_registry_to_script): Parenthesize while expression. 2013-06-17 14:10:31 -07:00
Dmitry Gutov
b5bcaee503 * lisp/emacs-lisp/package.el (package-load-descriptor): Remove
`with-syntax-table' call, `read' doesn't need it.
http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00539.html
2013-06-17 21:36:21 +04:00
Eli Zaretskii
7bfe8dbcc2 src/ChangeLog: Rearrange the last 2 entries in correct order. 2013-06-17 19:30:40 +03:00
Eli Zaretskii
ca46332555 Possible fix for bug #14630, which continues bug #14062.
src/w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
 unless we know that the window w's frame is a frame object.
2013-06-17 19:28:47 +03:00
Juanma Barranquero
254408ca2e doc/lispref/text.texi (Undo, Changing Properties): Fix typos. 2013-06-17 17:49:43 +02:00
Juanma Barranquero
551e07e5f5 lisp/startup.el: Fix bug#14639.
(command-line): Expand package name returned by `package--description-file'.
2013-06-17 17:33:52 +02:00
Lars Magne Ingebrigtsen
708e05f6d1 Implement new function `add-face-text-property'
* doc/lispref/text.texi (Changing Properties): Document `add-face-text-property'.

* src/textprop.c (property_set_type): New enum.
(add_properties): Allow appending/prepending text properties.
(add_text_properties_1): Factored out of Fadd_text_properties.
(Fadd_text_properties): Moved all the code into
add_text_properties_1.
(Fadd_face_text_property): New function that calls
add_text_properties_1.
2013-06-17 17:28:22 +02:00