bpt/emacs.git
10 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.

10 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.

10 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.

10 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

10 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.

10 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.

10 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'.

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

10 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.

10 years agolisp/net/eww.el (eww-update-header-line-format): Quote % characters
Lars Magne Ingebrigtsen [Fri, 21 Jun 2013 07:52:47 +0000 (07:52 +0000)]
lisp/net/eww.el (eww-update-header-line-format): Quote % characters

10 years agoChangeLog fix for previous change
Glenn Morris [Fri, 21 Jun 2013 07:38:46 +0000 (00:38 -0700)]
ChangeLog fix for previous change

10 years agocookie1.el small cleanup
Glenn Morris [Fri, 21 Jun 2013 07:35:33 +0000 (00:35 -0700)]
cookie1.el small cleanup

Make some funcs interactive, copy some functionality from yow.el.

* lisp/play/cookie1.el (cookie): New custom group.
(cookie-file): New option.
(cookie-check-file): New function.
(cookie): Make it interactive.  Make start and end messages optional.
Interactively, display the result.  Default to cookie-file.
(cookie-insert): Default to cookie-file.
(cookie-snarf): Make start and end messages optional.
Default to cookie-file.  Use with-temp-buffer.
(cookie-read): Rename from read-cookie.
Make start and end messages optional.  Default to cookie-file.
(cookie-shuffle-vector): Rename from shuffle-vector.  Use dotimes.
(cookie-apropos, cookie-doctor): New functions, copied from yow.el

* lisp/obsolete/yow.el (read-zippyism): Use new name for read-cookie.

10 years ago* progmodes/octave.el (octave-mode): Backward compatibility fix.
Leo Liu [Fri, 21 Jun 2013 06:45:37 +0000 (14:45 +0800)]
* progmodes/octave.el (octave-mode): Backward compatibility fix.

10 years ago* lisp/font-lock.el (lisp-font-lock-keywords-2): Add with-eval-after-load.
Glenn Morris [Fri, 21 Jun 2013 06:37:44 +0000 (23:37 -0700)]
* lisp/font-lock.el (lisp-font-lock-keywords-2): Add with-eval-after-load.

10 years ago* lisp/url/url-future.el (url-future-call): Remove useless value call.
Glenn Morris [Fri, 21 Jun 2013 06:32:50 +0000 (23:32 -0700)]
* lisp/url/url-future.el (url-future-call): Remove useless value call.

An earlier version of this function returned the value, ref
http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00708.html
but now it returns the function (see commentary).

