]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 years agoAnother fix for the MS-Windows build broken 4 revisions ago.
Eli Zaretskii [Fri, 25 Oct 2013 09:52:37 +0000 (12:52 +0300)]
Another fix for the MS-Windows build broken 4 revisions ago.

 src/w32uniscribe.c (uniscribe_close): Adjust the argument list to
 the changed signature of the font driver's 'close' method.

11 years agoFix bug #15712 with vertical motion when the goal column needs to hscroll.
Eli Zaretskii [Fri, 25 Oct 2013 09:45:51 +0000 (12:45 +0300)]
Fix bug #15712 with vertical motion when the goal column needs to hscroll.

 lisp/simple.el (line-move): Call line-move-1 instead of
 line-move-visual when the current window hscroll is zero, but
 temporary-goal-column indicates we will need to hscroll as result
 of the movement.

11 years agoFix the MS-Windows build broken 2013-10-25T04:35:56Z!dgutov@yandex.ru.
Eli Zaretskii [Fri, 25 Oct 2013 09:42:41 +0000 (12:42 +0300)]
Fix the MS-Windows build broken 2013-10-25T04:35:56Z!dgutov@yandex.ru.

 src/w32font.h (w32font_close): Adjust the prototype to the change in
 function definition.
 src/w32font.c (w32font_close): Reintroduce deleted declaration of i.
 src/w32uniscribe.c (uniscribe_close): Adapt the call to
 w32font_close to its new prototype.

11 years agoPerform font-specific cleanup when font object is swept by GC. See
Dmitry Antipov [Fri, 25 Oct 2013 07:28:16 +0000 (11:28 +0400)]
Perform font-specific cleanup when font object is swept by GC.  See
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00740.html.
* alloc.c (cleanup_vector): New function.
(sweep_vector): Call it for each reclaimed vector object.
* font.h (struct font): Adjust comment.

