bpt/emacs.git
11 years agoMention `display-monitor-attributes-list' in docstrings of X11 display measurement...
YAMAMOTO Mitsuharu [Mon, 20 May 2013 03:15:20 +0000 (12:15 +0900)]
Mention `display-monitor-attributes-list' in docstrings of X11 display measurement functions.

11 years ago* xfns.c (check_x_display_info): Don't use XINT for terminal object.
YAMAMOTO Mitsuharu [Mon, 20 May 2013 03:09:22 +0000 (12:09 +0900)]
* xfns.c (check_x_display_info): Don't use XINT for terminal object.

11 years agolisp/gnus/message.el (message-insert-formatted-citation-line): Handle finding first...
Adam Sjøgren [Sun, 19 May 2013 22:50:16 +0000 (22:50 +0000)]
lisp/gnus/message.el (message-insert-formatted-citation-line): Handle finding first/lastname when more than 2 names appear

11 years agolisp/gnus/shr.el (shr-tag-span): New function
Adam Sjøgren [Sun, 19 May 2013 22:49:17 +0000 (22:49 +0000)]
lisp/gnus/shr.el (shr-tag-span): New function

11 years agodoc/misc/gnus.texi (Fancy Mail Splitting): Fix missing backslash on \\&
Adam Sjøgren [Sun, 19 May 2013 22:47:25 +0000 (22:47 +0000)]
doc/misc/gnus.texi (Fancy Mail Splitting): Fix missing backslash on \\&