10 years ago* lisp/emacs-lisp/package.el: Use tar-mode rather than tar executable.
Stefan Monnier [Fri, 21 Jun 2013 03:08:47 +0000 (23:08 -0400)]
* lisp/emacs-lisp/package.el: Use tar-mode rather than tar executable.
Consolidate the single-file vs tarball code.
(package-desc-suffix): New function.
(package-desc-full-name): Don't bother inlining it.
(package-load-descriptor): Return the new package-desc.
(package-mark-obsolete): Remove unused arg `package'.
(package-unpack): Make it work for single files as well.
Make it update package-alist.
(package--make-autoloads-and-stuff): Rename from
package--make-autoloads-and-compile.  Don't compile any more.
(package--compile): New function.
(package-generate-description-file): New function, extracted from
package-unpack-single.
(package-unpack-single): Remove.
(package--with-work-buffer): Add indentation and debugging info.
(package-download-single): Remove.
(package-install-from-archive): Rename from package-download-tar, make
it take a pkg-desc, and make it work for single files as well.
(package-download-transaction): Simplify.
(package-tar-file-info): Remove `file' arg.  Rewrite not to use an
external tar program.
(package-install-from-buffer): Remove `pkg-desc' argument.
Use package-tar-file-info for tar-mode buffers.
(package-install-file): Simplify accordingly.
(package-archive-base): Change to take a pkg-desc.
* lisp/tar-mode.el (tar--check-descriptor): New function, extracted from
tar-get-descriptor.
(tar-get-descriptor): Use it.
(tar-get-file-descriptor): New function.
(tar--extract): New function, extracted from tar-extract.
(tar--extract): Use it.
* lisp/emacs-lisp/package-x.el (package-upload-file): Decode the file, in
case the summary uses non-ascii.  Adjust to new calling convention of
package-tar-file-info.

10 years agoRemove obsolete comments re postscript image printing
Glenn Morris [Fri, 21 Jun 2013 02:17:37 +0000 (19:17 -0700)]
Remove obsolete comments re postscript image printing

10 years ago* comint.el (comint-redirect-results-list-from-process): Fix
Leo Liu [Fri, 21 Jun 2013 01:21:15 +0000 (09:21 +0800)]
* comint.el (comint-redirect-results-list-from-process): Fix
random delay.

Fixes: debbugs:14681

10 years agoconfigure.ac (HAVE_LIBXML2): Try built-in libxml2 on OS X 10.8 as a fallback.
YAMAMOTO Mitsuharu [Fri, 21 Jun 2013 01:03:23 +0000 (10:03 +0900)]
configure.ac (HAVE_LIBXML2): Try built-in libxml2 on OS X 10.8 as a fallback.

10 years agolisp/profiler.el (profiler-format-number): Use log, not log10.
Juanma Barranquero [Fri, 21 Jun 2013 00:53:33 +0000 (02:53 +0200)]
lisp/profiler.el (profiler-format-number): Use log, not log10.

10 years agolisp/term/x-win.el (emacs-session-filename): Use `locate-user-emacs-file'.
Juanma Barranquero [Thu, 20 Jun 2013 21:58:29 +0000 (23:58 +0200)]
lisp/term/x-win.el (emacs-session-filename): Use `locate-user-emacs-file'.

10 years ago* lisp/emacs-lisp/cl-loaddefs.el: Don't version-control any more.
Stefan Monnier [Thu, 20 Jun 2013 20:01:51 +0000 (16:01 -0400)]
* lisp/emacs-lisp/cl-loaddefs.el: Don't version-control any more.
* lisp/emacs-lisp/cl-lib.el: Load cl-macs when cl-loaddefs is not
yet available.
* lisp/Makefile.in (AUTOGEN_VCS): Move cl-loaddefs.el...
(AUTOGENEL): ... here.
* lisp/emacs-lisp/cl-macs.el (cl--sublis): New function.
(cl--defsubst-expand): Use it.
* .bzrignore: Don't unignore cl-loaddefs.el.

10 years ago* syntax.c: Integer cleanups.
Paul Eggert [Thu, 20 Jun 2013 18:59:08 +0000 (11:59 -0700)]
* syntax.c: Integer cleanups.

(SYNTAX_FLAGS_COMMENT_STYLEC): Return a boolean, not 0-or-2.
All uses that need 0-or-2 changed to:
(SYNTAX_FLAGS_COMMENT_STYLEC2): New macro, with the same semantics
as the old SYNTAX_FLAGS_COMMENT_STYLEC.
(struct lisp_parse_state, syntax_prefix_flag_p, update_syntax_table)
(char_quoted, prev_char_comend_first, back_comment)
(Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
(in_classes, forw_comment, scan_lists, scan_sexps_forward):
Use bool for boolean.
(update_syntax_table, skip_chars, skip_syntaxes):
Prefer int to unsigned when either will do.
(back_comment): Return boolean success flag, like forw_comment,
instead of positive-or-minus-1 (which might have overflowed int anyway).
Don't stuff ptrdiff_t into int.
(syntax_spec_code, syntax_code_spec): Now const.
(Fmatching_paren, scan_lists, scan_sexps_forward):
Use enum syntaxcode for syntax code.
(Fmatching_paren): Check that arg is a character, not just an integer.
(Fstring_to_syntax): Don't assume 0377 fits in enum syntaxcode.
(Finternal_describe_syntax_value): Omit no-longer-needed
comparison to 0.
(skip_chars): Use char, not unsigned char, when the distinction
doesn't matter.
(forw_comment, scan_lists): Prefer A |= B to A = A || B when B's cheap.
* bytecode.c (exec_byte_code):
* syntax.c (syntax_spec_code, Fchar_syntax)
(Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
(init_syntax_once):
* syntax.h (SYNTAX_WITH_FLAGS):
Omit unnecessary casts.

10 years agoYet another attempt at fixing bugs #14602, 14630, 14669.
Eli Zaretskii [Thu, 20 Jun 2013 17:36:24 +0000 (20:36 +0300)]
Yet another attempt at fixing bugs #14602, 14630, 14669.

 src/w32fns.c (w32_wnd_proc): Don't compute the header line and mode
 line dimensions here, to avoid race conditions with the main
 thread.
 src/w32term.c (w32_draw_window_cursor): Compute the header line and
 mode line dimensions here.
 <w32_system_caret_window, w32_system_caret_hdr_height>:
 <w32_system_caret_mode_height>: New variables.
 src/w32term.h: Declare them.

10 years ago* alloc.c (die): Move "assertion failed" string here ...
Paul Eggert [Thu, 20 Jun 2013 14:47:46 +0000 (07:47 -0700)]
* alloc.c (die): Move "assertion failed" string here ...

* lisp.h (eassert): ... from here.  Also, suppress evaluation of
COND when SUPPRESS_CHECKING.  This shrinks the executable text
size by 0.8% to 2.2% when configured with --enable-checking,
depending on optimization flags (GCC 4.8.1 x86-64).

10 years agoAdd log2 support and make log10 obsolete for consistency.
Paul Eggert [Thu, 20 Jun 2013 14:15:42 +0000 (07:15 -0700)]
Add log2 support and make log10 obsolete for consistency.

* configure.ac (log2): Check for this function.
* doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
* lisp/subr.el (log10): Move here from C code, and declare as obsolete.
All uses of (log10 X) replaced with (log X 10).
* src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
base is 2; this is more accurate.
(Flog10): Move to Lisp (marked obsolete there).

10 years agolisp/emacs-lisp/tabulated-list.el: Use defvar-local, setq-local.
Juanma Barranquero [Thu, 20 Jun 2013 11:57:33 +0000 (13:57 +0200)]
lisp/emacs-lisp/tabulated-list.el: Use defvar-local, setq-local.

(tabulated-list-format): Fix typo.  Declare with `defvar-local'.
(tabulated-list-use-header-line, tabulated-list-entries)
(tabulated-list-padding, tabulated-list-printer)
(tabulated-list-sort-key): Declare with `defvar-local'.
(tabulated-list-init-header, tabulated-list-print-fake-header):
Use `setq-local'.