11 years agoOmit unused frame argument of font API's close function.
Dmitry Antipov [Fri, 25 Oct 2013 06:55:36 +0000 (10:55 +0400)]
Omit unused frame argument of font API's close function.
* font.h (struct font): Drop frame argument.  Adjust comment.
* font.c (font_clear_cache, font_close_object): Adjust users.
* ftfont.c (ftfont_close):
* ftxfont.c (ftxfont_close):
* macfont.m (macfont_close):
* nsfont.m (nsfont_close):
* w32font.c (w32font_close):
* xfont.c (xfont_close):
* xftfont.c (xftfont_close): Adjust driver-specific close
functions, tweak comments and make functions safe if called
more than once for the same font object.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Use proper
Dmitry Gutov [Fri, 25 Oct 2013 04:35:56 +0000 (08:35 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Use proper
capitalization.  Use :visible instead of :active.  Fix
`ruby-indent-exp' reference.  Add menu items for the generic
commands that are used with SMIE.
(ruby-do-end-to-brace): Insert space after `{'.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Add a menu
John Anthony [Fri, 25 Oct 2013 02:38:39 +0000 (19:38 -0700)]
* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Add a menu

Fixes: debbugs:15600
11 years ago* lisp/progmodes/inf-lisp.el (inferior-lisp-menu): Add menu.
John Anthony [Fri, 25 Oct 2013 02:35:55 +0000 (19:35 -0700)]
* lisp/progmodes/inf-lisp.el (inferior-lisp-menu): Add menu.

Fixes: debbugs:15599
11 years ago* lisp/vc/vc.el (vc-print-log): Don't use a working revision unless
Glenn Morris [Fri, 25 Oct 2013 02:33:42 +0000 (19:33 -0700)]
* lisp/vc/vc.el (vc-print-log): Don't use a working revision unless
one was explicitly specified.

Fixes: debbugs:15322
11 years ago* configure.ac: It seems _installing_ in non-ASCII is ok, not building.
Glenn Morris [Fri, 25 Oct 2013 02:22:13 +0000 (19:22 -0700)]
* configure.ac: It seems _installing_ in non-ASCII is ok, not building.

11 years ago* lisp/subr.el (add-to-list): Preserve return value in compiler-macro.
Stefan Monnier [Fri, 25 Oct 2013 01:10:27 +0000 (21:10 -0400)]
* lisp/subr.el (add-to-list): Preserve return value in compiler-macro.

Fixes: debbugs:15692
11 years agoSmall fix to last change
Leo Liu [Fri, 25 Oct 2013 00:52:26 +0000 (08:52 +0800)]
Small fix to last change

11 years ago* progmodes/octave.el (octave-lookfor): Handle empty lookfor
Rüdiger Sonderfeld [Fri, 25 Oct 2013 00:49:33 +0000 (08:49 +0800)]
* progmodes/octave.el (octave-lookfor): Handle empty lookfor
result.  Ask user to retry using '-all' flag.

Fixes: debbugs:15701
11 years agoAvoid non-portable "` ... \"...\" ... `" nesting
Glenn Morris [Thu, 24 Oct 2013 23:04:33 +0000 (19:04 -0400)]
Avoid non-portable "` ... \"...\" ... `" nesting

* configure.ac:
* Makefile.in (install-arch-indep, install-etcdoc, install-info):
* lib-src/Makefile.in ($(DESTDIR)${archlibdir}):
* nt/Makefile.in ($(DESTDIR)${archlibdir}):
Avoid non-portable "`\" nesting.

11 years ago* lisp/emacs-lisp/smie.el: New smie-config system.
Stefan Monnier [Thu, 24 Oct 2013 21:16:20 +0000 (17:16 -0400)]
* lisp/emacs-lisp/smie.el: New smie-config system.
(smie-config): New defcustom.
(smie-edebug, smie-config-show-indent, smie-config-set-indent)
(smie-config-guess, smie-config-save): New commands.
(smie-config--mode-local, smie-config--buffer-local)
(smie-config--trace, smie-config--modefuns): New vars.
(smie-config--advice, smie-config--mode-hook)
(smie-config--setter, smie-config-local, smie-config--get-trace)
(smie-config--guess-value, smie-config--guess): New functions.
(smie-indent-forward-token, smie-indent-backward-token): Don't copy
text properties.  Treat "string fence" syntax like string syntax.

* lisp/progmodes/sh-script.el (sh-use-smie): Change default.
(sh-smie-sh-rules, sh-smie-rc-rules): Obey legacy sh-indent-* vars.
(sh-var-value): Simplify by CSE.
(sh-show-indent, sh-set-indent, sh-learn-line-indent)
(sh-learn-buffer-indent): Redirect to their SMIE equivalent when SMIE
is used.
(sh-guess-basic-offset): Use cl-incf.
(sh-guess-basic-offset): Use push+nreverse to avoid O(n^2).

11 years ago* lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2): Fix cut&paste.
Helmut Eller [Thu, 24 Oct 2013 17:49:12 +0000 (13:49 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2): Fix cut&paste.

Fixes: debbugs:15699
11 years ago* lisp/Makefile.in (abs_top_srcdir): Remove.
Glenn Morris [Thu, 24 Oct 2013 17:18:46 +0000 (13:18 -0400)]
* lisp/Makefile.in (abs_top_srcdir): Remove.
(update-subdirs): Use relative path to update-subdirs.

11 years agoFix last changes to support whitespace in directory names.
Eli Zaretskii [Thu, 24 Oct 2013 16:28:05 +0000 (19:28 +0300)]
Fix last changes to support whitespace in directory names.

 lisp/Makefile.in ($(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): Call
 unmsys--file-name before expand-file-name, not after it.

11 years agoImprove indexing.
Xue Fuqiao [Thu, 24 Oct 2013 14:00:59 +0000 (22:00 +0800)]
Improve indexing.

11 years ago* doc/lispref/display.texi (Low-Level Font): Add an index for font registry.
Xue Fuqiao [Thu, 24 Oct 2013 13:53:20 +0000 (21:53 +0800)]
* doc/lispref/display.texi (Low-Level Font): Add an index for font registry.

11 years ago* doc/lispref/display.texi (Font Selection): Add indexes for font selection.
Xue Fuqiao [Thu, 24 Oct 2013 13:16:51 +0000 (21:16 +0800)]
* doc/lispref/display.texi (Font Selection): Add indexes for font selection.

11 years ago* doc/lispref/display.texi (Face Remapping): Add indexes for face remapping.
Xue Fuqiao [Thu, 24 Oct 2013 12:17:57 +0000 (20:17 +0800)]
* doc/lispref/display.texi (Face Remapping): Add indexes for face remapping.

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

11 years agoMention the `skip-unless' macro of ert.el.
Michael Albinus [Thu, 24 Oct 2013 07:42:18 +0000 (09:42 +0200)]
Mention the `skip-unless' macro of ert.el.

11 years ago* ert.texi (Running Tests Interactively): Adapt examle output.
Michael Albinus [Thu, 24 Oct 2013 07:40:05 +0000 (09:40 +0200)]
* ert.texi (Running Tests Interactively): Adapt examle output.
(Tests and Their Environment): Mention skip-unless.

11 years ago* automated/ert-tests.el (ert-test-skip-unless): New test case.
Michael Albinus [Thu, 24 Oct 2013 07:38:45 +0000 (09:38 +0200)]
* automated/ert-tests.el (ert-test-skip-unless): New test case.
(ert-test-deftest): Adapt test for changed macro expansion.
(ert-test-run-tests-interactively):
* automated/ert-x-tests.el (ert-test-run-tests-interactively-2):
Add a skipping test.

* automated/file-notify-tests.el (top): Do not require tramp-sh.el.
(file-notify--test-local-enabled): Make it a function.  Check also
for `file-remote-p' of `temporary-file-directory'.
(file-notify--test-remote-enabled-checked): New defvar.
(file-notify--test-remote-enabled): Rewrite.  Do not use Tramp
internal functions.  Cache result.
(file-notify--deftest-remote, file-notify-test00-availability)
(file-notify-test01-add-watch, file-notify-test02-events)
(file-notify-test03-autorevert): Add checks with `skip_unless'.
(file-notify-test-all): Do not check `file-notify--test-local-enabled'.

11 years ago* emacs-lisp/ert.el (ert-deftest): Bind macro `skip-unless'.
Michael Albinus [Thu, 24 Oct 2013 07:34:41 +0000 (09:34 +0200)]
* emacs-lisp/ert.el (ert-deftest): Bind macro `skip-unless'.
(ert-test-skipped): New error.
(ert-skip, ert-stats-skipped): New defuns.
(ert--skip-unless): New macro.
(ert-test-skipped): New struct.
(ert--run-test-debugger, ert-test-result-type-p)
(ert-test-result-expected-p, ert--stats, ert-stats-completed)
(ert--stats-set-test-and-result, ert-char-for-test-result)
(ert-string-for-test-result, ert-run-tests-batch)
(ert--results-update-ewoc-hf, ert-run-tests-interactively): Handle
skipped tests.

11 years agoChangeLog fixes
Glenn Morris [Thu, 24 Oct 2013 07:04:01 +0000 (00:04 -0700)]
ChangeLog fixes

11 years agoFix whitespace in previous Makefile.in changes
Glenn Morris [Thu, 24 Oct 2013 04:05:54 +0000 (21:05 -0700)]
Fix whitespace in previous Makefile.in changes

11 years ago* leim/Makefile.in (.el.elc, changed.tit, changed.misc, leim-list.el)
Glenn Morris [Thu, 24 Oct 2013 02:29:29 +0000 (19:29 -0700)]
* leim/Makefile.in (.el.elc, changed.tit, changed.misc, leim-list.el)
($(srcdir)/ja-dic/ja-dic.el, check-declare):
Remove unnecessary path in -l argument (RUN_EMACS sets EMACSLOADPATH).
We just need to be careful because "quail" is also a directory...

11 years ago* lisp/Makefile.in (check-declare): Remove unnecessary path in -l argument
Glenn Morris [Thu, 24 Oct 2013 02:21:23 +0000 (19:21 -0700)]
* lisp/Makefile.in (check-declare): Remove unnecessary path in -l argument

11 years agoAttempt at a fix for mingw CPPFLAGS
Glenn Morris [Thu, 24 Oct 2013 02:15:16 +0000 (19:15 -0700)]
Attempt at a fix for mingw CPPFLAGS

* configure.ac (CPPFLAGS) [mingw32]: Use abs_top_srcdir.

* Makefile.in (abs_top_srcdir):
* lib-src/Makefile.in (abs_top_srcdir):
* lwlib/Makefile.in (abs_top_srcdir):
* nt/Makefile.in (abs_top_srcdir):
* oldXMenu/Makefile.in (abs_top_srcdir):
* src/Makefile.in (abs_top_srcdir):
New, set by configure.

11 years ago* lisp/Makefile.in (abs_top_srcdir): New, set by configure.
Glenn Morris [Thu, 24 Oct 2013 01:52:44 +0000 (18:52 -0700)]
* lisp/Makefile.in (abs_top_srcdir): New, set by configure.
(update-subdirs): Correct build-aux location.

11 years ago* lisp/vc/vc.el (vc-print-root-log): Always set `default-directory'
Dmitry Gutov [Thu, 24 Oct 2013 01:27:29 +0000 (05:27 +0400)]
* lisp/vc/vc.el (vc-print-root-log): Always set `default-directory'
value, whether we could auto-deduce `backend', or not.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Fix the "curly block
Dmitry Gutov [Thu, 24 Oct 2013 00:47:28 +0000 (04:47 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Fix the "curly block
with parameters" example.  Simplify the "is it block or is it
hash" check, but also make it more thorough.

* test/indent/ruby.rb: Fix syntax error in the latest example.

11 years ago* configure.ac (src/.gdbinit): Use ac_abs_top_srcdir.
Glenn Morris [Wed, 23 Oct 2013 23:27:19 +0000 (19:27 -0400)]
* configure.ac (src/.gdbinit): Use ac_abs_top_srcdir.

11 years ago* Makefile.in (epaths-force-w32): Use abs_srcdir
Glenn Morris [Wed, 23 Oct 2013 22:33:08 +0000 (18:33 -0400)]
* Makefile.in (epaths-force-w32): Use abs_srcdir

11 years agoconfigure.ac: Tweak previous change
Glenn Morris [Wed, 23 Oct 2013 22:02:42 +0000 (18:02 -0400)]
configure.ac: Tweak previous change

11 years ago* configure.ac: Explicit error for non-ASCII directories
Glenn Morris [Wed, 23 Oct 2013 20:46:46 +0000 (16:46 -0400)]
* configure.ac: Explicit error for non-ASCII directories

Fixes: debbugs:15260
11 years ago* lisp/battery.el (battery-pmset): Handle OS X Mavericks (tiny change)
Masashi Fujimoto [Wed, 23 Oct 2013 19:44:28 +0000 (15:44 -0400)]
* lisp/battery.el (battery-pmset): Handle OS X Mavericks (tiny change)

Fixes: debbugs:15694
11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Only align with parent of
Stefan Monnier [Wed, 23 Oct 2013 17:55:53 +0000 (13:55 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Only align with parent of
{ if it is hanging.

11 years agoRemove remaining @refills from doc/*/*.texi files
Glenn Morris [Wed, 23 Oct 2013 17:20:09 +0000 (13:20 -0400)]
Remove remaining @refills from doc/*/*.texi files

11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't return 0 for
Stefan Monnier [Wed, 23 Oct 2013 17:18:11 +0000 (13:18 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't return 0 for
:before ";".

11 years agocompile: Support GNU Make-4.0 directory quoting (tiny change)
Jed Brown [Wed, 23 Oct 2013 16:25:56 +0000 (09:25 -0700)]
compile: Support GNU Make-4.0 directory quoting (tiny change)

* lisp/progmodes/compile.el (compilation-directory-matcher)
(compilation-page-delimiter): Support GNU Make-4.0 directory quoting.

Fixes: debbugs:15678
11 years agoFix ChangeLog entry.
Dmitry Antipov [Wed, 23 Oct 2013 16:11:30 +0000 (20:11 +0400)]
Fix ChangeLog entry.

11 years agoTweak last font-related changes to fix bug#15686.
Dmitry Antipov [Wed, 23 Oct 2013 16:07:30 +0000 (20:07 +0400)]
Tweak last font-related changes to fix bug#15686.
* alloc.c (mark_object) [HAVE_WINDOW_SYSTEM]: If marked frame
is a live window system frame, mark it's default font too.

11 years agoComment
Xue Fuqiao [Wed, 23 Oct 2013 13:29:39 +0000 (21:29 +0800)]
Comment

11 years ago* ido.el (ido-tidy): Handle read-only text.
Leo Liu [Wed, 23 Oct 2013 12:15:31 +0000 (20:15 +0800)]
* ido.el (ido-tidy): Handle read-only text.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 23 Oct 2013 10:17:41 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoMore Makefile quoting
Glenn Morris [Wed, 23 Oct 2013 07:28:30 +0000 (00:28 -0700)]
More Makefile quoting

* Makefile.in (install-arch-dep, install-nt, uninstall, uninstall-nt):
Quote entities that might contain whitespace.

11 years agoProgress towards allowing installation in directories with whitespace
Glenn Morris [Wed, 23 Oct 2013 07:20:57 +0000 (00:20 -0700)]
Progress towards allowing installation in directories with whitespace

* Makefile.in (COPYDESTS, write_subdir, install-arch-dep)
(install-arch-indep, install-etcdoc, install-info, install-man)
(install-etc, uninstall): Quote entities that might contain whitespace.

* build-aux/update-subdirs: Handle whitespace in argument.
Check cd return value.

* doc/emacs/Makefile.in (install-dvi, install-html, install-pdf)
(install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
(uninstall-pdf): Quote entities that might contain whitespace.

* doc/lispintro/Makefile.in (install-dvi, install-html, install-pdf)
(install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
(uninstall-pdf): Quote entities that might contain whitespace.

* doc/lispref/Makefile.in (install-dvi, install-html, install-pdf)
(install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
(uninstall-pdf): Quote entities that might contain whitespace.

* doc/misc/Makefile.in (install-dvi, install-html, install-pdf)
(install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
(uninstall-pdf): Quote entities that might contain whitespace.

* lib-src/Makefile.in ($(DESTDIR)${archlibdir}, need-blessmail, install)
(uninstall): Quote entities that might contain whitespace.

* nt/Makefile.in ($(DESTDIR)${archlibdir}, install, uninstall):
Quote entities that might contain whitespace.

11 years agoMake building in directories with whitespace possible
Glenn Morris [Wed, 23 Oct 2013 06:22:54 +0000 (23:22 -0700)]
Make building in directories with whitespace possible
Make has trouble with targets containing whitespace,
http://savannah.gnu.org/bugs/?712, so the general approach is
to use relative paths where possible.  It's generally only Emacs
itself that needs absolute paths, eg in src/epaths.h.

* configure.ac (srcdir): Don't make it absolute - abs_srcdir exists.

* Makefile.in (abs_srcdir): New, set by configure.
(buildlisppath): Use abs_srcdir.
(install-arch-indep, install-etcdoc, install-info, install-man)
(install-etc): Quote entities that might contain whitespace.

* admin/unidata/Makefile.in (emacs, ${DSTDIR}/charprop.el):
Quote entities that might contain whitespace.

* leim/Makefile.in (abs_srcdir): New, set by configure.
(buildlisppath): Use abs_srcdir.
(RUN_EMACS, .el.elc, changed.tit, changed.misc, leim-list.el)
($(srcdir)/ja-dic/ja-dic.el, setwins, distclean, check-declare):
Quote entities that might contain whitespace.

* lib-src/Makefile.in ($(DESTDIR)${archlibdir}):
Quote entities that might contain whitespace.

* lisp/Makefile.in (abs_srcdir, abs_lisp): New, set by configure.
(emacs, compile, compile-always):
Quote entities that might contain whitespace.
(custom-deps, finder-data, autoloads): Use abs_lisp.
($(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): Manually expand target file name.

* nextstep/Makefile.in (${ns_check_file} ${ns_appdir}):
Quote entities that might contain whitespace.

* nt/Makefile.in ($(DESTDIR)${archlibdir}):
Quote entities that might contain whitespace.

* src/Makefile.in (RUN_TEMACS): Make relative (again).
($(leimdir)/leim-list.el, .el.elc, $(lispsource)/loaddefs.el)
(bootstrap-emacs$(EXEEXT)):
Quote entities that might contain whitespace.

* test/automated/Makefile.in (abs_top_srcdir, top_builddir):
New, set by configure.
(top_srcdir): Remove.
(abs_test, abs_lispsrc): New.
(lisp): No longer absolute.
(emacs, lisp-compile, compile, compile-always):
Quote entities that might contain whitespace.

Fixes: debbugs:15675
11 years agoPort to Solaris 10 and its bundled GCC.
Paul Eggert [Wed, 23 Oct 2013 04:37:17 +0000 (21:37 -0700)]
Port to Solaris 10 and its bundled GCC.

Problem reported by Timothy C. Burt.
* floatfns.c (isfinite, isnan): Redefine unconditionally.

11 years agoMerge from gnulib.
Paul Eggert [Wed, 23 Oct 2013 04:01:46 +0000 (21:01 -0700)]
Merge from gnulib.

This incorporates:
2013-10-14 acl: allow cross-compilation to Gentoo
2013-10-18 extern-inline: make safe for -Wundef usage
2013-09-30 fpending: use pure+const function attrs
* lib/fpending.h, m4/acl.m4, m4/extern-inline.m4: Update from gnulib.

11 years agolisp/gnus/mm-decode.el (mm-dissect-buffer): Revert last change
Katsumi Yamaoka [Wed, 23 Oct 2013 03:35:49 +0000 (03:35 +0000)]
lisp/gnus/mm-decode.el (mm-dissect-buffer): Revert last change
lisp/gnus/nndoc.el (nndoc-dissect-mime-parts-sub): Ditto

The problem that motivated those changes was attributed to a broken
mail sender, and has been fixed.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use
Dmitry Gutov [Wed, 23 Oct 2013 02:59:45 +0000 (06:59 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use
`following-char'.

11 years ago* test/indent/ruby.rb: Move two examples to "working" section, add one
Dmitry Gutov [Tue, 22 Oct 2013 20:47:29 +0000 (00:47 +0400)]
* test/indent/ruby.rb: Move two examples to "working" section, add one
more.

11 years ago* lisp/emacs-lisp/smie.el (smie-rule-parent): Fix opener-test.
Stefan Monnier [Tue, 22 Oct 2013 15:45:56 +0000 (11:45 -0400)]
* lisp/emacs-lisp/smie.el (smie-rule-parent): Fix opener-test.
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Remove corresponding workaround.  Fix indentation rule of ";" so it
also applies when ";" is the parent.

11 years agolisp/gnus/nndoc.el (nndoc-dissect-mime-parts-sub): Fix last change
Katsumi Yamaoka [Tue, 22 Oct 2013 13:55:27 +0000 (13:55 +0000)]
lisp/gnus/nndoc.el (nndoc-dissect-mime-parts-sub): Fix last change

11 years agolisp/gnus/mm-decode.el (mm-dissect-buffer): Guess content-type if the first token...
Katsumi Yamaoka [Tue, 22 Oct 2013 10:22:59 +0000 (10:22 +0000)]
lisp/gnus/mm-decode.el (mm-dissect-buffer): Guess content-type if the first token is missing in the Content-Type header
lisp/gnus/nndoc.el (nndoc-dissect-mime-parts-sub): Ditto

11 years agoMention the optional ‘display’ argument in doc strings.
Xue Fuqiao [Tue, 22 Oct 2013 08:07:51 +0000 (16:07 +0800)]
Mention the optional ‘display’ argument in doc strings.

* frame.el (display-screens, display-pixel-height)
(display-pixel-width, display-mm-width, display-backing-store)
(display-save-under, display-planes, display-color-cells)
(display-visual-class, display-monitor-attributes-list): Mention
the optional ‘display’ argument in doc strings.

11 years ago* lisp/progmodes/ebnf2ps.el (ebnf-prologue): Avoid PS error with some
Michael Gauland [Tue, 22 Oct 2013 00:47:32 +0000 (20:47 -0400)]
* lisp/progmodes/ebnf2ps.el (ebnf-prologue): Avoid PS error with some
viewers such as evince when ebnf-production-name-p is nil.

Fixes: debbugs:15625
11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Remove outdated
Dmitry Gutov [Mon, 21 Oct 2013 22:25:59 +0000 (02:25 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Remove outdated
TODO.  Add "." after " @ ".
(ruby-smie--at-dot-call): New function.  Checks if point at method
call with explicit target.
(ruby-smie--forward-token, ruby-smie--backward-token): Prepend "."
to the method name tokens when it precedes them.
(ruby-smie--backward-id, ruby-smie--forward-id): Remove.
(ruby-smie-rules): Add rule for indentation before and after "."
token.

11 years agoRemove unnecessary @refill.
Xue Fuqiao [Mon, 21 Oct 2013 22:10:55 +0000 (06:10 +0800)]
Remove unnecessary @refill.

11 years ago* lisp/textmodes/remember.el (remember-diary-extract-entries):
Stefan Monnier [Mon, 21 Oct 2013 14:15:13 +0000 (10:15 -0400)]
* lisp/textmodes/remember.el (remember-diary-extract-entries):
Avoid add-to-list.

11 years agoDo not allow font caches to grow too large.
Dmitry Antipov [Mon, 21 Oct 2013 14:11:25 +0000 (18:11 +0400)]
Do not allow font caches to grow too large.
* alloc.c (compact_font_cache_entry, compact_font_caches):
New functions or stub if not HAVE_WINDOW_SYSTEM.
(compact_undo_list): Factor out from Fgarbage_collect.
Add comment.
(mark_face_cache): Mark face font.  Move down to avoid
extra prototypes.
(mark_terminals): Do not mark font cache here.
(Fgarbage_collect): Call compaction functions described
above.  Adjust comment.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used as
Stefan Monnier [Mon, 21 Oct 2013 13:34:13 +0000 (09:34 -0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used as
an instruction.

11 years ago* indent/ruby.rb: Fix a typo
Dmitry Gutov [Mon, 21 Oct 2013 06:15:47 +0000 (10:15 +0400)]
* indent/ruby.rb: Fix a typo

11 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add (almost) all
Dmitry Gutov [Mon, 21 Oct 2013 05:54:18 +0000 (09:54 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add (almost) all
infix operators.
(ruby-smie--implicit-semi-p): Add new operator chars.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-mode-map): Add binding for
Dmitry Gutov [Mon, 21 Oct 2013 03:50:06 +0000 (07:50 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Add binding for
`smie-down-list'.
(ruby-smie--args-separator-p): Check that there's no newline
between method call and its arguments.
(ruby-smie-rules): Handle new cases: curly block with and without
parameters, hash surrounded with parens, block passed to
paren-less method call.

* test/indent/ruby.rb: New examples for indentation of blocks.  Example
of hash inside parens that inflooped before this commit.

11 years agoRemove unnecessary @refill.
Xue Fuqiao [Sun, 20 Oct 2013 22:33:05 +0000 (06:33 +0800)]
Remove unnecessary @refill.

11 years ago* emacs.c (main): On Cocoa, if GUI session and 0 is not a tty,
Jan Djärv [Sun, 20 Oct 2013 16:47:42 +0000 (18:47 +0200)]
* emacs.c (main): On Cocoa, if GUI session and 0 is not a tty,
chdir to HOME.

Fixes: debbugs:15607
11 years agoAllow comma separated lists after Java "implements".
Alan Mackenzie [Sun, 20 Oct 2013 14:27:22 +0000 (14:27 +0000)]
Allow comma separated lists after Java "implements".

* progmodes/cc-engine.el (c-backward-over-enum-header): parse
commas.
* progmodes/cc-fonts.el (c-basic-matchers-after): Remove comma
from a "disallowed" list in enum fontification.

11 years ago* lisp/startup.el (default-frame-background-mode): Remove unused
Johan Bockgård [Sun, 20 Oct 2013 11:28:58 +0000 (13:28 +0200)]
* lisp/startup.el (default-frame-background-mode): Remove unused
defvar.

11 years ago* lisp/progmodes/verilog-mode.el (verilog-mode): Don't set
Johan Bockgård [Sun, 20 Oct 2013 10:13:26 +0000 (12:13 +0200)]
* lisp/progmodes/verilog-mode.el (verilog-mode): Don't set
comment-indent-function globally.

11 years ago* src/nsterm.m (ns_get_color): Make selection color work for GNUStep also.
Jan Djärv [Sun, 20 Oct 2013 09:55:25 +0000 (11:55 +0200)]
* src/nsterm.m (ns_get_color): Make selection color work for GNUStep also.

11 years ago* lisp/cedet/semantic/db-mode.el (global-semanticdb-minor-mode): Remove hooks
Johan Bockgård [Sun, 20 Oct 2013 09:51:21 +0000 (11:51 +0200)]
* lisp/cedet/semantic/db-mode.el (global-semanticdb-minor-mode): Remove hooks
correctly.
(semanticdb-toggle-global-mode): Pass `toggle' to minor mode function.

11 years agoMake Info menu for GNUStep only for GUI.
Jan Djärv [Sun, 20 Oct 2013 09:26:15 +0000 (11:26 +0200)]
Make Info menu for GNUStep only for GUI.

* menu-bar.el: Put help-menu in menu-bar-final-items unconditionally.
Move Info menu item creation to ns-win.el.

* term/ns-win.el (ns-initialize-window-system): Rename Help to Info
in menu bar.

11 years agoFix GNUStep specific menu items.
Jan Djärv [Sun, 20 Oct 2013 08:50:34 +0000 (10:50 +0200)]
Fix GNUStep specific menu items.

* lisp/menu-bar.el: Move GNUStep specific menus...

* lisp/term/ns-win.el (ns-initialize-window-system): ... to here.

* src/nsterm.m (Qcocoa, Qgnustep): New variables.
(syms_of_nsterm): Defsym Qcocoa, Qgnustep.  Fprovide appropriate one.

11 years ago* lisp/simple.el (newline): Only run post-self-insert-hook when
Stefan Monnier [Sat, 19 Oct 2013 22:17:56 +0000 (18:17 -0400)]
* lisp/simple.el (newline): Only run post-self-insert-hook when
called interactively.

11 years agoNEWS fix.
Johan Bockgård [Sat, 19 Oct 2013 15:30:39 +0000 (17:30 +0200)]
NEWS fix.

11 years ago* lisp/icomplete.el (icomplete-with-completion-tables): Add :version.
Johan Bockgård [Sat, 19 Oct 2013 15:22:57 +0000 (17:22 +0200)]
* lisp/icomplete.el (icomplete-with-completion-tables): Add :version.

11 years agoFix fontification bugs with constructors and const.
Alan Mackenzie [Sat, 19 Oct 2013 15:11:07 +0000 (15:11 +0000)]
Fix fontification bugs with constructors and const.

* progmodes/cc-engine.el (c-forward-decl-or-cast-1): (Just after
CASE 2) Remove the check for the absence of a suffix construct
after a function declaration with only types (no identifiers) in
the parentheses.  Also, accept a function declaration with just a
type inside the parentheses, if this type can be positively
recognised as such, or if a prefix keyword like "explicit" nails
down the construct as a declaration.

11 years agoAdd indexes for the ‘:box’ face attribute.
Xue Fuqiao [Sat, 19 Oct 2013 13:53:01 +0000 (21:53 +0800)]
Add indexes for the ‘:box’ face attribute.

* doc/lispref/display.texi (Face Attributes): Add indexes for the ‘:box’ face attribute.

11 years agoFix TTY menus when they lead to a minibuffer prompt.
Eli Zaretskii [Sat, 19 Oct 2013 08:35:51 +0000 (11:35 +0300)]
Fix TTY menus when they lead to a minibuffer prompt.

 lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse-N to perform
 TTY menu actions and down-mouse-N to tty-menu-ignore.  This solves
 the problem whereby selecting a menu item that leads to a
 minibuffer prompt moves the cursor out of the minibuffer window,
 making it hard to type at the prompt.  Suggested by Stefan Monnier
 <monnier@iro.umontreal.ca>.

11 years ago* menu-bar.el: Don't make Services menu.
Jan Djärv [Sat, 19 Oct 2013 08:23:43 +0000 (10:23 +0200)]
* menu-bar.el: Don't make Services menu.

11 years agoffap.el: handle "/usr/include/c++/<version>" directories.
Rüdiger Sonderfeld [Sat, 19 Oct 2013 02:35:20 +0000 (19:35 -0700)]
ffap.el: handle "/usr/include/c++/<version>" directories.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00387.html

* lisp/ffap.el (ffap-alist): Use ffap-c++-mode for c++-mode.
(ffap-c++-path): New variable.
(ffap-c++-mode): New function.

11 years ago* lisp/ido.el (dired-other-frame): Only list directories.
Joe Vornehm Jr. [Sat, 19 Oct 2013 00:39:31 +0000 (20:39 -0400)]
* lisp/ido.el (dired-other-frame): Only list directories.

Fixes: debbugs:15638
11 years agoAnother index for line height.
Xue Fuqiao [Fri, 18 Oct 2013 14:27:44 +0000 (22:27 +0800)]
Another index for line height.

11 years ago* doc/lispref/display.texi (Line Height): Add an index for line height.
Xue Fuqiao [Fri, 18 Oct 2013 14:22:55 +0000 (22:22 +0800)]
* doc/lispref/display.texi (Line Height): Add an index for line height.

11 years agoFix clicks on the menu bar when GPM mouse is in use.
Eli Zaretskii [Fri, 18 Oct 2013 13:33:25 +0000 (16:33 +0300)]
Fix clicks on the menu bar when GPM mouse is in use.

 src/keyboard.c (make_lispy_event): Remove GPM-specific code that
 handles mouse clicks.  Instead, let GPM use the same code as all
 the other mice use.  See the discussion starting at
 http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00521.html
 for the details of the problem with the menu bar this fixes.

11 years agoRemove port-specific display name lists to avoid extra
Dmitry Antipov [Fri, 18 Oct 2013 12:57:44 +0000 (16:57 +0400)]
Remove port-specific display name lists to avoid extra
complexity and data duplication with display info lists.
* xterm.h (x_display_name_list): Remove declaration.
* xterm.c (x_display_name_list): Remove.
(x_term_init, x_delete_display, syms_of_xterm): Adjust users.
* xfns.c (x_display_info_for_name, Fx_display_list):
Likewise.  Use x_display_list where appropriate.
* w32term.h (w32_display_name_list): Remove declaration.
* w32term.c (w32_display_name_list): Remove.
(w32_initialize_display_info, x_delete_display, syms_of_w32term):
Adjust users.
* w32fns.c (x_display_info_for_name, Fx_display_list):
Likewise.  Use x_display_list where appropriate.
* nsterm.h (ns_display_name_list): Remove declaration.
* nsterm.m (ns_display_name_list): Remove.
(ns_term_init, syms_of_nsterm): Adjust users.
* nsfns.m (ns_display_info_for_name, Fx_display_list):
Likewise.  Use x_display_list where appropriate.
* termhooks.h (TERMINAL_FONT_CACHE): New macro.
* alloc.c (toplevel) [HAVE_WINDOW_SYSTEM]: Include TERM_HEADER.
(mark_terminals): Mark per-terminal font cache.

11 years ago* net/tramp-smb.el (tramp-smb-maybe-open-connection): Fix an error
Michael Albinus [Fri, 18 Oct 2013 10:22:02 +0000 (12:22 +0200)]
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Fix an error
introduced on 2013-09-08, which results in an infinite loop
requesting a password.

11 years agoRemove erroneously-committed merge comment.
Reuben Thomas [Fri, 18 Oct 2013 08:48:33 +0000 (09:48 +0100)]
Remove erroneously-committed merge comment.

11 years ago* lisp/progmodes/verilog-mode.el (verilog-case-fold): Add :version.
Glenn Morris [Fri, 18 Oct 2013 07:56:45 +0000 (00:56 -0700)]
* lisp/progmodes/verilog-mode.el (verilog-case-fold): Add :version.

11 years agoSync with upstream verilog-mode revision 1a6ecec7
Wilson Snyder [Fri, 18 Oct 2013 07:46:36 +0000 (00:46 -0700)]
Sync with upstream verilog-mode revision 1a6ecec7

* progmodes/verilog-mode.el (verilog-mode-version): Update.
(verilog-mode-release-date): Remove.
(verilog-highlight-grouping-keywords, verilog-active-low-regexp)
(verilog-auto-inst-param-value, 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)
(verilog-scan-cache-preserving, verilog-mode, verilog-at-struct-p)
(verilog-signals-with, verilog-dir-cache-preserving)
(verilog-auto-inst, verilog-auto-inout-param, verilog-auto): Doc fixes.
(verilog-case-fold): New option, to control case folding in
regexp searches, bug597.
(verilog-menu): Add verilog-sk-uvm-component, minor tweaks.
(verilog-string-match-fold, verilog-in-paren-count)
(verilog-in-struct-nested-p, verilog-at-struct-mv-p)
(verilog-at-close-struct-p): New functions.
(verilog-beg-block-re-ordered, verilog-extended-case-re)
(verilog-forward-sexp, verilog-set-auto-endcomments):
(verilog-leap-to-case-head): Handle "unique0" case.
(verilog-in-constraint-re): New constant.
(verilog-keywords, verilog-type-font-keywords):
Add some SystemVerilog 1800-2012 keywords.
(verilog-label-be): Remove unimplemented argument, bug669.
(verilog-batch-execute-func): When batch expanding clear create-lockfiles
to prevent spurious user locks when a file ends up not changing.
(verilog-calculate-indent, verilog-calc-1)
(verilog-at-close-constraint-p, verilog-at-constraint-p)
(verilog-do-indent): Fix indentation of nested constraints and structures.
(verilog-sig-tieoff, verilog-typedef-name-p, verilog-auto-inst)
(verilog-auto-inst-param): Use verilog-string-match-fold.
(verilog-read-inst-module-matcher): Fix AUTOINST on gate primitives with #1.
(verilog-read-decls): Fix double-declaring user-defined typed signals.
Reads all user-defined typed variables.
(verilog-read-defines): Fix reading definitions inside comments, bug647.
(verilog-signals-matching-regexp)
(verilog-signals-not-matching-regexp, verilog-auto):
Respect verilog-case-fold.
(verilog-diff-report): Fix line count.
(verilog-auto-assign-modport): Remove unused local `modi'.
(verilog-auto-inst-port): Support [][] in AUTO_TEMPLATE to
better handle multidimensional arrays.
Fix packed array ports misadding bit index in AUTOINST, bug637.
(verilog-auto-output, verilog-auto-input): Fix AUTOINPUT and AUTOOUTPUT
to not double-declare existing outputs and inputs, respectively.
(verilog-template-map): Bind U to verilog-sk-uvm-component.
(verilog-sk-uvm-object): Rename from verilog-sk-uvm-class.
(verilog-sk-uvm-component): New skeleton.
(verilog-submit-bug-report): Add verilog-case-fold,
remove verilog-mode-release-date.

11 years agoStandardize license notice
Glenn Morris [Fri, 18 Oct 2013 07:03:48 +0000 (00:03 -0700)]
Standardize license notice

11 years agoDon't run timers in input-pending-p. Its new check-timers param
Barry O'Reilly [Fri, 18 Oct 2013 04:27:34 +0000 (00:27 -0400)]
Don't run timers in input-pending-p.  Its new check-timers param
provides the prior behavior..
* src/keyboard.c (Finput_pending_p): Accept optional check-timers
param.
* lisp/subr.el (sit-for): Call (input-pending-p t) so as to behave
as before.
* test/automated/timer-tests.el: New file.  Tests that (sit-for 0)
allows another timer to run.

Fixes: debbugs:15045
11 years ago* lisp/textmodes/remember.el (remember): set buffer-offer-save in
Reuben Thomas [Fri, 18 Oct 2013 02:26:28 +0000 (03:26 +0100)]
* lisp/textmodes/remember.el (remember): set buffer-offer-save in
remember buffers.

11 years agoIELM improvements.
Daniel Colascione [Fri, 18 Oct 2013 00:55:15 +0000 (16:55 -0800)]
IELM improvements.