11 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-heredoc): Leave
Dmitry Gutov [Sun, 19 May 2013 06:52:22 +0000 (10:52 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-heredoc): Leave
point at bol following the heredoc openers.
(ruby-syntax-propertize-expansions): Remove.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to
Dmitry Gutov [Sun, 19 May 2013 06:01:23 +0000 (10:01 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re): Allow to
start at point, so that expansion starting right after opening
slash in a regexp is recognized.
(ruby-syntax-before-regexp-re): New defvar, extracted from
ruby-syntax-propertize-function.  Since the value of this regexp
is looked up at runtime now, we should be able to turn
`ruby-syntax-methods-before-regexp' into a defcustom later.
(ruby-syntax-propertize-function): Split regexp matching into two
parts, for opening and closing slashes.  That allows us to skip
over string interpolations and support multiline regexps.
Don't call `ruby-syntax-propertize-expansions', instead use another rule
for them, which calls `ruby-syntax-propertize-expansion'.
(ruby-syntax-propertize-expansions): Move `remove-text-properties'
call to `ruby-syntax-propertize-function'.
(ruby-syntax-propertize-expansion): Extracted from
`ruby-syntax-propertize-expansions'.  Handles one expansion.
(ruby-syntax-propertize-heredoc): Explicitly call
`ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-percent-literal): Leave point right after
the percent symbol, so that the expression expansion rule can
propertize the contents.

* test/automated/ruby-mode-tests.el (ruby-heredoc-highlights-interpolations)
(ruby-regexp-skips-over-interpolation)
(ruby-regexp-continues-till-end-when-unclosed)
(ruby-regexp-can-be-multiline)
(ruby-interpolation-inside-percent-literal): New tests.

* test/indent/ruby.rb: Add multiline regexp example.

11 years ago* lisp/man.el (Man-default-man-entry): Remove `-' from the end of the default value.
Juri Linkov [Sat, 18 May 2013 23:18:16 +0000 (02:18 +0300)]
* lisp/man.el (Man-default-man-entry): Remove `-' from the end of the default value.

Fixes: debbugs:14400

11 years agocomint-password-prompt-regexp tweak
Glenn Morris [Sat, 18 May 2013 19:38:35 +0000 (12:38 -0700)]
comint-password-prompt-regexp tweak

Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00401.html

* lisp/comint.el (comint-password-prompt-regexp):
Allow "password for XXX" where XXX contains colons (eg https://...).

11 years agoAdd new files in nt/ to make-dist.
Eli Zaretskii [Sat, 18 May 2013 12:04:40 +0000 (15:04 +0300)]
Add new files in nt/ to make-dist.

 make-dist (files): Add nt/msysconfig.sh, nt/mingw-cfg.site,
 nt/epaths.nt, and nt/INSTALL.MSYS.

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

11 years agoSpelling fixes.
Paul Eggert [Sat, 18 May 2013 07:17:03 +0000 (00:17 -0700)]
Spelling fixes.

11 years agoPort --enable-gcc-warnings to clang.
Paul Eggert [Sat, 18 May 2013 05:32:17 +0000 (22:32 -0700)]
Port --enable-gcc-warnings to clang.

* configure.ac (nw): Remove obsolescent warnings.
These aren't needed for clang, or for gcc for that matter.
(emacs_cv_clang): New var, which tests for clang.
Omit warnings that clang is too picky about.
(GLIB_DISABLE_DEPRECATION_WARNINGS): Define this;
needed for Ubuntu 13.04 + clang + --enable-gcc-warnings.
* lib-src/etags.c: Omit unnecessary forward decls.
(print_version, print_help): Declare _Noreturn.
* lib-src/pop.c (socket_connection) [HAVE_GETADDRINFO]: Simplify.
* src/bytecode.c (exec_byte_code):
* src/regex.c:
Redo diagnostic pragmas to pacify clang, too.
* src/dbusbind.c (xd_retrieve_arg): Do not use uninitialized variable.
* src/editfns.c (Fencode_time):
* src/fileio.c (file_accessible_directory_p):
* src/font.c (font_unparse_xlfd):
Use '&"string"[index]' instead of '"string" + (index)'.
* src/undo.c (user_error): Remove; unused.

11 years ago* make-dist (files): Add nt/Makefile.in, nt/gnulib.mk.
Paul Eggert [Sat, 18 May 2013 05:21:24 +0000 (22:21 -0700)]
* make-dist (files): Add nt/Makefile.in, nt/gnulib.mk.

Otherwise, 'configure; make' fails on non-Windows builds.

11 years agoTeach inferior-octave-startup to handle Octave > 3.7
Leo Liu [Sat, 18 May 2013 03:17:35 +0000 (11:17 +0800)]
Teach inferior-octave-startup to handle Octave > 3.7

11 years ago* progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR
Leo Liu [Sat, 18 May 2013 01:17:50 +0000 (09:17 +0800)]
* progmodes/octave.el (inferior-octave-startup): Use OCTAVE_SRCDIR
instead.
(octave-source-directories): Don't check process.
(octave-source-directories, octave-find-definition): Doc fix.

11 years ago* lisp/gnus/message.el (message-mode): Use message-mode-abbrev-table,
Glenn Morris [Sat, 18 May 2013 00:30:49 +0000 (20:30 -0400)]
* lisp/gnus/message.el (message-mode): Use message-mode-abbrev-table,
with text-mode-abbrev-table as parent.  (Bug#14413)

11 years ago* vhdl-mode.el (vhdl-mode-map-init): Remove backspace/delete bindings.
Glenn Morris [Sat, 18 May 2013 00:25:02 +0000 (20:25 -0400)]
* vhdl-mode.el (vhdl-mode-map-init): Remove backspace/delete bindings.
(Bug#14392)

11 years ago* lisp/cus-dep.el (custom-make-dependencies): Sort the output.
Glenn Morris [Sat, 18 May 2013 00:22:56 +0000 (20:22 -0400)]
* lisp/cus-dep.el (custom-make-dependencies): Sort the output.
(custom-versions-load-alist): Convert comment to doc.

11 years agoFix typos in previous subword.el change
Glenn Morris [Fri, 17 May 2013 23:18:15 +0000 (19:18 -0400)]
Fix typos in previous subword.el change

11 years ago* newcomment.el (comment-search-backward): Stricter in finding
Leo Liu [Fri, 17 May 2013 22:46:10 +0000 (06:46 +0800)]
* newcomment.el (comment-search-backward): Stricter in finding
comment start.

* progmodes/octave.el (octave-comment-start): Remove the SPC char.
(octave-comment-start-skip): Properly anchored.

Fixes: debbugs:14303

11 years agoSupport invocation of un-installed runemacs.exe.
Eli Zaretskii [Fri, 17 May 2013 09:36:54 +0000 (12:36 +0300)]
Support invocation of un-installed runemacs.exe.

 nt/runemacs.c (WinMain): Support invocation of un-installed
 nt/runemacs.exe, by looking for src/emacs.exe.

11 years agoSupport invocation of un-installed runemacs.exe.
Eli Zaretskii [Fri, 17 May 2013 09:35:23 +0000 (12:35 +0300)]
Support invocation of un-installed runemacs.exe.

11 years ago* emacs-lisp/smie.el (smie-highlight-matching-block-mode): Clean
Leo Liu [Fri, 17 May 2013 04:33:12 +0000 (12:33 +0800)]
* emacs-lisp/smie.el (smie-highlight-matching-block-mode): Clean
up when turned off.
(smie--highlight-matching-block-overlay): No longer buffer-local.
(smie-highlight-matching-block): Adjust.

Fixes: debbugs:14395

11 years agoDoc string fix for "nanoseconds".
Paul Eggert [Fri, 17 May 2013 04:09:16 +0000 (21:09 -0700)]
Doc string fix for "nanoseconds".

* emacs-lisp/timer.el (timer-relative-time, timer-inc-time):
Fix doc string typo that had "nanoseconds" instead of "microseconds".

Fixes: debbugs:14406

11 years ago* calc/calc-units.el (math-extract-units): Preserve powers of units.
Jay Belanger [Fri, 17 May 2013 02:57:09 +0000 (21:57 -0500)]
* calc/calc-units.el (math-extract-units): Preserve powers of units.

11 years ago* subr.el (delete-consecutive-dups): New function.
Leo Liu [Fri, 17 May 2013 02:43:41 +0000 (10:43 +0800)]
* subr.el (delete-consecutive-dups): New function.
* ido.el (ido-set-matches-1): Use it.
* progmodes/octave.el (inferior-octave-completion-table): Use it.
* ido.el (ido-remove-consecutive-dups): Remove.

11 years ago* lisp/progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re)
Stefan Monnier [Fri, 17 May 2013 00:36:33 +0000 (20:36 -0400)]
* lisp/progmodes/f90.el (f90-keywords-re, f90-keywords-level-3-re)
(f90-hpf-keywords-re, f90-constants-re): Use \\_< rather than
regexp-opt's `words'.

11 years agolisp/gnus/message.el (message-expand-group): Decode group names
Katsumi Yamaoka [Thu, 16 May 2013 23:29:10 +0000 (23:29 +0000)]
lisp/gnus/message.el (message-expand-group): Decode group names

11 years ago* emacs-lisp/smie.el (smie-matching-block-highlight): New face.
Leo Liu [Thu, 16 May 2013 22:58:58 +0000 (06:58 +0800)]
* emacs-lisp/smie.el (smie-matching-block-highlight): New face.
(smie--highlight-matching-block-overlay)
(smie--highlight-matching-block-lastpos)
(smie--highlight-matching-block-timer): New variables.
(smie-highlight-matching-block): New function.
(smie-highlight-matching-block-mode): New minor mode.
(smie-setup): Conditionally enable smie-blink-matching-open.

Fixes: debbugs:14395

11 years agognus-notifications.el (gnus-notifications-notify): Use photo-file as app-icon
Julien Danjou [Thu, 16 May 2013 22:31:47 +0000 (22:31 +0000)]
gnus-notifications.el (gnus-notifications-notify): Use photo-file as app-icon

11 years agoDocument arguments of insert_1_both.
Eli Zaretskii [Thu, 16 May 2013 19:15:32 +0000 (22:15 +0300)]
Document arguments of insert_1_both.

11 years agoFix bug #14408 with updating *Messages* display.
Eli Zaretskii [Thu, 16 May 2013 18:33:27 +0000 (21:33 +0300)]
Fix bug #14408 with updating *Messages* display.

 src/xdisp.c (message_dolog): If the *Messages* buffer is shown in
 some window, increment windows_or_buffers_changed, so that
 *Messages* display in that window is updated.

11 years agoDefine SIZE_MAX for MSVC, part of bug #14409.
Eli Zaretskii [Thu, 16 May 2013 17:31:25 +0000 (20:31 +0300)]
Define SIZE_MAX for MSVC, part of bug #14409.

 nt/inc/stdint.h (SIZE_MAX) [!__GNUC__]: Define.

11 years agoGive recipe in nt/INSTALL.MSYS to uninstall msys-texinfo.
Eli Zaretskii [Thu, 16 May 2013 17:14:21 +0000 (20:14 +0300)]
Give recipe in nt/INSTALL.MSYS to uninstall msys-texinfo.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 16 May 2013 16:37:05 +0000 (12:37 -0400)]
Auto-commit of generated files.

11 years agoSync with upstream verilog-mode r840.
Wilson Snyder [Thu, 16 May 2013 16:11:38 +0000 (09:11 -0700)]
Sync with upstream verilog-mode r840.

* lisp/progmodes/verilog-mode.el (verilog-mode-version)
(verilog-mode-release-date): Update.
(verilog-auto-lineup, verilog-auto-reset): Doc fixes.
(verilog-sig-tieoff): Fix string error on
AUTORESET with colon define, bug594.  Reported by Andrew Hou.
(verilog-read-decls): Fix parameters confusing
AUTOINST interfaces, bug565.  Reported by Leith Johnson.

11 years agoFix a typo in nt/INSTALL.MSYS.
Eli Zaretskii [Thu, 16 May 2013 15:35:59 +0000 (18:35 +0300)]
Fix a typo in nt/INSTALL.MSYS.

11 years agoSupport building Emacs on MS-Windows using the Posix configury.
Eli Zaretskii [Thu, 16 May 2013 12:48:54 +0000 (15:48 +0300)]
Support building Emacs on MS-Windows using the Posix configury.

 lib/Makefile.am: If building for MS-Windows, include
 nt/gnulib.mk instead of lib/gnulib.mk.
 configure.ac: Adapt to MSYS build on MS-Windows.
 Makefile.in (NTDIR): New variable, for the MSYS build on
 MS-Windows.
 (SUBDIR): Add $(NTDIR).
 (.PHONY): Add epaths-force-w32.
 (msys_to_w32): New variable.
 (epaths-force-w32, install-nt, uninstall-nt): New targets.
 (lib-src src): Add $(NTLIB) to prerequisites.
 (lib lib-src lisp leim nt): Add 'nt'.
 (config.status): Use $(CFG).
 (.PHONY): Add install-$(NTDIR) and uninstall-$(NTDIR).
 (install, install-arch-dep): Add install-$(NTDIR).
 (uninstall): Depend on uninstall-$(NTDIR).
 (mostlyclean, clean, distclean, bootstrap-clean): Add 'nt'.
 * GNUmakefile (CFG): New variable, uses mingw-cfg.site as
 CONFIG_SITE for the MSYS build on MS-Windows.
 (Makefile): Use $(CFG).
 .bzrignore: Ignore *.res, *.tmp, and *.map.  Remove
 src/emacs.res.

 etc/NEWS: Advertise the MSYS build on MS-Windows.

 leim/Makefile.in (leim-list.el, check-declare): Use reveal-filename.

 lib-src/update-game-score.c [WINDOWSNT]: Include "ntlib.h".
 lib-src/ntlib.h (sleep): Update prototype.
 (geteuid): Add prototype.
 lib-src/ntlib.c (sleep): Now returns an unsigned value.
 (getgid): New function.
 lib-src/Makefile.in (CLIENTW, LIB_WSOCK32, LIBS_ECLIENT, NTLIB)
 (CLIENTRES, WINDRES, NTINC, NTDEPS): New variables.
 (INSTALLABLES): Add $(CLIENTW).
 (LIBS_MOVE): Use $(LIB_WSOCK32).
 ($(DESTDIR)${archlibdir}): Use $(EXEEXT) on update-game-score.
 (test-distrib${EXEEXT}): Use $(EXEEXT) on test-distrib.
 (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
 (emacsclient${EXEEXT}, hexl${EXEEXT}, update-game-score${EXEEXT}):
 Add $(NTLIB) to prerequisites.  Use $(EXEEXT).
 (pop.o): Add pop.h to prerequisites.
 (emacsclientw${EXEEXT}, ntlib.o): New targets.
 (emacsclient.res): New target.

 lisp/subr.el (reveal-filename): New function.
 lisp/loadup.el: Compute Emacs executable versions on MS-Windows,
 where executables have the .exe extension.  Add a hard link
 emacs-XX.YY.ZZ.exe on MS-Windows.
 lisp/Makefile.in (XARGS_LIMIT): New variable.
 (custom-deps, finder-data, autoloads)
 ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el)
 ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el)
 ($(CAL_DIR)/hol-loaddefs.el): Use reveal-filename.
 (compile-main): Limit xargs according to $(XARGS_LIMIT).

 nt/msysconfig.sh: New file.
 nt/mingw-cfg.site: New file.
 nt/makefile.w32-in (LOCAL_FLAGS): Add -DOLD_PATHS=1.
 nt/inc/unistd.h: Include pwd.h and sys/types.h.
 nt/inc/sys/time.h (_TIMEVAL_DEFINED, timerisset, timercmp)
 (timerclear): Define.
 (gettimeofday): Adjust signature to be Posix compatible, by using
 the 'restrict' keyword.
 nt/inc/sys/stat.h (UTIME_NOW, UTIME_OMIT): Define.
 (struct _stat, struct _stati64): Define.
 nt/inc/sys/socket.h (timeval): Define only for MSVC.
 (FD_SET, FD_CLR, FD_ISSET, fd_set): Redefine only if
 EMACS_CONFIG_H is defined.
 (timeval): Undefine only for MSVC.
 nt/inc/ms-w32.h (HAVE___BUILTIN_UNWIND_INIT, restrict)
 (HAVE_WINDOW_SYSTEM, HAVE_MENUS, EMACS_CONFIGURATION)
 (EMACS_CONFIG_OPTIONS, HAVE_LONG_LONG_INT)
 (HAVE_UNSIGNED_LONG_LONG_INT): Define only if not already defined.
 (fileno): Move definition after including stdio.h.
 (sigset_t): Guard typedef by _W64.
 nt/gnulib.mk: New file.
 nt/epaths.nt: New file.
 nt/addpm.c [!OLD_PATHS]: Include src/epaths.h, instead of having a
 copy of the file names there.
 <env_vars> [!OLD_PATHS]: Use macros from epaths.h instead of
 literal strings.
 nt/Makefile.in: New file.
 nt/INSTALL.MSYS: New file.
 nt/INSTALL: Mention INSTALL.MSYS.

 src/w32.c: Include epaths.h.
 (init_environment): Use cmdproxy.exe without leading directories.
 Support emacs.exe in src; point SHELL to cmdproxy in ../nt in that
 case.
 (gettimeofday): Adjust signature and return value to Posix
 expectations.
 src/unexw32.c (open_output_file): Delete the existing emacs.exe
 before creating it, to break the hard link to the versioned
 executable.
 src/Makefile.in (EMACS_MANIFEST, CM_OBJ, TEMACS_POST_LINK)
 (ADDSECTION, EMACS_HEAPSIZE, MINGW_TEMACS_POST_LINK)
 (FIRSTFILE_OBJ): New variables.
 (W32_RES): Rename to EMACSRES.  All users changed.
 (base_obj): Use $(CM_OBJ).
 (ALLOBJS): Use $(FIRSTFILE_OBJ).
 (emacs$(EXEEXT)): Depend on $(ADDSECTION).
 (temacs$(EXEEXT)): Use $(TEMACS_POST_LINK), and move
 $(W32_RES_LINK) before $(LIBES).
 (emacs.res): Depend on $(EMACS_MANIFEST).  Put emacs.rc in nt.