10 years agoFix ChangeLog entry.
Michael Albinus [Thu, 20 Jun 2013 11:46:59 +0000 (13:46 +0200)]
Fix ChangeLog entry.

10 years ago* arc-mode.el (archive-mode): Add `archive-write-file' also for
Michael Albinus [Thu, 20 Jun 2013 11:45:45 +0000 (13:45 +0200)]
* arc-mode.el (archive-mode): Add `archive-write-file' also for
remote files.  (Bug#14652)

10 years agolisp/(cus-edit,custom).el: Fix typos; use setq-local, string-match-p, looking-at-p.
Juanma Barranquero [Thu, 20 Jun 2013 11:29:30 +0000 (13:29 +0200)]
lisp/(cus-edit,custom).el: Fix typos; use setq-local, string-match-p, looking-at-p.

* lisp/cus-edit.el:
  (custom-commands): Fix typos.
  (custom-display): Fix tooltip text.
  (custom-magic-alist, custom-filter-face-spec, custom-group-members):
  Fix typos in docstrings.
  (custom--initialize-widget-variables, Custom-mode): Use `setq-local'.
  (custom-unlispify-menu-entry, custom-magic-value-create)
  (custom-add-see-also, custom-group-value-create): Use ?\s.
  (custom-guess-type, customize-apropos, editable-field)
  (custom-face-value-create): Use `string-match-p'.
  (custom-save-variables, custom-save-faces): Use `looking-at-p'.

* lisp/custom.el (custom-load-symbol): Use `string-match-p'.

10 years agoRevert 2013-06-20T00:39:59Z!lekktu@gmail.com.
Juanma Barranquero [Thu, 20 Jun 2013 10:28:23 +0000 (12:28 +0200)]
Revert 2013-06-20T00:39:59Z!lekktu@gmail.com.

10 years ago* floatfns.c: Add commentary re C99 and C11.
Paul Eggert [Thu, 20 Jun 2013 01:19:43 +0000 (18:19 -0700)]
* floatfns.c: Add commentary re C99 and C11.

10 years agolisp/ansi-color.el: Convert to lexical binding.
Juanma Barranquero [Thu, 20 Jun 2013 01:03:57 +0000 (03:03 +0200)]
lisp/ansi-color.el: Convert to lexical binding.
(ansi-colors): Fix URL.
(ansi-color-context, ansi-color-context-region): Use defvar-local.
(ansi-color-apply-sequence, ansi-color-map): Fix typos in docstrings.
(ansi-color-make-color-map): Rename local var ansi-color-map to map.

10 years agolisp/progmodes/prog-mode.el: Remove autoload cookies.
Juanma Barranquero [Thu, 20 Jun 2013 00:39:59 +0000 (02:39 +0200)]
lisp/progmodes/prog-mode.el: Remove autoload cookies.

10 years agoMerge changes made in Gnus master
Gnus developers [Wed, 19 Jun 2013 22:28:04 +0000 (22:28 +0000)]
Merge changes made in Gnus master

2013-06-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* net/eww.el (eww-process-text-input): Display passwords as asterisks.
* net/shr.el (shr-make-table-1): Protect against invalid column-spans.

2013-06-19  Tom Tromey  <tromey@redhat.com>
* net/eww.el (eww-top-url): Remove.
(eww-home-url, eww-start-url, eww-contents-url): New defvars.
(eww-render): Set new variables.  Don't set eww-top-url.
(eww-handle-link): Handle "prev", "home", and "contents".
Downcase the rel text.
(eww-top-url): Choose best top URL.

2013-06-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* net/eww.el: Rewrite to implement form elements "by hand" instead of
relying in widget.el.  Using widget.el leads to too many
user interface inconsistencies.
(eww-self-insert): Implement entering commands in text fields.
(eww-process-text-input): New function to make text input field editing
work.
(eww-submit): Rewrite to use the new-style form methods.
(eww-select-display): Display the correct selected item.
(eww-change-select): Implement changing the select value.
(eww-toggle-checkbox): Implement radio/checkboxes.
(eww-update-field): Fix compilation error.
(eww-tag-textarea): Implement <textarea>.
* net/shr.el (shr-urlify): Use `keymap' instead of `local-map' so that we
don't shadow mode-specific bindings.
* net/eww.el (eww-browse-url): Don't push stuff onto history if there's
nothing to push.
* net/shr.el (shr-map): Bind [down-mouse-1] to browse URLs.

10 years ago* lisp/cedet/semantic/idle.el (define-semantic-idle-service):
Glenn Morris [Wed, 19 Jun 2013 20:29:09 +0000 (16:29 -0400)]
* lisp/cedet/semantic/idle.el (define-semantic-idle-service):
No need to use eval-and-compile, progn will do.
(eval-and-compile ends up causing spurious warnings.)

10 years ago* lisp/emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.
Glenn Morris [Wed, 19 Jun 2013 20:27:49 +0000 (16:27 -0400)]
* lisp/emacs-lisp/eieio.el (defclass): Make it eval-and-compile once more.

10 years agoFix typos in ChangeLogs.
Juanma Barranquero [Wed, 19 Jun 2013 20:10:57 +0000 (22:10 +0200)]
Fix typos in ChangeLogs.

10 years agoChangeLog bug ref fix
Glenn Morris [Wed, 19 Jun 2013 16:59:23 +0000 (12:59 -0400)]
ChangeLog bug ref fix

10 years ago.bzrignore: Add GNU GLOBAL files.
Juanma Barranquero [Wed, 19 Jun 2013 14:27:21 +0000 (16:27 +0200)]
.bzrignore: Add GNU GLOBAL files.

10 years agosrc/sound.c: Silence some warnings.
Juanma Barranquero [Wed, 19 Jun 2013 14:20:26 +0000 (16:20 +0200)]
src/sound.c: Silence some warnings.
(string_default): Move to !WINDOWSNT section.
(Fplay_sound_internal) [WINDOWSNT]: Remove i_result to avoid warning.

10 years ago* doc/lispref/keymaps.texi (Active Keymaps): Fix documentation of
Stefan Monnier [Wed, 19 Jun 2013 13:51:47 +0000 (09:51 -0400)]
* doc/lispref/keymaps.texi (Active Keymaps): Fix documentation of
set-temporary-overlay-map and overriding-terminal-local-map.
* doc/lispref/modes.texi (Mode Line Data, Properties in Mode): Advertise
`keymap' rather than `local-map'.

10 years ago* tramp.texi (Top, Configuration): Insert section `Predefined
Michael Albinus [Wed, 19 Jun 2013 13:21:15 +0000 (15:21 +0200)]
* tramp.texi (Top, Configuration): Insert section `Predefined
connection information' in menu.
(Predefined connection information): New section.
(Android shell setup): Make a reference to `Predefined connection
information'.

10 years ago* net/tramp-adb.el (tramp-adb-get-toolbox): Remove function, it is
Michael Albinus [Wed, 19 Jun 2013 13:14:24 +0000 (15:14 +0200)]
* net/tramp-adb.el (tramp-adb-get-toolbox): Remove function, it is
not needed.

* net/tramp-sh.el (tramp-find-shell): Don't set "busybox" property.

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

10 years agoUse `eww-browse-url' instead of `eww'
Lars Magne Ingebrigtsen [Wed, 19 Jun 2013 07:37:45 +0000 (09:37 +0200)]
Use `eww-browse-url' instead of `eww'

* net/browse-url.el (browse-url-browser-function):
`eww-browse-url' has the right calling signature, `eww' does not.

10 years ago* sound.c: Integer cleanups.
Paul Eggert [Wed, 19 Jun 2013 07:36:20 +0000 (00:36 -0700)]
* sound.c: Integer cleanups.

Remove unnecessary forward decls.
(struct sound_device): The 'file' member is now a Lisp_Object, not
a char *, so that we needn't invoke alloca on a huge size.
(Fplay_sound_internal): Adjust to this.
(string_default): New function.
(vox_open, vox_init, alsa_open, alsa_configure, alsa_init):
Use it to adjust to the struct sound_device change.
(parse_sound, wav_init, au_init, alsa_init): Use bool for booleans.
(be2hs) [0]: Remove.

10 years agoCheck autoload's "type" argument correctly in bytecomp.el
Glenn Morris [Wed, 19 Jun 2013 07:35:00 +0000 (00:35 -0700)]
Check autoload's "type" argument correctly in bytecomp.el

* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-autoload):
Only eval autoloaded macros.
(byte-compile-autoload): Only give the macro warning for macros.

