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

11 years ago* epa.el (epa-decrypt-file): Take output file name as argument
Richard M. Stallman [Sat, 11 May 2013 13:14:07 +0000 (09:14 -0400)]
* epa.el (epa-decrypt-file): Take output file name as argument
and read it using `interactive'.

11 years ago* progmodes/octave.el (octave-begin-keywords, octave-end-keywords)
Leo Liu [Sat, 11 May 2013 07:39:59 +0000 (15:39 +0800)]
* progmodes/octave.el (octave-begin-keywords, octave-end-keywords)
(octave-reserved-words, octave-smie-bnf-table)
(octave-smie-rules): Add new keywords from Octave 3.6.4.

11 years ago* progmodes/octave.el (octave-indent-comment): New function.
Leo Liu [Sat, 11 May 2013 06:20:10 +0000 (14:20 +0800)]
* progmodes/octave.el (octave-indent-comment): New function.
(octave-mode): Use it in smie-indent-functions.

Fixes: debbugs:14350

11 years ago* progmodes/octave.el (octave-beginning-of-line)
Leo Liu [Sat, 11 May 2013 03:50:34 +0000 (11:50 +0800)]
* progmodes/octave.el (octave-beginning-of-line)
(octave-end-of-line): Check before using up-list because it jumps
out of more syntactic contructs since moving to smie.

11 years agoMore cus-test.el tweaks
Glenn Morris [Sat, 11 May 2013 02:29:57 +0000 (19:29 -0700)]
More cus-test.el tweaks

* admin/cus-test.el (cus-test-libs-noloads): Add a few more files.
(cus-test-load-libs, cus-test-opts):
Add option to load more/all Lisp files.
(cus-test-get-lisp-files): Ignore .*.el files.

11 years agoFix some declarations
Glenn Morris [Sat, 11 May 2013 02:27:28 +0000 (19:27 -0700)]
Fix some declarations

* lisp/faces.el (internal-face-x-get-resource):
* lisp/frame.el (ns-display-monitor-attributes-list):
* lisp/calc/calc-aent.el (math-to-radians-2):
* lisp/cedet/ede/locate.el (cedet-cscope-version-check)
(cedet-cscope-support-for-directory):
* lisp/cedet/semantic/grammar.el (semantic-grammar-wy--install-parser):
* lisp/emacs-lisp/package.el (tar-header-name, tar-header-link-type):
Fix declarations.

11 years agoMake a few libraries loadable in isolation
Glenn Morris [Sat, 11 May 2013 02:25:11 +0000 (19:25 -0700)]
Make a few libraries loadable in isolation

* lisp/calc/calc-menu.el: Make it loadable in isolation.

* lisp/gnus/gnus-vm.el: Make it loadable without VM.
(gnus-vm-make-folder, gnus-summary-save-in-vm): Require 'vm.
(vm-forward-message, vm-reply, vm-mail): Remove unused autoloads.

* lisp/net/eudcb-bbdb.el: Make it loadable without bbdb.
(eudc-bbdb-filter-non-matching-record, eudc-bbdb-extract-phones)
(eudc-bbdb-extract-addresses, eudc-bbdb-format-record-as-result)
(eudc-bbdb-query-internal): Require 'bbdb.

11 years agoMore custom :type fixes
Glenn Morris [Sat, 11 May 2013 02:21:29 +0000 (19:21 -0700)]
More custom :type fixes

* lisp/lpr.el (lpr-headers-switches):
* lisp/emacs-lisp/testcover.el (testcover-compose-functions):
* lisp/cedet/ede/project-am.el (project-am-compile-project-command): Fix :type.

* lisp/progmodes/sql.el (sql-login-params): Fix and improve :type.

11 years ago* lisp/emulation/edt-mapper.el: In batch mode, error rather than hang.
Glenn Morris [Sat, 11 May 2013 02:17:45 +0000 (19:17 -0700)]
* lisp/emulation/edt-mapper.el: In batch mode, error rather than hang.

11 years ago* lisp/term.el (term-set-escape-char): Make it idempotent.
Glenn Morris [Sat, 11 May 2013 02:15:46 +0000 (19:15 -0700)]
* lisp/term.el (term-set-escape-char): Make it idempotent.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Fri, 10 May 2013 10:21:19 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

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

11 years agoAdd option for cus-test.el to load all Lisp files
Glenn Morris [Fri, 10 May 2013 07:31:34 +0000 (00:31 -0700)]
Add option for cus-test.el to load all Lisp files

* admin/cus-test.el (cus-test-libs-noloads): Add some files.
(cus-test-get-lisp-files): New function.
(cus-test-libs): Add option to load more/all Lisp files.

11 years ago* progmodes/octave.el (inferior-octave-completion-table): No
Leo Liu [Fri, 10 May 2013 06:26:42 +0000 (14:26 +0800)]
* progmodes/octave.el (inferior-octave-completion-table): No
longer a function and all uses changed.  Use cache to speed up
completion due to bug#11906.
(octave-beginning-of-defun): Re-write to be more general.

11 years ago* lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix.
Glenn Morris [Fri, 10 May 2013 02:01:12 +0000 (22:01 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-loop): Doc fix.

11 years ago* src/doc.c (get_doc_string): Slightly relax the sanity checking.
Stefan Monnier [Thu, 9 May 2013 18:30:46 +0000 (14:30 -0400)]
* src/doc.c (get_doc_string): Slightly relax the sanity checking.
* src/lread.c (skip_dyn_eof): New function.
(read1): Use it to skip the end of a file in response to #@00.

11 years ago* lisp/comint.el (comint-redirect-send-command-to-process): Use :around
Stefan Monnier [Thu, 9 May 2013 17:54:29 +0000 (13:54 -0400)]
* lisp/comint.el (comint-redirect-send-command-to-process): Use :around
rather than :override for comint-redirect-filter.
(comint-redirect-filter): Add the corresponding `orig-filter' argument.
Call it instead of comint-redirect-original-filter-function (which
is gone).  Reported by Juanma Barranquero <lekktu@gmail.com>.