11 years agoAnnounce the MSYS build in etc/NEWS.
Eli Zaretskii [Thu, 16 May 2013 11:23:39 +0000 (14:23 +0300)]
Announce the MSYS build in etc/NEWS.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 16 May 2013 10:17:34 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoFix comments to reveal-filename.
Eli Zaretskii [Thu, 16 May 2013 10:14:30 +0000 (13:14 +0300)]
Fix comments to reveal-filename.

11 years agoMerge from trunk.
Eli Zaretskii [Thu, 16 May 2013 09:58:56 +0000 (12:58 +0300)]
Merge from trunk.

11 years agoMinor tweaks in comments to scripts and INSTALL.MSYS.
Eli Zaretskii [Thu, 16 May 2013 09:44:44 +0000 (12:44 +0300)]
Minor tweaks in comments to scripts and INSTALL.MSYS.

11 years ago* progmodes/octave.el (octave-indent-defun): Mark obsolete.
Leo Liu [Thu, 16 May 2013 08:52:02 +0000 (16:52 +0800)]
* progmodes/octave.el (octave-indent-defun): Mark obsolete.
(octave-mode-menu, octave-mode-map): Remove its uses.

11 years agoAdd some VHDL NEWS entries.
Glenn Morris [Thu, 16 May 2013 07:59:01 +0000 (00:59 -0700)]
Add some VHDL NEWS entries.