10 years agocedet/semantic/decorate/mode.el autoload tweak
Glenn Morris [Wed, 19 Jun 2013 07:28:47 +0000 (00:28 -0700)]
cedet/semantic/decorate/mode.el autoload tweak

* cedet/semantic/decorate/mode.el (define-semantic-decoration-style): Doc fix.
(define-semantic-decoration-style): 'function is not an accepted
value for autoload's "type" argument.  Might as well use the default.

10 years agoQuieten cperl-mode compilation
Glenn Morris [Wed, 19 Jun 2013 07:24:44 +0000 (00:24 -0700)]
Quieten cperl-mode compilation

* lisp/progmodes/cperl-mode.el (ps-bold-faces, ps-italic-faces)
(ps-underlined-faces): Declare.

10 years ago* lisp/gnus/gnus-group.el (gnus-mark-article-as-read): Fix declaration.
Glenn Morris [Wed, 19 Jun 2013 07:23:06 +0000 (00:23 -0700)]
* lisp/gnus/gnus-group.el (gnus-mark-article-as-read): Fix declaration.

10 years agoSilence idlwave compilation
Glenn Morris [Wed, 19 Jun 2013 07:21:59 +0000 (00:21 -0700)]
Silence idlwave compilation

* lisp/progmodes/idlwave.el (func-menu): Only set it up on XEmacs.
(speedbar-add-supported-extension): Declare.

