Glenn Morris
d136f18462
Doc fixes
...
* doc/misc/autotype.texi (Skeleton Language):
* doc/misc/message.texi (Header Commands):
* lisp/allout-widgets.el (allout-widgets-tally)
(allout-decorate-item-guides):
* lisp/menu-bar.el (menu-bar-positive-p):
* lisp/minibuffer.el (completion-pcm-complete-word-inserts-delimiters):
* lisp/cedet/ede.el (ede-project-directories, ede-check-project-directory):
* lisp/cedet/semantic/ia-sb.el (semantic-ia-sb-show-doc):
* lisp/cedet/semantic/tag.el (semantic-tag-in-buffer-p):
* lisp/cedet/semantic/bovine/c.el (semantic-tag-abstract-p):
* lisp/gnus/gnus-registry.el (gnus-registry-install-p): Doc fix.
* lisp/progmodes/gdb-mi.el (gdbmi-same-start, gdbmi-is-number):
* lisp/progmodes/js.el (js--inside-param-list-p)
(js--inside-dojo-class-list-p, js--forward-destructuring-spec):
* lisp/progmodes/prolog.el (region-exists-p):
* lisp/progmodes/verilog-mode.el (verilog-scan-cache-ok-p):
* lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p):
* lisp/url/url-parse.el (url-generic-parse-url):
* src/floatfns.c (Fisnan):
* src/profiler.c (Fprofiler_cpu_running_p):
Doc fixes (replace `iff').
Fixes: debbugs:17309
2014-05-01 19:55:25 -04:00
Stefan Monnier
0e8a933149
* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
...
mouse binding as well.
(completion-list-mode, completion-setup-function): Adjust docstring and
echo area message accordingly.
* lisp/progmodes/idlwave.el (idlwave-choose-completion): Adjust to new
calling convention of choose-completion.
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/term.el (term-dynamic-list-completions): Accept choose-completion.
Fixes: debbugs:17302
2014-04-22 22:22:06 -04:00
Stefan Monnier
c08684513a
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
...
&, |, +, - and * can't be a division.
Fixes: debbugs:17317
2014-04-22 21:56:18 -04:00
Stefan Monnier
f0ffb9b767
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
...
Don't prettify a word within a symbol.
2014-04-21 16:31:22 -04:00
Stefan Monnier
fe36068f12
* lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Handle variable
...
assignments such as "case=hello".
Fixes: debbugs:17297
2014-04-19 13:14:27 -04:00
Stefan Monnier
c76a7a5cd2
* lisp/progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
...
here-documents.
Fixes: debbugs:17262
2014-04-16 10:13:06 -04:00
Leo Liu
2e611da66e
Don't break emacs <= 24.3 just yet
...
* progmodes/octave.el (completion-table-with-cache): Define if not
available.
(octave-goto-function-definition)
(octave-sync-function-file-names)
(octave-find-definition-default-filename): Backquote upattern for
compatibility.
2014-04-12 12:07:53 +08:00
Feng Li
39764caa7f
* lisp/progmodes/pascal.el (pascal-font-lock-keywords): Fix incorrect format
...
entry; use symbol boundaries to avoid mis-matches.
2014-04-10 09:56:28 -04:00
Dmitry Gutov
0122b24d90
Highlight more Module methods
...
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight more
Module methods.
Fixes: debbugs:17216
2014-04-09 04:14:37 +04:00
João Távora
7aecc2f6ca
Fix triple-quoting electricity in python-mode
...
* lisp/progmodes/python.el (python-electric-pair-string-delimiter): Fix
triple-quoting electricity.
* test/automated/python-tests.el (python-triple-quote-pairing): New test.
(python-syntax-after-python-backspace): New test.
Fixes: debbugs:17192
2014-04-07 00:23:45 +01:00
Stefan Monnier
062e286b7c
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Handle $'
...
used as a variable.
Fixes: debbugs:17174
2014-04-02 20:41:09 -04:00
Stefan Monnier
8a7fd44212
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Add "foreach"
...
and "for" statement modifiers introducing expressions.
Fixes: debbugs:17116
2014-04-02 15:50:05 -04:00
Stefan Monnier
66f50b12de
* lisp/progmodes/perl-mode.el (perl-indent-new-calculate):
...
Handle forward-sexp failure.
Fixes: debbugs:16985
2014-04-02 15:47:50 -04:00
Glenn Morris
2998fa1b73
Fix up some Version: headers that might confuse package.el
2014-03-31 15:01:59 -04:00
Dmitry Gutov
8de64bb862
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
...
special globals with font-lock-builtin-face.
Fixes: debbugs:17057
2014-03-27 10:21:15 +02:00
Dmitry Gutov
42ebc34ea8
Fix bug#17097
...
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Don't propertize `?' or `!' as symbol constituent when after
colon.
2014-03-27 08:53:13 +02:00
Dmitry Gutov
c2d6c639cf
Match special globals in Ruby better
...
* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re):
Match special global variables without curlies, too.
(ruby-font-lock-keywords): Simplify the matcher for special global
variables. Don't require a non-word character after the variable.
Fixes: debbugs:17057
2014-03-24 10:53:56 +02:00
Dmitry Gutov
1fc8f6559a
Fix bug#17050
...
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Add indentation rule for ` @ '.
2014-03-21 06:26:39 +02:00
Dmitry Gutov
4f8aeb84b6
Fix debbugs#16971
...
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables): Set
`comment-use-syntax' to t to avoid the unnecessary runtime check.
Set `comment-start-skip' to a simpler value that doesn't try to
check if the semicolon is escaped (this is handled by
`syntax-ppss' now).
* lisp/progmodes/scheme.el (scheme-mode-variables): Same.
2014-03-17 08:22:58 +02:00
Juanma Barranquero
fd16b061a9
lisp/progmodes/python.el: Fix docstring typos.
...
(defconst, python-syntax-count-quotes)
(python-indent-region, python-indent-shift-right)
(python-indent-dedent-line-backspace, python-nav-backward-sexp)
(python-nav-backward-sexp-safe, python-nav-backward-up-list)
(python-shell-prompt-block-regexp, python-shell-prompt-output-regexp)
(python-shell-prompt-pdb-regexp, python-shell-enable-font-lock)
(inferior-python-mode, python-shell-make-comint, run-python-internal)
(python-shell-buffer-substring, python-shell-send-buffer)
(python-pdbtrack-activate, python-pdbtrack-stacktrace-info-regexp)
(python-completion-complete-at-point, python-fill-docstring-style)
(python-eldoc-function, python-imenu-format-item-label)
(python-imenu-format-parent-item-label)
(python-imenu-format-parent-item-jump-label)
(python-imenu--build-tree, python-imenu-create-index)
(python-imenu-create-flat-index): Fix docstring typos.
(python-indent-context, python-shell-prompt-regexp, run-python):
Remove superfluous backslashes.
(python-indent-line, python-nav-beginning-of-defun)
(python-shell-get-buffer, python-shell-get-process)
(python-info-current-defun, python-info-current-line-comment-p)
(python-info-current-line-empty-p, python-util-popn): Doc fixes.
(python-indent-post-self-insert-function, python-shell-send-file)
(python-shell-completion-get-completions)
(python-shell-completion-complete-or-indent)
(python-eldoc--get-doc-at-point): Reflow docstrings.
2014-03-15 18:37:58 +01:00
Juanma Barranquero
7644aa970d
lisp/net/*.el, lisp/progmodes/*.el: Fix docstring typos.
...
* net/socks.el (socks, socks-override-functions)
(socks-find-services-entry): FT
* progmodes/hideif.el (hif-set-var, hif-nexttoken, hif-comma)
(hif-find-ifdef-block):
* progmodes/modula2.el (m2-indent): Fix docstring typos.
* net/tls.el (tls-program): Reflow docstring.
* progmodes/opascal.el (opascal-compound-block-indent)
(opascal-case-label-indent): Fix docstring typos.
(opascal-mode): Fix typos; let defined-derived-mode document mode hook.
* progmodes/pascal.el (pascal-mode-abbrev-table)
(pascal-imenu-generic-expression, pascal-auto-endcomments)
(pascal-mark-defun, pascal-comment-area, pascal-indent-level)
(pascal-outline-mode): Fix docstring typos.
(pascal-mode): Let define-derived-mode document mode hook.
(pascal-uncomment-area): Reflow.
(pascal-exclude-str-start, pascal-exclude-str-end): Add docstring.
2014-03-14 01:22:33 +01:00
Dmitry Gutov
1f44df94fa
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Fontify
...
multiple adjacent negation chars.
Fixes: debbugs:17004
2014-03-13 15:37:27 +02:00
Glenn Morris
2a55bc7ab5
* lisp/progmodes/sh-script.el: Fix whitespace in previous change.
2014-03-05 14:02:55 -05:00
Glenn Morris
bd2d43dc74
Recognize dash shell
...
* lisp/files.el (interpreter-mode-alist):
* lisp/progmodes/sh-script.el (sh-ancestor-alist): Add dash.
Fixes: debbugs:16938
2014-03-05 13:58:16 -05:00
Stefan Monnier
8d4901dc71
* lisp/electric.el (electric-indent-mode-has-been-called): Remove.
...
(electric-indent-mode): Fix accordingly.
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Only hook into
electric-indent-mode-hook if we obey electric-indent-mode.
(c-basic-common-init): Use (fboundp 'electric-indent-local-mode) to
decide whether we obey electric-indent-mode.
(c-change-set-fl-decl-start, c-extend-after-change-region):
Silence warnings.
(c-electric-indent-mode-hook): Assume we do want to obey
electric-indent-mode.
2014-03-03 23:03:34 -05:00
Dmitry Gutov
1850913d96
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
...
regexp options.
Fixes: debbugs:16914
2014-03-02 00:04:59 +02:00
Emilio C. Lopes
289996f5e1
* lisp/progmodes/sql.el (sql-interactive-mode): Avoid setting global value
...
of comint-input-ring-separator.
Fixes: debbugs:16814
2014-02-27 20:55:12 -05:00
Dmitry Gutov
dfdb365c4c
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Handle the
...
inconsistent second element of the list returned by
`smie-indent--parent'.
(ruby-font-lock-keywords): Disqualify any identifier before `=' as
method call.
2014-02-23 10:26:40 +02:00
Dmitry Gutov
62f9502226
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially
...
after `=>'.
Fixes: debbugs:16811
2014-02-23 07:53:53 +02:00
Dmitry Gutov
cb8f50a75c
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Add missing "or".
2014-02-21 17:39:17 +02:00
Alan Mackenzie
29238d289d
Connect electric-indent-mode up with CC Mode. Bug #15478 .
...
* progmodes/cc-mode.el (c-initialize-cc-mode): add CC Mode hooks
to electric-indent-{,local-}-mode.
(c-basic-common-init): Set electric-indent-inhibit. Initialise
c-electric-flag from electric-indent-mode.
(c-electric-indent-mode-hook, c-electric-indent-local-mode-hook):
New hook functions which propagate electric-indent-mode to CC Mode.
* progmodes/cc-cmds.el (c-toggle-electric-state): When C-c C-l is
hit, toggle electric-indent-local-moode.
* electric.el (electric-indent-mode-has-been-called): New variable.
2014-02-17 18:16:32 +00:00
Michael Mauger
9b0c01f7f5
* progmodes/sql.el: Version 3.4
...
(sql-oracle-options): New default value ("-L").
(sql-mode-oracle-font-lock-keywords): Added placeholder highlighting.
(sql-placeholders-filter): Correct placeholder pattern.
(sql-read-table-name): Bug fix. Detect absence of SQLi process.
(sql-login-delay): New variable.
(sql-product-interactive): Use it.
2014-02-15 17:50:45 -05:00
Glenn Morris
b2bf2a254f
Mention read-regexp in doc of functions that use it
...
* lisp/dired.el (dired-read-regexp):
* lisp/faces.el (list-faces-display):
* lisp/misearch.el (multi-isearch-read-matching-buffers)
(multi-isearch-read-matching-files):
* lisp/play/cookie1.el (cookie-apropos):
* lisp/progmodes/grep.el (grep-read-regexp): Doc fixes.
2014-02-13 22:59:24 -08:00
Daniel Colascione
0b87142f24
Fix flymake in narrowed buffers
2014-02-13 14:37:29 -08:00
Dmitry Gutov
5af9fbadd1
* lisp/progmodes/js.el (js-indent-line): Don't widen.
...
http://lists.gnu.org/archive/html/emacs-devel/2012-06/msg00276.html
2014-02-12 08:23:42 +02:00
Lars Ingebrigtsen
3ab49e2cb0
* progmodes/grep.el (find-program): Doc fix.
...
Fixes: debbugs:14289
2014-02-09 22:44:49 -08:00
Glenn Morris
34dc21db6e
Replace "Maintainer: FSF" with the emacs-devel mailing address
2014-02-09 17:34:22 -08:00
Alan Mackenzie
411141fb8e
Fix c-invalidate-state-cache on narrowed buffers.
...
progmodes/cc-defs.el (c-with-all-but-one-cpps-commented-out): Widen when
setting and clearing the CPP delimiter properties.
2014-02-09 12:34:25 +00:00
Fabián Ezequiel Gallina
dd27d13b50
* progmodes/python.el (python-shell-send-string):
...
(python-shell-send-string-no-output): Fix docstring.
Fixes: debbugs:16547
2014-02-04 16:35:52 -03:00
Dmitry Gutov
6da8227cfa
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): `private',
...
`protected' and `public' can also be called without arguments.
2014-02-03 17:59:39 +02:00
Alan Mackenzie
99f7b0a6d6
c-parse-state. Don't "append-lower-brace-pair" in certain
...
circumstances. Also fix an obscure bug where "\\s!" shouldn't be
recognised as a comment.
* progmodes/cc-engine.el (c-state-pp-to-literal): Check for "\\s!"
as well as normal comment starter.
(c-parse-state-get-strategy): Extra return possibility
'back-and-forward.
(c-remove-stale-state-cache): Extra element CONS-SEPARATED in
return value list to indicate replacement of a brace-pair cons
with its car.
(c-parse-state-1): With 'back-and-forward, only call
c-append-lower-brace-pair-to state-cache when cons-separated.
2014-02-02 16:28:52 +00:00
Daniel Colascione
b8d552c2f0
Make loading cc-mode silent
2014-02-02 02:25:29 -08:00
Dmitry Gutov
68e004e0cd
Fix bug#16610
...
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): For built-ins
that require arguments, check that they're followed by something that
looks like argument.
2014-02-01 19:06:08 +02:00
Dmitry Gutov
a09beb3df2
Fix bug#16609
...
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Check for
`:' before binary operators. Don't check for `:'
before `[' and `(', or their syntax status. A percent literal
can't end with either.
2014-02-01 16:54:58 +02:00
Dmitry Gutov
2f313daf4a
Fixup the documentation for the previous change
...
* etc/NEWS: Mention `ruby-align-chained-calls'.
* lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): Update the
docstring and add :version tag.
Fixes: debbugs:16593
2014-01-31 19:33:12 +02:00
Dmitry Gutov
e2a67bd08e
Implement user option ruby-align-chained-calls
...
* lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): New option.
(ruby-smie-grammar): Make "." right-associative. Make its priority
lower than the ternary and all binary operators.
(ruby-smie-rules): Indent "(" relative to the first non-"."
parent, or the first "." parent at indentation. Use
`ruby-align-chained-calls' for indentation of "." tokens.
* test/automated/ruby-mode-tests.el (ruby-align-chained-calls):
New test.
Fixes: debbugs:16593
2014-01-31 19:13:49 +02:00
Glenn Morris
b7e615b9bc
Fix for c-submit-bug-report and reporter.el void-variable handling
...
* lisp/mail/reporter.el (reporter-dump-variable): In case of void-variable,
do not mess with mail-buffer position (fixes 2009-11-03 change).
* lisp/progmodes/cc-mode.el (c-submit-bug-report):
Check auto-fill-mode is bound.
Fixes: debbugs:16592
2014-01-30 21:39:40 -05:00
Glenn Morris
ad78f43200
Replace refs to obsolete alias turn-on-eldoc-mode' with eldoc-mode'
...
* lisp/hexl.el (hexl-mode-hook):
* lisp/ielm.el (ielm-mode-hook):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-hook)
(lisp-interaction-mode-hook):
* lisp/progmodes/cfengine.e (cfengine3-documentation-function):
Replace obsolete alias `turn-on-eldoc-mode' with `eldoc-mode'.
* lisp/emacs-lisp/eldoc.el: Same in commentary.
2014-01-29 23:42:57 -08:00
Luke Lee
a91289312d
Aggregate hideif parser enhancements for a complete supporting of C/C++
...
expressions and operator precedence. Also apply code review changes.
* lisp/progmodes/hideif.el : Related enhancements.
2014-01-28 15:02:34 +08:00
Glenn Morris
ece4bae50f
Doc, comment, etc updates for increased use of locate-user-emacs-file
...
This should have been a prerequisite for making these changes in the
first place.
* doc/emacs/calendar.texi (Time Intervals):
* doc/misc/idlwave.texi (Lesson III---User Catalog, Online Help)
(Starting the Shell, Catalogs, User Catalog):
* doc/misc/remember.texi (Quick Start):
* doc/misc/viper.texi:
* doc/misc/vip.texi (Customization, Customizing Constants)
(Customizing Key Bindings): Update for files being in ~/.emacs.d/.
* lisp/ido.el (ido-save-directory-list-file):
* lisp/saveplace.el (save-place-file):
* lisp/calendar/timeclock.el (timeclock-file):
* lisp/net/quickurl.el (quickurl-url-file):
* lisp/obsolete/otodo-mode.el (todo-file-do, todo-file-done, todo-file-top):
* lisp/progmodes/idlwave.el (idlwave-config-directory):
* lisp/textmodes/remember.el (remember-data-file):
Bump :version.
* lisp/shadowfile.el (shadow-info-file, shadow-todo-file): Doc fix.
* lisp/strokes.el (strokes-file): Doc fix. Bump :version.
(strokes-help): Doc fix.
* lisp/emulation/viper-init.el (viper-vi-style-in-minibuffer): Doc fix.
* lisp/emulation/viper.el (viper): Doc fix for custom group.
(top-level): Remove oh-so-no-longer-relevant text about vip.
* lisp/obsolete/otodo-mode.el (todo-prefix): Doc fix.
* etc/NEWS: Related edits.
2014-01-26 18:02:28 -08:00