11 years agoSync with upstream vhdl mode v3.34.2.
Reto Zimmermann [Thu, 16 May 2013 07:56:46 +0000 (00:56 -0700)]
Sync with upstream vhdl mode v3.34.2.

* lisp/progmodes/vhdl-mode.el: Use `push' throughout.
(vhdl-version, vhdl-time-stamp, vhdl-doc-release-notes): Update.
(vhdl-compiler-alist): Replace "\t\n" by "\\t\\n".
Add IBM & Quartus compiler.  Enhance entry for ADVance MS compiler.
(vhdl-actual-generic-name): New option to derive actual generic name.
(vhdl-port-paste-signals): Replace formal by actual generics.
(vhdl-beautify): New name for old group vhdl-align.  Update users.
(vhdl-beautify-options): New option.
(vhdl-last-input-event): New compat alias.  Use throughout.
(vhdl-goto-line): Replace user level function `goto-line'.
(vhdl-mode-map): Add bindings for vhdl-fix-statement-region,
vhdl-fix-statement-buffer.
(vhdl-create-mode-menu): Add some entries.
(vhdl-align-region-groups): Respect vhdl-beautify-options.
(vhdl-align-inline-comment-region-1): Handle "--" inside string.
(vhdl-fixup-whitespace-region): Handle symbols at EOL.
(vhdl-fix-statement-region, vhdl-fix-statement-buffer): New commands,
to force statements on one line.
(vhdl-remove-trailing-spaces-region):
New, split from vhdl-remove-trailing-spaces.
(vhdl-beautify-region): Fix statements, trailing spaces, ^M character.
Respect vhdl-beautify-options.
(vhdl-update-sensitivity-list-buffer): If non-interactive save buffer.
(vhdl-update-sensitivity-list): Not add with index if exists without.
Not include array index with signal.  Ignore keywords in comments.
(vhdl-get-visible-signals): Regexp tweaks.
(vhdl-template-component-inst): Handle empty library.
(vhdl-template-type): Add template for 'enum' type.
(vhdl-port-paste-generic-map, vhdl-port-paste-constants):
Use vhdl-replace-string.
(vhdl-port-paste-signals): Use vhdl-prepare-search-1.
(vhdl-speedbar-mode-map): Rename from vhdl-speedbar-key-map.
(vhdl-speedbar-initialize): Update for above name change.
(vhdl-compose-wire-components): Fix in handling of constants.
(vhdl-error-regexp-emacs-alist): New variable.
(vhdl-error-regexp-add-emacs): New function;
adds support for new compile.el (Emacs 22+)
(vhdl-generate-makefile-1): Change target order for single lib. units.
Allow use of absolute file names.