10 years ago* international/titdic-cnv.el (tit-process-header, miscdic-convert):
Glenn Morris [Wed, 19 Jun 2013 07:19:42 +0000 (00:19 -0700)]
* international/titdic-cnv.el (tit-process-header, miscdic-convert):
Don't include a date stamp in the header of the generated file;
it leads to needless differences between output files.

10 years agoAdd make dist rule for doc/misc/Makefile, for www.gnu.org
Glenn Morris [Wed, 19 Jun 2013 07:01:22 +0000 (00:01 -0700)]
Add make dist rule for doc/misc/Makefile, for gnu.org

* doc/misc/Makefile.in (version): New, set by configure.
(clean): Delete dist tar file.
(infoclean): New, split from maintainer-clean.
(maintainer-clean): Run infoclean.
(dist): New rule, to make tarfile for www.gnu.org.

10 years agoTweak regexp in previous doc/*/Makefile.in change, make error fatal
Glenn Morris [Wed, 19 Jun 2013 06:41:37 +0000 (23:41 -0700)]
Tweak regexp in previous doc/*/Makefile.in change, make error fatal

10 years ago* admin/nt/README-ftp-server: Update from http://ftp.gnu.org/gnu/emacs/windows/
Glenn Morris [Wed, 19 Jun 2013 06:31:20 +0000 (23:31 -0700)]
* admin/nt/README-ftp-server: Update from ftp.gnu.org/gnu/emacs/windows/

