1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 16:21:07 -08:00
Commit graph

122778 commits

Author SHA1 Message Date
Stefan Monnier
4c0fed13e5 * src/syntax.c: Handle spurious e_property_truncated flag
* src/syntax.c (parse_sexp_propertize): Handle spurious
e_property_truncated flag.
(update_syntax_table_forward): Remove invalid assertion.
2015-09-23 12:33:48 -04:00
Eli Zaretskii
aab67529d2 Support ':relative-width' space display spec on text-mode terminals
* src/xdisp.c (produce_stretch_glyph): Support ':relative-width'
space display spec on text-mode terminals, by calling
PRODUCE_GLYPHS instead of x_produce_glyphs.  Remove the HAVE_WINDOW_SYSTEM
guards from the supporting code, as well as the test for a GUI frame.
2015-09-23 16:20:10 +03:00
Oleh Krehel
0a133c70f1 Move let-when-compile to lisp-mode.el
This fixes the bootstrapping problem of `let-when-compile' using
`cl-progv' while being in subr.el (i.e. before cl stuff was loaded).
2015-09-23 13:50:15 +02:00
Thomas Fitzsimmons
325200ac1d Do not include authorization header in an HTTP redirect
* lisp/url/url-http.el (url-http-parse-headers): Do not
automatically include Authorization header in redirect.
(Bug#21350)
2015-09-23 01:58:13 -04:00
Eli Zaretskii
a4d5717e7b Clarify documentation of ':relative-width'
* doc/lispref/display.texi (Specified Space): Document that
':relative-width' is only supported on GUI frames.
2015-09-22 19:51:47 +03:00
Eli Zaretskii
62831e7c3f Fix 'current-column' in presence of :relative-width
* src/indent.c (check_display_width): Support ':relative-width'
in a display spec that specifies a stretch glyph.  (Bug#21533)
2015-09-22 19:33:47 +03:00
Ken Manheimer
e5947fee04 Reformat the pdbtrack remote-file fix ChangeLog.2 entry
... to conform better to CONTRIBUTE guidelines.
2015-09-22 11:26:13 -04:00
Stefan Monnier
6c33e7ada5 * prolog.el: Fix indentation of empty line
* lisp/emacs-lisp/smie.el (smie-rules-function): Document new
`empty-line-token' element.
(smie-indent-empty-line): New function.
(smie-indent-functions): Add it.

* lisp/progmodes/prolog.el (prolog-smie-rules): Fix :list-intro behavior
and use the new `empty-line-token' element (bug#21526).
(prolog-mode-variables): Fix comment-start-skip setting to match
comment-start.

* test/indent/prolog.prolog: Add nested indentation tests.

* lisp/newcomment.el (comment-normalize-vars): Fix default value of
comment-start-skip not to misuse submatch 1.
2015-09-22 11:11:50 -04:00
Alan Mackenzie
2fa2c87cac Make description of `edebug-initial-mode' user friendly.
Fixes debbugs#21365.

dec/lispref/edebug.texi (Edebug Execution Modes): Change the
desscription
of `edebug-initial-mode' from that of its implementation to that of its
visual effect and use.  Move the paragraph higher up.
2015-09-22 12:45:00 +00:00
Eli Zaretskii
2e19cb4711 lisp/progmodes/gud.el (gud-format-command): Fix last commit
* lisp/progmodes/gud.el (gud-format-command): Don't use Tramp internal
functions 'tramp-file-name-localname' and 'tramp-dissect-file-name'.
2015-09-22 13:16:11 +03:00
Eli Zaretskii
948059e564 ; * doc/lispref/os.texi (File Notifications): Minor copy-edits. 2015-09-22 13:08:02 +03:00
Tassilo Horn
bfa1aa8e2b Improve last commit to process.c 2015-09-22 10:20:17 +02:00
Michael Albinus
170ed29b43 Implement gfile-valid-p
* lisp/filenotify.el (file-notify-callback): Fix typo.
(gfile-valid-p): Remove defalias.

* src/gfilenotify.c (dir_monitor_callback): Cancel the monitor if
the file or directory to be watched is deleted.
(Fgfile_add_watch): Make watch_object a triple.
(Fgfile_rm_watch): Check, whether watch is cancelled already.
(Fgfile_valid_p): New defun.
(syms_of_gfilenotify): Declare Sgfile_valid_p.
2015-09-22 08:40:08 +02:00
Tassilo Horn
27f871907c Remove callback-handled channels from Available set
* src/process.c (wait_reading_process_output): Remove channel from
Available set if it is handled by a callback, e.g., dbus or
inotify (bug#21313).
2015-09-22 07:43:39 +02:00
Mark Oteiza
084b8af8e0 Use lunate epsilon for TeX \epsilon
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
\varepsilon using GREEK SMALL LETTER EPSILON, and change \epsilon to use
GREEK LUNATE EPSILON SYMBOL
2015-09-21 16:45:58 -04:00
Stefan Monnier
7760f32c1f * lisp/progmodes/prolog.el: Fix nested electric if-then-else
* lisp/progmodes/prolog.el (prolog-find-unmatched-paren): Use innermost
rather than outermost paren (bug#21526).
2015-09-21 16:22:17 -04:00
Paul Eggert
e3a6246eff Improve git diff hunk headers for .el, .texi
Problem reported by Alan Mackenzie in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00826.html
* .gitattributes (*.el, *.texi): New patterns.
* autogen.sh: Configure diff.elisp.xfuncname and
diff.texinfo.xfuncname if using Git.
2015-09-21 11:56:50 -07:00
Eli Zaretskii
db828f62f6 Don't rely on defaults in decoding UTF-8 encoded Lisp files
* lisp/replace.el:
* lisp/textmodes/rst.el:
* lisp/whitespace.el: Add an explicit UTF-8 encoding tag.
2015-09-21 19:51:20 +03:00
Paul Eggert
818fc6e128 Clarify or replace a few \u escapes.
* doc/lispref/nonascii.texi (Character Properties)
More-detailed commentary for \u escapes.
* lisp/progmodes/python.el (python--prettify-symbols-alist):
* lisp/replace.el (query-replace-from-to-separator):
* lisp/textmodes/rst.el (rst-bullets, rst-re-alist-def)
(rst-mode-syntax-table):
* lisp/whitespace.el (whitespace-display-mappings):
Prefer actual character to \u escape when this makes the code
easier to follow in the usual case where Unicode chars can be
displayed.
2015-09-21 07:59:16 -07:00
Paul Eggert
cf91ea794b Pacify GCC -Wmaybe-uninitialized in xdisp.c
* src/xdisp.c (face_before_or_after_it_pos): Use do-while rather
than while loop to avoid GCC -Wmaybe-uninitialized diagnostic with
charpos.  The loop should always execute at least once anyway.
2015-09-21 07:45:53 -07:00
Tassilo Horn
aeb17b60f9 Signal error on invalid regexp
* lisp/textmodes/reftex-cite.el (reftex-extract-bib-entries): Signal an
error when the user tries searching with a regexp matching the empty
string.
2015-09-21 16:09:17 +02:00
Eli Zaretskii
d443345b13 Another fix of file-notify-tests for w32notify
* test/automated/file-notify-tests.el (file-notify-test02-events):
Further adaptation for w32notify: reduce the number of expected
'changed' events.  (Bug#21435)
2015-09-21 16:29:43 +03:00
Michael Albinus
01b547529b Adapt tests and manual for w32notify
* doc/lispref/os.texi (File Notifications): w32notify does not
send `attribute-changed' events.

* test/automated/file-notify-tests.el (file-notify--test-with-events):
Simplify parameters.  Adapt all callees.
(file-notify-test02-events): w32notify does not send
`attribute-changed' events.
(file-notify-test04-file-validity, file-notify-test05-dir-validity):
Do not skip in case of w32notify.  Simply ignore this part of the test.
2015-09-21 15:07:06 +02:00
Dima Kogan
127bafdc6d Fix setting breakpoints when remote-debugging
* lisp/progmodes/gud.el (gud-format-command): Send localized file
names to the debugger running on the remote.  (Bug#13304)
2015-09-21 13:54:21 +03:00
Nicolas Petton
0a893f0cfa Better docstring and parameter name for seq-find
* lisp/emacs-lisp/seq.el (seq-find): Improve the docstring and rename
the parameter `sentinel' to `default'.

* doc/lispref/sequences.texi (Sequence Functions): Update the
  documentation for `seq-find' accordingly.
2015-09-21 11:48:55 +02:00
Eli Zaretskii
e2f0dd2f49 Avoid infinite recursion while displaying box face
* src/xdisp.c (face_before_or_after_it_pos): Fix calculation of
the previous string/buffer character position under bidi
iteration.  (Bug#21428)
2015-09-21 12:35:26 +03:00
Anders Lindgren
18028318d8 Keep upper edge unchanged when changing size of NS frame (Bug#21415)
* src/nsterm.m (x_set_window_size): Keep upper frame edge unchanged
(Bug#21415).
2015-09-21 09:01:18 +02:00
Stefan Monnier
57d48c364c Subject: * lisp/progmodes/prolog.el: Improve handling of if/then/else
(prolog-smie-rules): Accomodate standard if/then/else special indentation.
(prolog-mode): Add . to electric-indent-chars.
(prolog-electric--if-then-else): Re-indent the line before adding space
after the new char (bug#21526).
2015-09-20 23:01:16 -04:00
Mark Oteiza
dadcf33984 Add prettify symbols to python-mode
lisp/progmodes/python.el (python-prettify-symbols-alist): New variable
lisp/progmodes/python.el (python-mode): Use it
2015-09-20 22:39:35 -04:00
Stefan Monnier
dd1e684619 * lisp/emacs-lisp/syntax.el (syntax-begin-function): Make obsolete 2015-09-20 15:53:51 -04:00
Jostein Kjønigsen
bf006d59e6 (compilation-error-regexp-alist-alist): Tone down guile-file
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Make guile-file a bit less enthusiastic (bug#21496).

Copyright-paperwork-exempt: yes
2015-09-20 15:46:28 -04:00
Drew Csillag
65d5ebdf4c * m4-mode.el (m4-font-lock-keywords): Fix m4_* highlighting
* lisp/progmodes/m4-mode.el (m4-font-lock-keywords): Fix recognition
of commands when they have a "m4_" prefix.
2015-09-20 15:35:21 -04:00
Paul Eggert
c7e69c404b '.' -> `.' in doc string
* lisp/emacs-lisp/timer.el (run-at-time): In doc string, quote
individual chars with grave quotes instead of straight quotes, as
this works better when they are translated to curved quotes.
2015-09-20 09:46:14 -07:00
Michael Albinus
f5bdcb3221 Improve file notifications, especially for Tramp
* doc/lispref/files.texi (Magic File Names):
Mention `file-notify-valid-p'.

* doc/lispref/os.texi (File Notifications):
Describe `file-notify-valid-p'.

* etc/NEWS: Add `file-notify-valid-p'.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Improve implementation.
(tramp-gvfs-monitor-file-process-filter): Rename from
`tramp-gvfs-file-gvfs-monitor-file-process-filter'.  Delete
process if appropriate.

* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Improve implementation.
(tramp-sh-gvfs-monitor-dir-process-filter): Rename from
`tramp-sh-file-gvfs-monitor-dir-process-filter'.  Delete process
if appropriate.
(tramp-sh-inotifywait-process-filter): Rename from
`tramp-sh-file-inotifywait-process-filter'.  Delete process if
appropriate.

* lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
Use `delete-process'
(tramp-handle-file-notify-valid-p): Check also, that file or
directory to be watched still exists.

* test/automated/file-notify-tests.el (file-notify--test-timeout):
New defun.  Use it at all places a timeout is needed.
(file-notify--test-cleanup): Delete directories recursively.
Cleanup also Tramp connections.
(file-notify-test02-events): Add tests for `attribute-change'.
(file-notify-test04-file-validity, file-notify-test05-dir-validity):
Add tests for `file-notify-rm-watch'.
2015-09-20 18:44:36 +02:00
Paul Eggert
ab11a1cf27 Use %s to format strings instead of splicing them
If FOO might contain quotes that are part of a file or variable
name, the quotes should not be translated when showing FOO’s name
in a diagnostic.  So, for example, (message (concat (FOO ": bar")))
is not quite right, as it would translate FOO’s quotes.
Change it to (message "%s: bar" FOO) instead.
* lisp/allout.el (allout-process-exposed):
* lisp/calc/calc-ext.el (calc-do-prefix-help):
* lisp/calc/calc-store.el (calc-store-into):
* lisp/calendar/todo-mode.el (todo-category-completions):
* lisp/cedet/semantic/complete.el (semantic-completion-message):
* lisp/org/ob-latex.el (convert-pdf):
* lisp/org/org-crypt.el (org-crypt-check-auto-save):
* lisp/org/ox-latex.el (org-latex-compile):
* lisp/org/ox-man.el (org-man-compile):
* lisp/org/ox-odt.el (org-odt--export-wrap):
* lisp/org/ox-texinfo.el (org-texinfo-compile):
* lisp/progmodes/ruby-mode.el (ruby-in-ppss-context-p):
* lisp/progmodes/verilog-mode.el (verilog-batch-execute-func)
(verilog-signals-combine-bus, verilog-read-defines)
(verilog-getopt-file, verilog-expand-dirnames)
(verilog-modi-lookup, verilog-modi-modport-lookup-one):
* lisp/term/ns-win.el (ns-spi-service-call):
Use %s to avoid translating quotes of file names etc. in diagnostics.
2015-09-20 09:42:05 -07:00
Stefan Monnier
2ad2f8b084 * lisp/progmodes/js.el (js--syntax-begin-function): Remove.
(js-mode): Don't set syntax-begin-function.
2015-09-20 12:41:03 -04:00
Stefan Monnier
9474c70a84 Don't assume syntax-begin-function is a symbol.
* lisp/font-lock.el (font-lock-compile-keywords): Don't assume
syntax-begin-function is a symbol.
2015-09-20 12:04:52 -04:00
Eli Zaretskii
6afe8168dd ; * ChangeLog.2: Fix typos and bad formatting, remove unneeded entries 2015-09-20 14:33:46 +03:00
Glenn Morris
48ef71e9be ; Auto-commit of ChangeLog files. 2015-09-20 06:24:04 -04:00
Eli Zaretskii
00a65e3238 Improve documentation of 'run-at-time'
* lisp/emacs-lisp/timer.el (run-at-time): Improve the doc string.
In particular, don't refer to 'diary-entry-time', because it is
unavailable until diary-lib is loaded.  Also, refer to
'timer-duration-words', not 'timer-duration', as the latter's doc
string says nothing about the accepted strings.
2015-09-20 09:34:24 +03:00
Jay Belanger
404f3aff4f * lisp/calc/calc-ext.el (calc-do-prefix-help): Tidy up error message. 2015-09-19 21:44:45 -05:00
Ken Manheimer
89898fcd83 Repair pdbtrack so it follows transition from one remote file to another.
* python.el (python-pdbtrack-set-tracked-buffer).
2015-09-19 21:34:36 -04:00
Artur Malabarba
df6f610725 * lisp/emacs-lisp/timer.el (run-at-time): Docstring formatting 2015-09-19 21:39:09 +01:00
Eli Zaretskii
2ebcda4da0 Adapt vc-src to the old-new vc-checkin API
* lisp/vc/vc-src.el (vc-src-checkin): Accept and ignore an
additional optional parameter.
2015-09-19 20:57:59 +03:00
Simen Heggestøyl
d9d2e37658 Add overflow module to CSS property list
* lisp/textmodes/css-mode.el (css-property-ids): Add properties from CSS
Overflow Module Level 3.
2015-09-19 16:25:40 +02:00
Eli Zaretskii
1ea1d75910 Fix documentation of "C-u C-x v v"
* doc/emacs/maintaining.texi (Advanced C-x v v): Make the
documentation of "C-u C-x v v" match what the code does.
2015-09-19 17:18:54 +03:00
Eli Zaretskii
9ea6c4df44 Resurrect the ability to specify a revision in vc-next-action
* lisp/vc/vc-bzr.el (vc-bzr-checkin):
* lisp/vc/vc-dav.el (vc-dav-checkin):
* lisp/vc/vc-git.el (vc-git-checkin):
* lisp/vc/vc-hg.el (vc-hg-checkin):
* lisp/vc/vc-mtn.el (vc-mtn-checkin): Accept and silently ignore
an additional optional argument, the revision to checkin.

* lisp/vc/vc-sccs.el (vc-sccs-checkin):
* lisp/vc/vc-cvs.el (vc-cvs-checkin):
* lisp/vc/vc-rcs.el (vc-rcs-checkin): Allow to optionally specify
a revision to checkin.

* lisp/vc/vc.el (vc-next-action): Allow to optionally specify the
revision when checking in files.

See http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00688.html
for the details.
2015-09-19 13:31:38 +03:00
Wilson Snyder
ba3495674e Fix checkdoc warnings.
* lisp/progmodes/verilog-mode.el (verilog-forward-sexp-function)
    (verilog-decls-princ) (verilog-modport-princ)
    (verilog-modi-modport-lookup-one): Fix checkdoc warnings.
2015-09-18 08:50:03 -04:00
Wilson Snyder
17e5f43697 /svaha/wsnyder/d/log 2015-09-18 08:29:32 -04:00
Jay Belanger
fb875ee6ff Fix the routine for help on Calc's prefixes.
* lisp/calc/calc-ext.el (calc-prefix-help-retry): New variable.
(calc-do-prefix-help): Use `read-char' to determine the next Calc
command.
2015-09-17 22:22:18 -05:00