11 years agoMerge from gnulib.
Paul Eggert [Thu, 16 May 2013 07:10:39 +0000 (00:10 -0700)]
Merge from gnulib.

2013-05-15 manywarnings: update for GCC 4.8.0
2013-05-15 stdio: use __REDIRECT for fwrite, fwrite_unlocked
2013-05-15 sig2str, stdio, warnings: port to clang

11 years agoRestore qacl module in nt/gnulib.mk except qset-acl.c.
Eli Zaretskii [Thu, 16 May 2013 05:51:39 +0000 (08:51 +0300)]
Restore qacl module in nt/gnulib.mk except  qset-acl.c.

11 years ago* simple.el (prog-indent-sexp): Indent enclosing defun.
Leo Liu [Thu, 16 May 2013 03:41:52 +0000 (11:41 +0800)]
* simple.el (prog-indent-sexp): Indent enclosing defun.

11 years agoAdd some cus-test.el stuff for custom groups
Glenn Morris [Thu, 16 May 2013 00:20:34 +0000 (20:20 -0400)]
Add some cus-test.el stuff for custom groups

* admin/cus-test.el (cus-test-cus-load-groups): New function.
(cus-test-get-options): Add option to return groups.
(cus-test-noloads): Also check custom groups.

11 years agoMisc custom group fixes
Glenn Morris [Wed, 15 May 2013 23:55:41 +0000 (19:55 -0400)]
Misc custom group fixes

* cus-start.el (show-trailing-whitespace): Move to editing basics.
* faces.el (trailing-whitespace): Don't use whitespace-faces group.
* obsolete/old-whitespace.el (whitespace-faces): Remove group.
(whitespace-highlight): Move to whitespace group.

* comint.el (comint-source):
* pcmpl-linux.el (pcmpl-linux):
* shell.el (shell-faces):
* eshell/esh-opt.el (eshell-opt):
* international/ccl.el (ccl): Remove empty custom groups.