10 years ago* net/secrets.el (secrets-struct-secret-content-type): Replace
Michael Albinus [Wed, 19 Jun 2013 06:24:12 +0000 (08:24 +0200)]
* net/secrets.el (secrets-struct-secret-content-type): Replace
check of introspection data by a test call of "CreateItem".  Some
servers do not offer introspection.

10 years ago* syntax.c (skip_chars): Don't use uninitialized storage
Paul Eggert [Wed, 19 Jun 2013 05:45:35 +0000 (22:45 -0700)]
* syntax.c (skip_chars): Don't use uninitialized storage

when searching a multibyte buffer for characters that are not in a
unibyte string that contains non-ASCII characters.

10 years ago* lisp/electric.el (electric-pair-mode): Improve interaction with
Stefan Monnier [Wed, 19 Jun 2013 04:42:32 +0000 (00:42 -0400)]
* 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.

10 years agoEdit more configure variables in doc make dist rules.
Glenn Morris [Wed, 19 Jun 2013 03:49:26 +0000 (20:49 -0700)]
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

10 years ago* progmodes/octave.el (octave-help): Fix regexp.
Leo Liu [Wed, 19 Jun 2013 02:02:30 +0000 (10:02 +0800)]
* progmodes/octave.el (octave-help): Fix regexp.

