1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

110652 commits

Author SHA1 Message Date
Stefan Monnier
dd8791e96f * lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Provide specialized
completion tables when completing error conditions and
`declare' arguments.
(lisp-complete-symbol, field-complete): Mark as obsolete.
(check-parens): Unmatched parens are user errors.
* lisp/minibuffer.el (minibuffer-completion-contents): Mark as obsolete.
2013-04-17 16:52:02 -04:00
Agustín Martín
ffe54a139d textmodes/flyspell.el: Don't check pre-word if buffer was switched.
If command changed the buffer, the decision may be made based on the
current buffer even though it should based on the previous one.  This
may lead to false positives and more importantly to errors since
`flyspell-pre-point' is buffer local so it may have unsanitised value
(such as nil) in previous buffer.
    
To be honest, I'm not sure how this can happen since
`flyspell-pre-point' is set in previous buffer, but nonetheless, I've
been encountering the error for quite some time and finally decided to
fix it.  Interestingly, line making `flyspell-pre-point'
a buffer-local variable has a very revealing "Why?? --Stef" comment.
    
To avoid the problem, change flyspell-check-pre-word-p so that it does
not allow checking of pre-word if command changed buffer
(ie. `flyspell-pre-buffer' is not current buffer).
2013-04-17 20:03:46 +02:00
Agustín Martín
ec7e39f247 ispell.el: use `comment-normalize-vars' in ispell-add-per-file-word-list (Bug #14214). 2013-04-17 19:48:10 +02:00
Fabián Ezequiel Gallina
083850a6a1 New defun movement commands.
* lisp/progmodes/python.el (python-nav--syntactically)
(python-nav--forward-defun, python-nav-backward-defun)
(python-nav-forward-defun): New functions.

* test/automated/python-tests.el (python-nav-backward-defun-1)
(python-nav-forward-defun-1): New tests.
2013-04-17 02:08:20 -03:00
Fabián Ezequiel Gallina
619ed6e18a * progmodes/python.el (python-syntax--context-compiler-macro): New defun.
(python-syntax-context): Use named compiler-macro for backwards
compatibility with Emacs 24.x.
2013-04-16 23:52:50 -03:00
Leo Liu
ad64b83d9b Fix last change 2013-04-17 09:49:22 +08:00
Leo Liu
7a1beb6cf1 * progmodes/octave-mod.el (octave-mode-map): Fix key binding to
octave-hide-process-buffer.
2013-04-17 09:46:26 +08:00
Stefan Monnier
2d3fa3e502 * lisp/vc/vc-hg.el (vc-hg-annotate-re): Disallow ": " in file names.
Fixes: debbugs:14216
2013-04-16 20:50:44 -04:00
Jean-Philippe Gravel
7ce5be5461 * lisp/progmodes/gdb-mi.el (gdbmi-bnf-incomplete-record-result):
Fix adjustment of offset when receiving incomplete responses from GDB.

Fixes: debbugs:14129
2013-04-16 20:35:22 -04:00
Stefan Monnier
351edece98 * lisp/progmodes/python.el (python-mode-skeleton-abbrev-table): Rename from
python-mode-abbrev-table.
(python-skeleton-define): Adjust accordingly.
(python-mode-abbrev-table): New table that inherits from it so that
python-skeleton-autoinsert does not affect non-skeleton abbrevs.
* lisp/abbrev.el (abbrev--symbol): New function, extracted from abbrev-symbol.
(abbrev-symbol): Use it.
(abbrev--before-point): Use it since we already handle inheritance.
2013-04-16 13:28:11 -04:00
Leo Liu
613f948181 * progmodes/octave-mod.el (octave-mode-map): Remove redundant key
binding to info-lookup-symbol.
2013-04-17 00:38:31 +08:00
Michael Albinus
a7bef50586 * tramp.texi (Frequently Asked Questions): Precise, how to define
an own ControlPath.
2013-04-16 10:11:56 +02:00
Katsumi Yamaoka
cabdbff0cf lisp/gnus/ChangeLog: Fix last change 2013-04-16 06:49:46 +00:00
David Edmondson
2250b35157 lisp/gnus/shr.el: Support <img src="data:..."> 2013-04-16 06:44:35 +00:00
Juanma Barranquero
f4ad7ea14b Fix typos in ChangeLogs. 2013-04-16 04:52:53 +02:00
Juanma Barranquero
51646b62bd Silence byte-compiler warnings.
lisp/minibuffer.el (completion--twq-all):
lisp/term/ns-win.el (ns-initialize-window-system):
lisp/term/w32-win.el (w32-initialize-window-system): Mark unused argument.
2013-04-16 04:41:37 +02:00
Juanma Barranquero
9cc2810b69 src/minibuf.c (Ftest_completion): Silence compiler warning. 2013-04-16 04:39:47 +02:00
Stefan Monnier
36c0a3016e * lisp/emacs-lisp/nadvice.el (add-function): Default simple vars to their
global bindings.
2013-04-15 22:10:16 -04:00
Stefan Monnier
efb3f01dba * lisp/doc-view.el (doc-view-start-process): Handle url-handler directories. 2013-04-15 20:51:46 -04:00
Dmitry Gutov
fb549d640a * lisp/progmodes/ruby-mode.el (ruby-beginning-of-defun)
(ruby-end-of-defun, ruby-move-to-block): Bind `case-fold-search'
to nil.
(ruby-end-of-defun): Remove the unused arg, change the docstring
to reflect that this function is only used as the value of
`end-of-defun-function'.
(ruby-beginning-of-defun): Remove "top-level" from the docstring,
to reflect an earlier change that beginning/end-of-defun functions
jump between methods in a class definition, as well as top-level
functions.
2013-04-16 03:07:14 +04:00
Stefan Monnier
21e8fe2f85 * lisp/minibuffer.el (minibuffer-complete): Don't just scroll
a *Completions* that's been iconified.
(minibuffer-force-complete): Make sure repetitions do cycle when going
through completion-in-region -> minibuffer-complete.
2013-04-15 15:55:41 -04:00
Christopher Schmidt
8fa2654ed8 * etc/NEWS, doc/lispref/tips.texi (Coding Conventions): Mention
separation of package descriptor and name of internal symbols by
two hyphens.
2013-04-15 19:01:00 +02:00
Alan Mackenzie
20e527d0c5 Correct the placement of c-cpp-delimiters when there're #s not at col 0.
* progmodes/cc-langs.el (c-anchored-cpp-prefix): Reformulate and
        place a submatch around the #.
        * progmodes/cc-mode.el(c-neutralize-syntax-in-and-mark-CPP): Start
        a search at BOL.  Put the c-cpp-delimiter category text propertiy
        on the #, not BOL.
2013-04-15 16:10:24 +00:00
Stefan Monnier
dabefae5be * lisp/emacs-lisp/nadvice.el: Properly test names when adding advice.
(advice--member-p): New arg `name'.
(advice--add-function, advice-member-p): Use it.

Fixes: debbugs:14202
2013-04-15 11:06:51 -04:00
Alan Mackenzie
85c9ab6469 Reformulate java imenu-generic-expression.
The old expression contained ill formed regexps.

        * progmodes/cc-menus.el (cc-imenu-java-ellipsis-regexp)
        (cc-imenu-java-type-spec-regexp, cc-imenu-java-comment-regexp)
        (cc-imenu-java-method-arg-regexp): New defconsts.
        (cc-imenu-java-build-type-args-regex): New defun.
        (cc-imenu-java-generic-expression): Fixed, to remove "ambiguous"
        handling of spaces in the regexp.
2013-04-15 14:32:20 +00:00
Michael Albinus
dbde58a603 net/tramp.texi: Improve last change. 2013-04-15 15:42:29 +02:00
Agustín Martín
0f821d9947 ispell.el: No longer mark as wrong-by-flyspell words just accepted by ispell (bug #14178).
textmodes/ispell.el (ispell-command-loop): Remove flyspell highlighting 
of a word when ispell accepts it (bug #14178).
2013-04-15 12:00:14 +02:00
Michael Albinus
eb922adfdb * net/ange-ftp.el (ange-ftp-run-real-handler-orig): New defun,
uses code from the previous `ange-ftp-run-real-handler'.
(ange-ftp-run-real-handler): Set it to `tramp-run-real-handler'
only in case that function exist.  This is needed for proper
unloading of Tramp.
2013-04-15 11:43:20 +02:00
Michael Albinus
7a55aa139a * tramp.texi (Frequently Asked Questions): New item for
ControlPath settings.
2013-04-15 10:52:19 +02:00
Tassilo Horn
4d9a0979f6 * textmodes/reftex-vars.el (reftex-label-regexps): New defcustom.
* textmodes/reftex.el (reftex-compile-variables): Use it.
2013-04-15 09:55:05 +02:00
Eli Zaretskii
5fbcd23785 ChangeLog for the last commit. 2013-04-15 10:29:39 +03:00
Eli Zaretskii
fd16b54c72 More debugging code to investigate bug #14062.
src/w32fns.c (w32_wnd_proc): Add more assertions to investigate
 bug#14062.
 src/frame.h (WINDOW_FRAME): Protect macro and its argument with
 parentheses.
 src/dispextern.h (CURRENT_MODE_LINE_HEIGHT)
 (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P)
 (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with
 parentheses where appropriate.
2013-04-15 10:27:56 +03:00
Andrew Cohen
35c5bbbad0 lisp/gnus/nnir.el (nnir-request-set-mark): Make sure we are in the right group 2013-04-14 22:16:44 +00:00
Paul Eggert
54ac5d4745 Spelling fixes. 2013-04-14 14:57:21 -07:00
Paul Eggert
9e3379a08b * keyboard.c (timer_start_idle): Remove no-longer-used local. 2013-04-14 13:33:57 -07:00
Eli Zaretskii
ddd6b68524 Improve doc strings of left/right-margin/fringe-width.
src/buffer.c (syms_of_buffer) <left-margin-width, right-margin-width>
 <left-fringe-width, right-fringe-width, fringes-outside-margins>:
 Mention in the doc string that setting these variables takes
 effect only after a call to set-window-buffer.  (Bug#14200)
2013-04-14 09:51:15 +03:00
Stefan Monnier
91e8293cc5 * lisp/files.el (normal-mode): Only use default major-mode if no other mode
was specified.

Fixes: debbugs:14089
2013-04-13 22:55:21 -04:00
Stefan Monnier
830aed4d5e * lisp/emacs-lisp/trace.el (trace-values): New function. 2013-04-13 21:02:29 -04:00
Stefan Monnier
a829b0dc89 * lisp/files.el: Allow : in local variables.
(hack-local-variable-regexp): New var.
(hack-local-variables-prop-line, hack-local-variables): Use it.

Fixes: debbugs:14089
2013-04-13 20:59:48 -04:00
Roland Winkler
7ae9f0fb99 lisp/textmodes/bibtex.el (bibtex-search-entries): Bug fix 2013-04-13 15:45:03 -05:00
Roland Winkler
6646e84821 lisp/textmodes/bibtex.el (bibtex-url): Doc fix 2013-04-13 15:41:52 -05:00
Roland Winkler
23a0e159ee lisp/textmodes/bibtex.el (bibtex-initialize): If the current buffer does not visit a BibTeX file, exclude it from the list of buffers returned by bibtex-initialize 2013-04-13 15:38:52 -05:00
Stephen Berman
0aa3616eed Make `split-window' a non-interactive function.
* doc/lispref/windows.texi (Splitting Windows): Change category of
split-window from a command to a function.

* etc/NEWS: Mention fixing `split-window' to be non-interactive.

* window.el (split-window): Remove interactive form, since as a
command this function is a special case of split-window-below.
Correct doc string.
2013-04-13 16:37:20 +02:00
Glenn Morris
8c35e3c3b4 Auto-commit of generated files. 2013-04-13 06:17:45 -04:00
Eli Zaretskii
29b79ba197 Fix vertical cursor motion when there are overlay strings at EOL.
src/indent.c (Fvertical_motion): Don't consider display strings on
 overlay strings as display strings on the buffer position we
 started from.  This prevents vertical cursor motion from jumping
 more than one line when there's an overlay string with a display
 property at end of line.
 Reported by Karl Chen <Karl.Chen@quarl.org> in
 http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00362.html.
2013-04-13 11:54:02 +03:00
Roland Winkler
011cddd649 faces.el (read-face-name): Do not override value of arg default, call instead face-at-point 2013-04-12 20:10:09 -05:00
Stefan Monnier
562c6ee945 * src/window.c (select_window): `record_buffer' even if window is
already selected.

Fixes: debbugs:14191
2013-04-12 13:32:52 -04:00
Katsumi Yamaoka
320742098b gnus-msg.el (gnus-msg-mail): Make it avoid using posting styles corresponding to any existing group (Bug#14166) 2013-04-12 15:17:47 +00:00
Michael Albinus
f24e0036b1 * info.el (Info-file-list-for-emacs): Add "tramp" and "dbus". 2013-04-12 15:56:03 +02:00
Ken Brown
e8bdb06e29 * configure.ac (canonical): Adapt to 64-bit Cygwin. 2013-04-12 09:00:57 -04:00