* completion.el (dynamic-completion-mode):
* jit-lock.el (jit-lock-debug-mode):
* minibuffer.el (completion-in-region-mode):
* type-break.el (type-break-mode-line-message-mode)
(type-break-query-mode):
* emulation/tpu-edt.el (tpu-edt-mode):
* progmodes/subword.el (global-subword-mode, global-superword-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
* term/vt100.el (vt100-wide-mode): Specify explicit :group.

* term/xterm.el (xterm): Change parent group to terminals.

* master.el (master): Remove empty custom group.
(master-mode): Remove unused :group argument.
* textmodes/refill.el (refill): Remove empty custom group.
(refill-mode): Remove unused :group argument.

* textmodes/rst.el (rst-compile-toolsets): Use rst-compile group.

* cedet/semantic/symref/list.el (semantic-symref-auto-expand-results)
(semantic-symref-results-mode-hook)
(semantic-symref-results-summary-function): Fix :group.

* erc/erc-list.el (erc-list):
* erc/erc-menu.el (erc-menu):
* erc/erc-ring.el (erc-ring): Define custom groups, for define-erc-module.

* gnus/shr-color.el (shr-color-visible-luminance-min)
(shr-color-visible-distance-min): Use shr-color group.

* url/url-news.el (url-news): Remove empty custom group.

11 years ago* lisp/cus-dep.el (custom-make-dependencies): Add a fallback method
Glenn Morris [Wed, 15 May 2013 23:35:10 +0000 (19:35 -0400)]
* lisp/cus-dep.el (custom-make-dependencies): Add a fallback method
for getting :group.

11 years agocustom-make-dependencies tweaks
Glenn Morris [Wed, 15 May 2013 23:31:16 +0000 (19:31 -0400)]
custom-make-dependencies tweaks

* lisp/cus-dep.el (custom-make-dependencies): Ignore dotfiles (dir-locals).
Don't mistakenly ignore files whose basenames match a basename
from preloaded-file-list (eg cedet/ede/simple.el).

11 years ago* lisp/isearch.el (isearch-char-by-name): Rename from
Juri Linkov [Wed, 15 May 2013 23:21:01 +0000 (02:21 +0300)]
* lisp/isearch.el (isearch-char-by-name): Rename from
`isearch-insert-char-by-name'.  Doc fix.
(isearch-forward): Mention `isearch-char-by-name' in
the docstring.

Fixes: debbugs:13348

11 years ago* lisp/isearch.el (minibuffer-local-isearch-map): Bind "\r" to `exit-minibuffer'
Juri Linkov [Wed, 15 May 2013 23:14:18 +0000 (02:14 +0300)]
* lisp/isearch.el (minibuffer-local-isearch-map): Bind "\r" to `exit-minibuffer'
instead of `isearch-nonincremental-exit-minibuffer'.
(isearch-edit-string): Remove mention of
`isearch-nonincremental-exit-minibuffer' from docstring.
(isearch-nonincremental-exit-minibuffer): Mark as obsolete.
(isearch-forward-exit-minibuffer)
(isearch-reverse-exit-minibuffer): Add docstring.  (Bug#13348)

* doc/emacs/search.texi (Repeat Isearch): Mention key `RET' to finish
editing the string.

11 years agoUse just DOC instead of DOC-nn.mm.
Stefan Monnier [Wed, 15 May 2013 20:12:53 +0000 (16:12 -0400)]
Use just DOC instead of DOC-nn.mm.
* lisp/loadup.el: Just use unversioned DOC.
* Makefile.in (install-doc): DOC file is not version specific any more.
* .bzrignore: Don't ignore DOC-* any more.
* admin/quick-install-emacs: Don't prune DOC-* files a any more.
* doc/lispref/loading.texi (Autoload):
* doc/lispref/help.texi (Documentation Basics, Accessing Documentation)
(Accessing Documentation, Accessing Documentation): DOC-* is now DOC.
* etc/.gitignore: Don't ignore DOC-* any more.
* lib-src/makefile.w32-in ($(DOC)): Use DOC rather than DOC-X.
* msdos/sed1x.inp: Don't rewrite DOC any more.
* nt/makefile.w32-in (clean, top-distclean): DOC-X doesn't exist any more.
* src/Makefile.in (bootstrap-clean): DOC-* doesn't exist any more.
* src/makefile.w32-in (DOC): Use just "DOC".

11 years ago* src/process.c: Export default filters and sentinels to Elisp.
Stefan Monnier [Wed, 15 May 2013 18:54:49 +0000 (14:54 -0400)]
* src/process.c: Export default filters and sentinels to Elisp.
(Qinternal_default_process_sentinel, Qinternal_default_process_filter):
New constants.
(pset_filter, pset_sentinel, make_process, Fset_process_filter)
(Fset_process_sentinel, Fformat_network_address):
Default to them instead of nil.
(server_accept_connection): Sentinels can't be nil any more.
(read_and_dispose_of_process_output): New function, extracted from
read_process_output.
(read_process_output): Use it; filters can't be nil.
(Finternal_default_process_filter): New function, extracted from
read_process_output.
(exec_sentinel_unwind): Remove function.
(exec_sentinel): Don't zilch sentinel while running.
(status_notify): Sentinels can't be nil.
(Finternal_default_process_sentinel): New function extracted from
status_notify.
(setup_process_coding_systems): Default filter is not nil any more.
(syms_of_process): Export new Elisp functions and initialize
new constants.
* src/lisp.h (make_lisp_proc): New function.

11 years ago* lisp/nxml/nxml-mode.el: Treat unclosed <[[, <?, comment, and other
Stefan Monnier [Wed, 15 May 2013 18:31:51 +0000 (14:31 -0400)]
* lisp/nxml/nxml-mode.el: Treat unclosed <[[, <?, comment, and other
literals as extending to EOB.
(nxml-last-fontify-end): Remove unused variable.
(nxml-after-change1): Use with-silent-modifications.
(nxml-extend-after-change-region): Simplify.
(nxml-extend-after-change-region1): Remove function.
(nxml-after-change1): Don't adjust for dependent regions.
(nxml-fontify-matcher): Simplify.
* lisp/nxml/xmltok.el (xmltok-dependent-regions): Remove variable.
(xmltok-add-dependent): Remove function.
(xmltok-scan-after-lt, xmltok-scan-after-processing-instruction-open)
(xmltok-scan-after-comment-open, xmltok-scan-prolog-literal)
(xmltok-scan-prolog-after-processing-instruction-open): Treat
unclosed <[[, <?, comment, and other literals as extending to EOB.
* lisp/nxml/rng-valid.el (rng-mark-xmltok-dependent-regions)
(rng-mark-xmltok-dependent-region, rng-dependent-region-changed):
Remove functions.
(rng-do-some-validation-1): Don't mark dependent regions.
* lisp/nxml/nxml-rap.el (nxml-adjust-start-for-dependent-regions)
(nxml-mark-parse-dependent-regions, nxml-mark-parse-dependent-region)
(nxml-clear-dependent-regions): Remove functions.
(nxml-scan-after-change, nxml-scan-prolog, nxml-tokenize-forward)
(nxml-ensure-scan-up-to-date):
Don't clear&mark dependent regions.

11 years agoFixed nt/gnulib.mk to compile lib/acl-errno-valid.c.
Eli Zaretskii [Wed, 15 May 2013 17:41:12 +0000 (20:41 +0300)]
Fixed nt/gnulib.mk to compile lib/acl-errno-valid.c.

11 years agoFixed nt/mingw-cfg.site to pass the configure step.
Eli Zaretskii [Wed, 15 May 2013 17:06:26 +0000 (20:06 +0300)]
Fixed nt/mingw-cfg.site to pass the configure step.

11 years agoMerge from trunk, configury not fixed yet.
Eli Zaretskii [Wed, 15 May 2013 16:15:07 +0000 (19:15 +0300)]
Merge from trunk, configury not fixed yet.

11 years ago* progmodes/octave.el (octave-goto-function-definition): Improve
Leo Liu [Wed, 15 May 2013 08:17:22 +0000 (16:17 +0800)]
* progmodes/octave.el (octave-goto-function-definition): Improve
and fix callers.

11 years ago* lisp/emacs-lisp/cl-extra.el (cl-getf): Return the proper value in
Stefan Monnier [Wed, 15 May 2013 02:00:07 +0000 (22:00 -0400)]
* lisp/emacs-lisp/cl-extra.el (cl-getf): Return the proper value in
the setter.

Fixes: debbugs:14387

11 years ago* lisp/progmodes/f90.el (f90-blocks-re): Include the terminating \> in the
Stefan Monnier [Wed, 15 May 2013 00:52:07 +0000 (20:52 -0400)]
* lisp/progmodes/f90.el (f90-blocks-re): Include the terminating \> in the
surrounding group.
* src/regex.c (regex_compile) [\=, \>, \<]: Don't forget to set laststart.

Fixes: debbugs:14402

11 years ago* lisp/subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil.
Juri Linkov [Tue, 14 May 2013 23:38:14 +0000 (02:38 +0300)]
* lisp/subr.el (find-tag-default-as-regexp): Return nil if `tag' is nil.

Fixes: debbugs:14390

11 years ago* f90.el (f90-imenu-generic-expression): Fix typo in 2013-05-08 change.
Glenn Morris [Tue, 14 May 2013 19:29:35 +0000 (15:29 -0400)]
* f90.el (f90-imenu-generic-expression): Fix typo in 2013-05-08 change.
(Bug#14402)

11 years ago* progmodes/gdb-mi.el (gdb-running, gdb-starting): Remove
Jean-Philippe Gravel [Tue, 14 May 2013 18:34:13 +0000 (14:34 -0400)]
* progmodes/gdb-mi.el (gdb-running, gdb-starting): Remove
signals for which replies are never received.

11 years agoRecommend to use MinGW Texinfo.
Eli Zaretskii [Tue, 14 May 2013 18:14:23 +0000 (21:14 +0300)]
Recommend to use MinGW Texinfo.

11 years ago* progmodes/gdb-mi.el: Fix non-responsive gud commands (bug#13845)
Jean-Philippe Gravel [Tue, 14 May 2013 18:13:31 +0000 (14:13 -0400)]
* progmodes/gdb-mi.el: Fix non-responsive gud commands (bug#13845)
(gdb-handler-alist, gdb-handler-number): Remove variables.
(gdb-handler-list): New variable.
(gdb-add-handler, gdb-delete-handler, gdb-get-handler-function)
(gdb-pending-handler-p, gdb-handle-reply)
(gdb-remove-all-pending-triggers): New functions.
(gdb-discard-unordered-replies): New defcustom.
(gdb-handler): New defstruct.
(gdb-wait-for-pending): Fix invalid backquote.  Use gdb-handler-list.
instead of gdb-pending-triggers.  Update docstring.
(gdb-init-1): Remove dead variables.  Initialize gdb-handler-list.
(gdb-speedbar-update, gdb-speedbar-timer-fn, gdb-var-update)
(gdb-var-update-handler, def-gdb-auto-update-trigger)
(def-gdb-auto-update-handler, gdb-get-changed-registers)
(gdb-changed-registers-handler, gdb-get-main-selected-frame)
(gdb-frame-handler): Pending triggers are now automatically managed.
(def-gdb-trigger-and-handler, def-gdb-auto-update-handler):
Remove argument.
(gdb-input): Automatically handles pending triggers.  Update docstring.
(gdb-resync): Replace gdb-pending-triggers by gdb-handler-list.
(gdb-thread-exited, gdb-thread-selected, gdb-register-names-handler):
Update comments.
(gdb-done-or-error): Now use gdb-handle-reply.

11 years ago* progmodes/gdb-mi.el (gdb-input): Include token numbers in
Jean-Philippe Gravel [Sun, 12 May 2013 13:38:42 +0000 (09:38 -0400)]
* progmodes/gdb-mi.el (gdb-input): Include token numbers in
gdb-debug-log.

11 years ago* subr.el (user-emacs-directory-warning): New option.
Glenn Morris [Tue, 14 May 2013 16:01:16 +0000 (09:01 -0700)]
* subr.el (user-emacs-directory-warning): New option.
(locate-user-emacs-file): Handle non-accessible .emacs.d.

Not in NEWS, because you only need to know about this if you encounter
it in the wild.

Fixes: debbugs:13930

11 years agoAnother attempt to solve bug #14062 with assertion violations on MS-Windows.
Eli Zaretskii [Tue, 14 May 2013 14:09:43 +0000 (17:09 +0300)]
Another attempt to solve bug #14062 with assertion violations on MS-Windows.

 src/w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
 unless we know that the window w is a leaf window.  Another
 attempt at solving bug#14062.

11 years ago* progmodes/octave.el (octave-font-lock-texinfo-comment):
Leo Liu [Tue, 14 May 2013 10:11:56 +0000 (18:11 +0800)]
* progmodes/octave.el (octave-font-lock-texinfo-comment):
Fix invalid search bound error: wrong side of point.

11 years ago* nsfont.m (ns_spec_to_descriptor): Retain and autorelease fdesc.
Jan Djärv [Tue, 14 May 2013 09:34:16 +0000 (11:34 +0200)]
* nsfont.m (ns_spec_to_descriptor): Retain and autorelease fdesc.

Fixes: debbugs:14375

11 years ago* lisp/emacs-lisp/tabulated-list.el: Set a version number.
Yann Hodique [Tue, 14 May 2013 07:35:21 +0000 (00:35 -0700)]
* lisp/emacs-lisp/tabulated-list.el: Set a version number.
* lisp/emacs-lisp/package.el: Explicitly depend on a tabulated-list version.

Fixes: debbugs:14137

11 years ago* progmodes/octave.el (octave-font-lock-keywords): Fix error
Leo Liu [Tue, 14 May 2013 05:19:29 +0000 (13:19 +0800)]
* progmodes/octave.el (octave-font-lock-keywords): Fix error
during redisplay.
(octave-goto-function-definition, octave-find-definition): Minor tweaks.

11 years ago* lisp/progmodes/flymake.el (flymake-xml-program): New option.
Glenn Morris [Tue, 14 May 2013 02:42:17 +0000 (22:42 -0400)]
* lisp/progmodes/flymake.el (flymake-xml-program): New option.
(flymake-xml-init): Use it.

11 years agoMore cus-test.el tweaks
Glenn Morris [Tue, 14 May 2013 02:12:19 +0000 (22:12 -0400)]
More cus-test.el tweaks

* admin/cus-test.el (cus-test-get-lisp-files): Ignore obsolete/.
(cus-test-libs): Fix let-binding of default-directory.
(cus-test-noloads): Load all libs for the comparison.

11 years ago* ede/simple.el, semantic/java.el: Set generated-autoload-load-name.
Glenn Morris [Tue, 14 May 2013 02:10:23 +0000 (22:10 -0400)]
* ede/simple.el, semantic/java.el: Set generated-autoload-load-name.

11 years ago* lisp/term/xterm.el: Provide a feature.
Glenn Morris [Tue, 14 May 2013 02:08:35 +0000 (22:08 -0400)]
* lisp/term/xterm.el: Provide a feature.

11 years agoMake sup-mouse.el obsolete
Glenn Morris [Tue, 14 May 2013 02:04:02 +0000 (22:04 -0400)]
Make sup-mouse.el obsolete

* doc/emacs/ack.texi (Acknowledgments): Don't mention obsolete sup-mouse.el.

* term/sup-mouse.el: Move to obsolete/.

* etc/NEWS: Mention this.

11 years agoFix typo in previous
Glenn Morris [Mon, 13 May 2013 17:52:59 +0000 (13:52 -0400)]
Fix typo in previous

11 years ago* cus-dep.el (defcustom-mh, defgroup-mh, defface-mh): Add compat aliases
Glenn Morris [Mon, 13 May 2013 16:21:00 +0000 (09:21 -0700)]
* cus-dep.el (defcustom-mh, defgroup-mh, defface-mh): Add compat aliases
as a hack workaround.

Fixes: debbugs:14384

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 13 May 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* progmodes/octave.el (octave-indent-comment): Fix indentation for %!.
Leo Liu [Mon, 13 May 2013 07:24:22 +0000 (15:24 +0800)]
* progmodes/octave.el (octave-indent-comment): Fix indentation for %!.
(octave-comment-start-skip): Include %!.
(octave-mode): Set comment-start-skip to octave-comment-start-skip.

11 years ago* configure.ac (LD_SWITCH_SYSTEM_EMACS): Fix typo in previous change.
Paul Eggert [Mon, 13 May 2013 06:23:08 +0000 (23:23 -0700)]
* configure.ac (LD_SWITCH_SYSTEM_EMACS): Fix typo in previous change.

11 years ago* configure.ac (LD_SWITCH_SYSTEM_TEMACS): OpenBSD needs -fno-pie.
Paul Eggert [Mon, 13 May 2013 03:54:34 +0000 (20:54 -0700)]
* configure.ac (LD_SWITCH_SYSTEM_TEMACS): OpenBSD needs -fno-pie.

Reported privately by Han Boetes <han@boetes.org>.

11 years ago* progmodes/octave.el (octave-mode-map): Bind octave-indent-defun to
Leo Liu [Mon, 13 May 2013 01:36:42 +0000 (09:36 +0800)]
* progmodes/octave.el (octave-mode-map): Bind octave-indent-defun to
C-c C-q instead of C-M-q.

11 years ago* progmodes/octave.el (octave-indent-comment): Fix the indentation
Leo Liu [Mon, 13 May 2013 00:07:18 +0000 (08:07 +0800)]
* progmodes/octave.el (octave-indent-comment): Fix the indentation
of ### or %%%.

11 years ago* image.c (gif_load): Check that subimages fit.
Paul Eggert [Sun, 12 May 2013 19:17:04 +0000 (12:17 -0700)]
* image.c (gif_load): Check that subimages fit.

Fixes: debbugs:14345

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Sun, 12 May 2013 10:22:44 +0000 (06:22 -0400)]
Auto-commit of loaddefs files.

11 years ago* progmodes/octave.el (inferior-octave-startup): Store the value
Leo Liu [Sun, 12 May 2013 04:10:40 +0000 (12:10 +0800)]
* progmodes/octave.el (inferior-octave-startup): Store the value
of __octave_srcdir__ for octave-source-directories.
(inferior-octave-check-process): New function refactored out of
inferior-octave-send-list-and-digest.
(octave-source-directories)
(octave-find-definition-filename-function): New variables.
(octave-source-directories)
(octave-find-definition-default-filename): New functions.
(octave-find-definition): Improve to find functions implemented in C++.

11 years ago* diary-lib.el (diary-outlook-format-1): Don't include dayname in the output.
Glenn Morris [Sun, 12 May 2013 01:34:30 +0000 (18:34 -0700)]
* diary-lib.el (diary-outlook-format-1): Don't include dayname in the output.

Fixes: debbugs:14349

11 years ago* lisp/emacs-lisp/autoload.el (generated-autoload-load-name): Doc fix.
Glenn Morris [Sat, 11 May 2013 23:58:36 +0000 (16:58 -0700)]
* lisp/emacs-lisp/autoload.el (generated-autoload-load-name): Doc fix.

11 years agoSet generated-autoload-load-name in some more cedet files
Glenn Morris [Sat, 11 May 2013 23:55:46 +0000 (16:55 -0700)]
Set generated-autoload-load-name in some more cedet files

There are no autoloads in these files, but there are defcustoms.
See bug#5277.

* ede/project-am.el, semantic/db-ebrowse.el, semantic/grammar.el:
* semantic/sb.el, semantic/bovine/grammar.el, semantic/wisent/comp.el:
* semantic/wisent/grammar.el, semantic/wisent/wisent.el:
* srecode/fields.el: Set generated-autoload-load-name.

11 years ago* cus-dep.el (custom-make-dependencies): Only use safe local variables.
Glenn Morris [Sat, 11 May 2013 23:54:14 +0000 (16:54 -0700)]
* cus-dep.el (custom-make-dependencies): Only use safe local variables.
Treat cc-provide like provide.

11 years agoUse generated-autoload-load-name for cus-load.el.
Kevin Ryde [Sat, 11 May 2013 23:52:27 +0000 (16:52 -0700)]
Use generated-autoload-load-name for cus-load.el.

* lisp/cus-dep.el (custom-make-dependencies):
Use generated-autoload-load-name for the sake of files such
such cedet/semantic/bovine/c.el, where the base file name
is not in load-path.

Fixes: debbugs:5277

11 years agoMake some files provide features
Glenn Morris [Sat, 11 May 2013 23:41:52 +0000 (16:41 -0700)]
Make some files provide features

* dos-vars.el, emacs-lisp/cl-indent.el, emulation/tpu-extras.el:
Provide features.

11 years ago* progmodes/octave.el (octave-indent-comment): Improve.
Leo Liu [Sat, 11 May 2013 13:22:06 +0000 (21:22 +0800)]
* progmodes/octave.el (octave-indent-comment): Improve.
(octave-eldoc-message-style, octave-eldoc-cache): New variables.
(octave-eldoc-function-signatures, octave-eldoc-function): New
functions.
(octave-mode, inferior-octave-mode): Add eldoc support.