summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #15712 with vertical motion when the goal column needs to hscroll.Eli Zaretskii2013-10-252-1/+17
| | | | | | | 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.
* * lisp/progmodes/ruby-mode.el (ruby-mode-menu): Use properDmitry Gutov2013-10-252-7/+22
| | | | | | | 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 `{'.
* * lisp/progmodes/ruby-mode.el (ruby-mode-menu): Add a menuJohn Anthony2013-10-242-1/+19
| | | | Fixes: debbugs:15600
* * lisp/progmodes/inf-lisp.el (inferior-lisp-menu): Add menu.John Anthony2013-10-242-1/+20
| | | | Fixes: debbugs:15599
* * lisp/vc/vc.el (vc-print-log): Don't use a working revision unlessGlenn Morris2013-10-242-1/+7
| | | | | | one was explicitly specified. Fixes: debbugs:15322
* * lisp/subr.el (add-to-list): Preserve return value in compiler-macro.Stefan Monnier2013-10-242-7/+13
| | | | Fixes: debbugs:15692
* Small fix to last changeLeo Liu2013-10-251-1/+1
|
* * progmodes/octave.el (octave-lookfor): Handle empty lookforRüdiger Sonderfeld2013-10-252-5/+22
| | | | | | result. Ask user to retry using '-all' flag. Fixes: debbugs:15701
* * lisp/emacs-lisp/smie.el: New smie-config system.Stefan Monnier2013-10-243-319/+711
| | | | | | | | | | | | | | | | | | | | | | (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).
* * lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2): Fix cut&paste.Helmut Eller2013-10-242-8/+11
| | | | Fixes: debbugs:15699
* * lisp/Makefile.in (abs_top_srcdir): Remove.Glenn Morris2013-10-242-2/+6
| | | | (update-subdirs): Use relative path to update-subdirs.
* Fix last changes to support whitespace in directory names.Eli Zaretskii2013-10-242-5/+12
| | | | | | | 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.
* * emacs-lisp/ert.el (ert-deftest): Bind macro `skip-unless'.Michael Albinus2013-10-242-21/+94
| | | | | | | | | | | | | (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.
* * lisp/Makefile.in (check-declare): Remove unnecessary path in -l argumentGlenn Morris2013-10-232-3/+4
|
* * lisp/Makefile.in (abs_top_srcdir): New, set by configure.Glenn Morris2013-10-232-1/+7
| | | | (update-subdirs): Correct build-aux location.
* * lisp/vc/vc.el (vc-print-root-log): Always set `default-directory'Dmitry Gutov2013-10-242-4/+7
| | | | value, whether we could auto-deduce `backend', or not.
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Fix the "curly blockDmitry Gutov2013-10-242-4/+8
| | | | | | | 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.
* * lisp/battery.el (battery-pmset): Handle OS X Mavericks (tiny change)Masashi Fujimoto2013-10-232-1/+5
| | | | Fixes: debbugs:15694
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Only align with parent ofStefan Monnier2013-10-232-2/+7
| | | | { if it is hanging.
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't return 0 forStefan Monnier2013-10-232-3/+8
| | | | :before ";".
* compile: Support GNU Make-4.0 directory quoting (tiny change)Jed Brown2013-10-232-2/+8
| | | | | | | * lisp/progmodes/compile.el (compilation-directory-matcher) (compilation-page-delimiter): Support GNU Make-4.0 directory quoting. Fixes: debbugs:15678
* * ido.el (ido-tidy): Handle read-only text.Leo Liu2013-10-232-13/+16
|
* Make building in directories with whitespace possibleGlenn Morris2013-10-222-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* lisp/gnus/mm-decode.el (mm-dissect-buffer): Revert last changeKatsumi Yamaoka2013-10-233-81/+15
| | | | | | | 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.
* * lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call): UseDmitry Gutov2013-10-232-2/+6
| | | | `following-char'.
* * lisp/emacs-lisp/smie.el (smie-rule-parent): Fix opener-test.Stefan Monnier2013-10-223-15/+14
| | | | | | * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Remove corresponding workaround. Fix indentation rule of ";" so it also applies when ";" is the parent.
* lisp/gnus/nndoc.el (nndoc-dissect-mime-parts-sub): Fix last changeKatsumi Yamaoka2013-10-221-1/+1
|
* lisp/gnus/mm-decode.el (mm-dissect-buffer): Guess content-type if the first ↵Katsumi Yamaoka2013-10-223-10/+90
| | | | | | token is missing in the Content-Type header lisp/gnus/nndoc.el (nndoc-dissect-mime-parts-sub): Ditto
* Mention the optional ‘display’ argument in doc strings.Xue Fuqiao2013-10-222-11/+30
| | | | | | | | * 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.
* * lisp/progmodes/ebnf2ps.el (ebnf-prologue): Avoid PS error with someMichael Gauland2013-10-212-1/+6
| | | | | | viewers such as evince when ebnf-production-name-p is nil. Fixes: debbugs:15625
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Remove outdatedDmitry Gutov2013-10-222-30/+29
| | | | | | | | | | | 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.
* * lisp/textmodes/remember.el (remember-diary-extract-entries):Stefan Monnier2013-10-212-1/+4
| | | | Avoid add-to-list.
* * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent after + used asStefan Monnier2013-10-212-6/+12
| | | | an instruction.
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add (almost) allDmitry Gutov2013-10-212-40/+62
| | | | | infix operators. (ruby-smie--implicit-semi-p): Add new operator chars.
* * lisp/progmodes/ruby-mode.el (ruby-mode-map): Add binding forDmitry Gutov2013-10-212-13/+41
| | | | | | | | | | | | `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.
* Allow comma separated lists after Java "implements".Alan Mackenzie2013-10-203-3/+14
| | | | | | | * 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.
* * lisp/startup.el (default-frame-background-mode): Remove unusedJohan Bockgård2013-10-202-2/+3
| | | | defvar.
* * lisp/progmodes/verilog-mode.el (verilog-mode): Don't setJohan Bockgård2013-10-202-1/+6
| | | | comment-indent-function globally.
* * lisp/cedet/semantic/db-mode.el (global-semanticdb-minor-mode): Remove hooksJohan Bockgård2013-10-202-2/+9
| | | | | correctly. (semanticdb-toggle-global-mode): Pass `toggle' to minor mode function.
* Make Info menu for GNUStep only for GUI.Jan Djärv2013-10-203-15/+18
| | | | | | | | * 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.
* Fix GNUStep specific menu items.Jan Djärv2013-10-203-11/+21
| | | | | | | | | * 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.
* * lisp/simple.el (newline): Only run post-self-insert-hook whenStefan Monnier2013-10-192-10/+22
| | | | called interactively.
* * lisp/icomplete.el (icomplete-with-completion-tables): Add :version.Johan Bockgård2013-10-192-0/+5
|
* Fix fontification bugs with constructors and const.Alan Mackenzie2013-10-192-19/+41
| | | | | | | | | | * 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.
* Fix TTY menus when they lead to a minibuffer prompt.Eli Zaretskii2013-10-192-19/+30
| | | | | | | | | 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>.
* * menu-bar.el: Don't make Services menu.Jan Djärv2013-10-192-3/+5
|
* ffap.el: handle "/usr/include/c++/<version>" directories.Rüdiger Sonderfeld2013-10-182-1/+30
| | | | | | | | 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.
* * lisp/ido.el (dired-other-frame): Only list directories.Joe Vornehm Jr.2013-10-182-0/+5
| | | | Fixes: debbugs:15638
* * net/tramp-smb.el (tramp-smb-maybe-open-connection): Fix an errorMichael Albinus2013-10-182-3/+9
| | | | | introduced on 2013-09-08, which results in an infinite loop requesting a password.
* Remove erroneously-committed merge comment.Reuben Thomas2013-10-181-1/+0
|