11 years agoX-Debbugs-CC clarifications
Glenn Morris [Thu, 9 May 2013 16:14:05 +0000 (09:14 -0700)]
X-Debbugs-CC clarifications

11 years agoImplement display-monitor-attributes-list for NS.
Jan Djärv [Thu, 9 May 2013 15:17:38 +0000 (17:17 +0200)]
Implement display-monitor-attributes-list for NS.

* lisp/frame.el (display-monitor-attributes-list): Add NS case.
(ns-display-monitor-attributes-list): Declare.

* src/nsfns.m: Include IOGraphicsLib.h if Cocoa.
(Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
(MonitorInfo): New struct.
(free_monitors, ns_screen_name, ns_make_monitor_attribute_list)
(Fns_display_monitor_attributes_list): New functions.
(display-usable-bounds): Remove.
(syms_of_nsfns): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes and
Qsource.

11 years ago* xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION.
Paul Eggert [Thu, 9 May 2013 14:49:56 +0000 (07:49 -0700)]
* xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION.

(GTK_CHECK_VERSION): New macro, if not already defined.
All uses of GTK_PREREQ, GTK_MAJOR_VERSION, etc.
replaced by GTK_CHECK_VERSION.

11 years ago* lisp/gnus/mml1991.el: Make it loadable.
Glenn Morris [Thu, 9 May 2013 06:46:51 +0000 (23:46 -0700)]
* lisp/gnus/mml1991.el: Make it loadable.

* lisp/gnus/mml2015.el: Comment.

Fixes: debbugs:13456

11 years agoadmin/cus-test,el misc updates
Glenn Morris [Thu, 9 May 2013 06:09:39 +0000 (23:09 -0700)]
admin/cus-test,el misc updates

Mainly for some files listed in loaddefs.el now being in subdirs that
are not in load-path.

* admin/cus-test.el (cus-test-libs-noloads): Add dunnet in the defvar.
(dunnet): Don't always load it.
(viper-mode): Only set if interactive.
(cus-test-load-custom-loads): Load dunnet if necessary.
(cus-test-load-1): New macro, with common code from cus-test-load-libs
and cus-test-libs.
(cus-test-load-libs, cus-test-libs): Use cus-test-load-1 macro.
Update for cus-test-get-autoload-deps changed result.
(cus-test-get-autoload-deps): Simplify.  Return file names as they
appear in loaddefs.el (directory parts are needed now that not all
lisp subdirs are in load-path).
(cus-test-deps): Explicitly skip dunnet.

11 years ago* admin/cus-test.el: No need to provide bbdb, bbdb-com any more.
Glenn Morris [Thu, 9 May 2013 03:17:44 +0000 (20:17 -0700)]
* admin/cus-test.el: No need to provide bbdb, bbdb-com any more.
Remove some outdated comments.

11 years agoMerge from emacs-24; up to 2012-12-27T17:59:21Z!rgm@gnu.org
Glenn Morris [Thu, 9 May 2013 02:44:12 +0000 (19:44 -0700)]
Merge from emacs-24; up to 2012-12-27T17:59:21Z!rgm@gnu.org

11 years ago* fontset.el (vertical-centering-font-regexp): Set standard-value.
Glenn Morris [Thu, 9 May 2013 02:42:10 +0000 (22:42 -0400)]
* fontset.el (vertical-centering-font-regexp): Set standard-value.

11 years ago* lisp/tar-mode.el (tar-superior-buffer, tar-superior-descriptor): Add doc.
Glenn Morris [Thu, 9 May 2013 01:42:00 +0000 (21:42 -0400)]
* lisp/tar-mode.el (tar-superior-buffer, tar-superior-descriptor): Add doc.

11 years agoFix a bunch of custom types (thank you cus-test.el)
Glenn Morris [Thu, 9 May 2013 01:40:20 +0000 (21:40 -0400)]
Fix a bunch of custom types (thank you cus-test.el)

* lisp/bookmark.el (bookmark-search-delay):
* lisp/cus-start.el (vertical-centering-font-regexp):
* lisp/ps-mule.el (ps-mule-font-info-database-default):
* lisp/ps-print.el (ps-default-fg, ps-default-bg):
* lisp/type-break.el (type-break-good-break-interval):
* lisp/whitespace.el (whitespace-indentation-regexp)
(whitespace-space-after-tab-regexp):
* lisp/emacs-lisp/testcover.el (testcover-1value-functions)
(testcover-noreturn-functions, testcover-progn-functions)
(testcover-prog1-functions):
* lisp/emulation/viper-init.el (viper-emacs-state-cursor-color):
* lisp/erc/erc-desktop-notifications.el (erc-notifications-icon):
* lisp/eshell/em-glob.el (eshell-glob-translate-alist):
* lisp/gnus/gnus-art.el (gnus-article-date-headers, gnus-blocked-images):
* lisp/gnus/gnus-async.el (gnus-async-post-fetch-function):
* lisp/gnus/gnus-gravatar.el (gnus-gravatar-size, gnus-gravatar-properties):
* lisp/gnus/gnus-html.el (gnus-html-image-cache-ttl):
* lisp/gnus/gnus-notifications.el (gnus-notifications-timeout):
* lisp/gnus/gnus-picon.el (gnus-picon-properties):
* lisp/gnus/gnus-util.el (gnus-completion-styles):
* lisp/gnus/gnus.el (gnus-other-frame-resume-function):
* lisp/gnus/message.el (message-user-organization-file)
(message-cite-reply-position):
* lisp/gnus/nnir.el (nnir-summary-line-format)
(nnir-retrieve-headers-override-function):
* lisp/gnus/shr-color.el (shr-color-visible-luminance-min):
* lisp/gnus/shr.el (shr-blocked-images):
* lisp/gnus/spam-report.el (spam-report-resend-to):
* lisp/gnus/spam.el (spam-summary-exit-behavior):
* lisp/mh-e/mh-e.el (mh-sortm-args, mh-default-folder-for-message-function):
* lisp/play/tetris.el (tetris-tty-colors):
* lisp/progmodes/cpp.el (cpp-face-default-list):
* lisp/progmodes/flymake.el (flymake-allowed-file-name-masks):
* lisp/progmodes/idlw-help.el (idlwave-help-browser-generic-program)
(idlwave-help-browser-generic-args):
* lisp/progmodes/make-mode.el (makefile-special-targets-list):
* lisp/progmodes/python.el (python-shell-virtualenv-path):
* lisp/progmodes/verilog-mode.el (verilog-active-low-regexp)
(verilog-auto-input-ignore-regexp, verilog-auto-inout-ignore-regexp)
(verilog-auto-output-ignore-regexp, verilog-auto-tieoff-ignore-regexp)
(verilog-auto-unused-ignore-regexp, verilog-typedef-regexp):
* lisp/textmodes/reftex-vars.el (reftex-format-label-function):
* lisp/textmodes/remember.el (remember-diary-file):
Fix custom types.

* lisp/cedet/semantic/db-find.el (semanticdb-find-throttle-custom-list):
Fix value.

* lisp/gnus/gnus-salt.el (gnus-selected-tree-face): Fix default.

11 years ago* lisp/jka-cmpr-hook.el (jka-compr-mode-alist-additions): Fix typo.
Glenn Morris [Thu, 9 May 2013 01:06:10 +0000 (21:06 -0400)]
* lisp/jka-cmpr-hook.el (jka-compr-mode-alist-additions): Fix typo.
Add :version.

11 years ago* progmodes/octave.el (inferior-octave-completion-at-point):
Leo Liu [Thu, 9 May 2013 00:52:49 +0000 (08:52 +0800)]
* progmodes/octave.el (inferior-octave-completion-at-point):
Restore the broken file completion.
(inferior-octave-startup): Fix incorrect highlighting for the
first prompt.

Fixes: debbugs:14300

11 years ago* xterm.h (GTK_PREREQ): New macro.
Paul Eggert [Wed, 8 May 2013 22:56:08 +0000 (15:56 -0700)]
* xterm.h (GTK_PREREQ): New macro.

All simple uses of GTK_MAJOR_VERSION and GTK_MINOR_VERSION changed
to use this macro instead, for consistency and clarity.

11 years ago* lisp/progmodes/ruby-mode.el: First cut at SMIE support.
Stefan Monnier [Wed, 8 May 2013 20:25:57 +0000 (16:25 -0400)]
* lisp/progmodes/ruby-mode.el: First cut at SMIE support.
(ruby-use-smie): New var.
(ruby-smie-grammar): New constant.
(ruby-smie--bosp, ruby-smie--implicit-semi-p)
(ruby-smie--forward-token, ruby-smie--backward-token)
(ruby-smie-rules): New functions.
(ruby-mode-variables): Setup SMIE if applicable.
* test/indent/ruby.rb: Fix indentation after =; add more cases.

11 years agoAvoid beginning/end of buffer errors when moving across display strings.
Eli Zaretskii [Wed, 8 May 2013 18:05:40 +0000 (21:05 +0300)]
Avoid beginning/end of buffer errors when moving across display strings.

 lisp/simple.el (line-move-visual): Signal beginning/end of buffer
 only if vertical-motion moved less than it was requested.  Avoids
 silly incorrect error messages when there are display strings with
 multiple newlines at EOL.

11 years agoFix vertical cursor motion when there's a display string with newline at EOL.
Eli Zaretskii [Wed, 8 May 2013 17:59:38 +0000 (20:59 +0300)]
Fix vertical cursor motion when there's a display string with newline at EOL.

 src/xdisp.c (row_for_charpos_p): New function, with code of
 cursor_row_p, but accepts an additional argument CHARPOS instead
 of using a hardcoded PT.
 (cursor_row_p): Call row_for_charpos_p with 2nd argument PT.
 (row_containing_pos): Call row_for_charpos_p instead of partially
 doing the same.  Fixes cursor positioning under longlines-mode
 when longlines-show-effect includes more than one newline, when
 moving the cursor vertically up.

11 years ago* lisp/progmodes/f90.el (f90-mode-syntax-table): Use symbol syntax for "_".
Stefan Monnier [Wed, 8 May 2013 16:27:53 +0000 (12:27 -0400)]
* lisp/progmodes/f90.el (f90-mode-syntax-table): Use symbol syntax for "_".
Change all regexps to use things like \_< and \_>.

* lisp/progmodes/ada-mode.el (ada-mode-abbrev-table): Consolidate declaration.
(ada-mode-syntax-table, ada-mode-symbol-syntax-table): Initialize in
the declaration.
(ada-create-syntax-table): Remove.
(ada-capitalize-word): Don't mess with the syntax of "_" since it
already has the right syntax nowadays.
(ada-goto-next-word): Don't change the syntax of "_".

* lisp/progmodes/autoconf.el (autoconf-definition-regexp)
(autoconf-font-lock-keywords, autoconf-current-defun-function):
Handle a _ with symbol syntax.
(autoconf-mode): Don't change the syntax-table for imenu and font-lock.

* lisp/progmodes/vera-mode.el (vera-underscore-is-part-of-word):
* lisp/progmodes/prolog.el (prolog-underscore-wordchar-flag)
(prolog-char-quote-workaround):
* lisp/progmodes/cperl-mode.el (cperl-under-as-char):
* lisp/progmodes/vhdl-mode.el (vhdl-underscore-is-part-of-word):
 Mark as obsolete.
 (vhdl-mode-syntax-table, vhdl-mode-ext-syntax-table): Initialize in
their declaration.
(vhdl-mode-syntax-table-init): Remove.

* lisp/progmodes/ld-script.el (ld-script-mode-syntax-table): Use symbol
syntax for "_".
(ld-script-font-lock-keywords):
Change regexps to use things like \_< and \_>.

* lisp/progmodes/m4-mode.el (m4-mode-syntax-table): Add comment on last change.

* lisp/font-lock.el (lisp-font-lock-keywords-2): Don't highlight obsolete
with-wrapper-hook.

* lisp/mh-e/mh-comp.el (mh-regexp-in-field-p): Minor simplification.

11 years agolib/makefile.w32-in (ACL_H): New macro.
Juanma Barranquero [Wed, 8 May 2013 16:22:09 +0000 (18:22 +0200)]
lib/makefile.w32-in (ACL_H): New macro.
($(BLD)/acl-errno-valid.$(O)): Update dependencies.

11 years agosrc/makefile.w32-in (ACL_H): New macro.
Juanma Barranquero [Wed, 8 May 2013 16:21:19 +0000 (18:21 +0200)]
src/makefile.w32-in (ACL_H): New macro.
($(BLD)/fileio.$(O)): Update dependencies.

11 years ago* lisp/thingatpt.el (thing-at-point): Accept optional second argument
Sam Steingold [Wed, 8 May 2013 15:13:25 +0000 (11:13 -0400)]
* lisp/thingatpt.el (thing-at-point): Accept optional second argument
NO-PROPERTIES to strip the text properties from the return value.
* lisp/net/browse-url.el (browse-url-url-at-point): Pass NO-PROPERTIES
to `thing-at-point' instead of stripping the properties ourselves.
Also, when `thing-at-point' fails to find a url, prepend "http://"
to the filename at point on the assumption that the user is
pointing at something like gnu.org/gnu.

11 years agoSilence byte-compiler warnings.
Juanma Barranquero [Wed, 8 May 2013 15:06:28 +0000 (17:06 +0200)]
Silence byte-compiler warnings.

* lisp/emacs-lisp/bytecomp.el (byte-compile-insert-header):
* lisp/faces.el (crm-separator): Silence byte-compiler.
* lisp/progmodes/gud.el (gdb-speedbar-auto-raise, gud-tooltip-mode)
  (tool-bar-map): Remove unneeded defvars.