10 years agoMerge changes made in Gnus master
Gnus developers [Tue, 18 Jun 2013 22:38:34 +0000 (22:38 +0000)]
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.

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Dmitry Gutov [Tue, 18 Jun 2013 22:17:56 +0000 (02:17 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Distinguish ternary operator tokens from slash symbol and slash
char literal.

10 years agoConvert symbol prettification into minor mode and global minor mode.
Juanma Barranquero [Tue, 18 Jun 2013 22:13:25 +0000 (00:13 +0200)]
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.

10 years agoMerge from gnulib (comment fixes only).
Paul Eggert [Tue, 18 Jun 2013 21:31:00 +0000 (14:31 -0700)]
Merge from gnulib (comment fixes only).

10 years ago* lisp/files-x.el (modify-file-local-variable-message): New function.
Juri Linkov [Tue, 18 Jun 2013 20:38:43 +0000 (23:38 +0300)]
* 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

10 years agoAdd explicit arg REPLACE to the callers of `shell-command-on-region'.
Juri Linkov [Tue, 18 Jun 2013 20:24:44 +0000 (23:24 +0300)]
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

10 years ago* lisp/emacs-lisp/eieio-custom.el: Remove misleading Version: header.
Stefan Monnier [Tue, 18 Jun 2013 20:06:18 +0000 (16:06 -0400)]
* lisp/emacs-lisp/eieio-custom.el: Remove misleading Version: header.

Fixes: debbugs:14633

10 years ago* process.c: Include xgselect.h if HAVE_GLIB. Include glib.h
Jan Djärv [Tue, 18 Jun 2013 18:41:48 +0000 (20:41 +0200)]
* process.c: Include xgselect.h if HAVE_GLIB.  Include glib.h
if HAVE_GLIB && ! WINDOWSNT.

Fixes: debbugs:14654

10 years ago* conf_post.h: Add comments for INLINE, EXTERN_INLINE, etc.
Paul Eggert [Tue, 18 Jun 2013 18:36:13 +0000 (11:36 -0700)]
* conf_post.h: Add comments for INLINE, EXTERN_INLINE, etc.

10 years agoMove some files from gnus/ to net/
Glenn Morris [Tue, 18 Jun 2013 18:04:09 +0000 (14:04 -0400)]
Move some files from gnus/ to net/

Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00567.html

10 years ago* newcomment.el (comment-search-forward, comment-search-backward): Doc fix.
Glenn Morris [Tue, 18 Jun 2013 17:57:56 +0000 (13:57 -0400)]
* newcomment.el (comment-search-forward, comment-search-backward): Doc fix.

10 years agoSpelling fixes.
Paul Eggert [Tue, 18 Jun 2013 17:15:25 +0000 (10:15 -0700)]
Spelling fixes.

10 years agosrc/ChangeLog: Add bug ID to the previous change.
Kenichi Handa [Tue, 18 Jun 2013 14:54:48 +0000 (23:54 +0900)]
src/ChangeLog: Add bug ID to the previous change.

10 years agomerge emacs
Kenichi Handa [Tue, 18 Jun 2013 14:49:59 +0000 (23:49 +0900)]
merge emacs

10 years agofont.c (Ffont_spec): Signal an error for an invalid font name.
Kenichi Handa [Tue, 18 Jun 2013 14:45:08 +0000 (23:45 +0900)]
font.c (Ffont_spec): Signal an error for an invalid font name.

11 years agoFix typo.
Michael Albinus [Tue, 18 Jun 2013 14:16:12 +0000 (16:16 +0200)]
Fix typo.

11 years agolisp/gnus/shr.el: (shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt...
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 11:24:16 +0000 (11:24 +0000)]
lisp/gnus/shr.el: (shr-tag-dl, shr-tag-dt, shr-tag-dd): Add support for <dl>, <dt> and <dd>

11 years agolisp/ChangeLog, src/ChangeLog: Rotate changelogs.
Juanma Barranquero [Tue, 18 Jun 2013 11:17:50 +0000 (13:17 +0200)]
lisp/ChangeLog, src/ChangeLog: Rotate changelogs.

11 years agolisp/face-remap.el (buffer-face-toggle): Fix typo in docstring.
Juanma Barranquero [Tue, 18 Jun 2013 10:52:07 +0000 (12:52 +0200)]
lisp/face-remap.el (buffer-face-toggle): Fix typo in docstring.
(buffer-face-mode-invoke): Doc fix.

11 years agoDon't colourise images from tables
Lars Magne Ingebrigtsen [Tue, 18 Jun 2013 10:46:53 +0000 (10:46 +0000)]
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.

11 years agolisp/gnus/eww.el (eww-detect-charset): Improve regexp; move backward
Katsumi Yamaoka [Tue, 18 Jun 2013 09:29:20 +0000 (09:29 +0000)]
lisp/gnus/eww.el (eww-detect-charset): Improve regexp; move backward

11 years agolisp/tabify.el (untabify, tabify): With prefix, apply to entire buffer.
Matthias Meulien [Tue, 18 Jun 2013 08:17:01 +0000 (10:17 +0200)]
lisp/tabify.el (untabify, tabify): With prefix, apply to entire buffer.

11 years agoReplace obsolete generic-make-keywords calls
Glenn Morris [Tue, 18 Jun 2013 07:43:46 +0000 (00:43 -0700)]
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.

11 years agoPorting fixes for merged specpdl and backtrace stacks.
Paul Eggert [Tue, 18 Jun 2013 07:42:37 +0000 (00:42 -0700)]
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

11 years ago* lisp/progmodes/python.el (ffap-alist): Declare.
Glenn Morris [Tue, 18 Jun 2013 07:17:58 +0000 (00:17 -0700)]
* lisp/progmodes/python.el (ffap-alist): Declare.

11 years ago* lisp/gnus/mm-decode.el (widget-convert-button): Autoload.
Glenn Morris [Tue, 18 Jun 2013 07:16:09 +0000 (00:16 -0700)]
* lisp/gnus/mm-decode.el (widget-convert-button): Autoload.

11 years ago* lisp/gnus/sieve-manage.el (mm-enable-multibyte): Autoload.
Glenn Morris [Tue, 18 Jun 2013 07:13:18 +0000 (00:13 -0700)]
* lisp/gnus/sieve-manage.el (mm-enable-multibyte): Autoload.

11 years ago* lisp/gnus/shr.el (libxml-parse-html-region): Declare.
Glenn Morris [Tue, 18 Jun 2013 07:10:56 +0000 (00:10 -0700)]
* lisp/gnus/shr.el (libxml-parse-html-region): Declare.
(shr-render-buffer): Explicit error if no libxml2 support.

11 years ago* lisp/textmodes/reftex.el (bibtex-mode-map): Declare
Glenn Morris [Tue, 18 Jun 2013 07:00:27 +0000 (00:00 -0700)]
* lisp/textmodes/reftex.el (bibtex-mode-map): Declare

11 years ago* lisp/cedet/semantic/ctxt.el (semantic-ctxt-end-of-symbol-default):
Glenn Morris [Tue, 18 Jun 2013 02:06:33 +0000 (22:06 -0400)]
* lisp/cedet/semantic/ctxt.el (semantic-ctxt-end-of-symbol-default):
Remove unused free variable `symlist'.

11 years ago* lisp/emacs-lisp/package.el: Update package-alist after install.
Stefan Monnier [Tue, 18 Jun 2013 01:26:47 +0000 (21:26 -0400)]
* 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

11 years ago(browse-url-browser-function): Add `eww' as a possible choice.
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 23:59:09 +0000 (01:59 +0200)]
(browse-url-browser-function): Add `eww' as a possible choice.

11 years agolisp/gnus/auth-source.el: When a data token is "machine", abort parsing the current...
Teodor Zlatanov [Mon, 17 Jun 2013 23:35:46 +0000 (23:35 +0000)]
lisp/gnus/auth-source.el: When a data token is "machine", abort parsing the current line

11 years agolisp/gnus/eww.el (eww-tag-input): Support <input type=image>
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 23:11:40 +0000 (23:11 +0000)]
lisp/gnus/eww.el (eww-tag-input): Support <input type=image>

11 years ago* lisp/net/webjump.el (webjump-sample-sites): Add DuckDuckGo.
Juri Linkov [Mon, 17 Jun 2013 22:45:14 +0000 (01:45 +0300)]
* lisp/net/webjump.el (webjump-sample-sites): Add DuckDuckGo.

11 years agolisp/gnus/{eww,shr}.el: Merge changes made in Gnus master
Lars Magne Ingebrigtsen [Mon, 17 Jun 2013 22:06:27 +0000 (22:06 +0000)]
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.

11 years ago* frame.c (x_report_frame_params): Cast parent_desc to uintptr_t.
Paul Eggert [Mon, 17 Jun 2013 21:12:21 +0000 (14:12 -0700)]
* frame.c (x_report_frame_params): Cast parent_desc to uintptr_t.

Needed if HAVE_NTGUI.  Reported by Juanma Barranquero.

11 years ago* nsfont.m (ns_registry_to_script): Parenthesize while expression.
Paul Eggert [Mon, 17 Jun 2013 21:10:31 +0000 (14:10 -0700)]
* nsfont.m (ns_registry_to_script): Parenthesize while expression.

11 years ago* lisp/emacs-lisp/package.el (package-load-descriptor): Remove
Dmitry Gutov [Mon, 17 Jun 2013 17:36:21 +0000 (21:36 +0400)]
* 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