1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00
Commit Graph

123178 Commits

Author SHA1 Message Date
Michael Albinus
270a17fe4d Add "afp" method to Tramp
* doc/misc/tramp.texi (GVFS based methods): Describe `afp' method.

* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "afp" method.
(tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
(tramp-gvfs-maybe-open-connection): Support also "afp".
(tramp-gvfs-handle-file-attributes): Handle the case of empty
"owner::user" and "owner::group" entries.
2015-10-29 14:05:55 +01:00
Andy Moreton
dc95cb8c2d Handle negative coordinates in ‘x_calc_absolute_position’
* src/w32term.c (x_calc_absolute_position): Find display origin to
allow for negative coordinates.
2015-10-29 08:46:43 +01:00
Stefan Monnier
d7a67c5a2f (internal--syntax-propertize): Save match-data here (bug#21766)
* lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data.
* lisp/simple.el (delete-trailing-whitespace): Undo last change.
2015-10-28 22:18:47 -04:00
Dmitry Gutov
ffa41ad2a0 Don't require default-directory to end with a slash
* doc/lispref/files.texi (Magic File Names): Document the change
in unhandled-file-name-directory.

* lisp/url/url-handlers.el
(url-handler-unhandled-file-name-directory): Update accordingly.

* src/buffer.c (default-directory): Update the docsting.

* src/fileio.c (unhandled-file-name-directory): Default to calling
`file-name-as-directory'
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02294.html).
2015-10-29 03:01:45 +02:00
Artur Malabarba
42eb249ebd * lisp/isearch.el: Delete some outdated comments 2015-10-29 00:22:50 +00:00
Vibhav Pant
2765945d61 Fix eshell/clear not working if the output has a small line count
* lisp/eshell/esh-mode.el: (eshell/clear): Use (window-size) as the
number of newlines to be inserted. This fixes the issue where
eshell/clear wouldn't work if the prompt was not at the bottom of the
window, and the output wasn't too long.
2015-10-29 03:08:10 +05:30
Artur Malabarba
d8f82d8199 ; * etc/NEWS: Document `search-default-regexp-mode' 2015-10-28 21:13:23 +00:00
Stefan Monnier
db31a88325 * lisp/files.el (write-file): Use vc-refresh-state. 2015-10-28 14:01:18 -04:00
Stefan Monnier
0cbe7a2332 * lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state. 2015-10-28 14:00:59 -04:00
Stefan Monnier
dfa2e4a6e6 * lisp/vc/pcvs.el (cvs-revert-if-needed): Use vc-refresh-state. 2015-10-28 14:00:24 -04:00
Stefan Monnier
d5ee655c17 * lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations
(macroexp-unprogn): Make sure we never return an empty list.
(macroexp-if): Remove unused (and unsafe) optimization.
Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does
occur occasionally.
2015-10-28 13:59:42 -04:00
Juanma Barranquero
1f02cbea8b Fix bug#21766 and add test
* lisp/simple.el (delete-trailing-whitespace): Save match data when
calling `skip-syntax-backward'.
* test/automated/simple-test.el (simple-delete-trailing-whitespace):
New test.
2015-10-28 18:23:53 +01:00
Artur Malabarba
785c0d8326 * doc/lispref/sequences.texi (Sequence Functions): Fix typo 2015-10-28 17:06:27 +00:00
Paul Eggert
45cdacb098 * src/dispnew.c (init_display): Simplify overflow checking. 2015-10-28 09:10:38 -07:00
Artur Malabarba
020e850557 * lisp/character-fold.el (character-fold-to-regexp): Fix case
where string ends in space
2015-10-28 15:50:17 +00:00
Artur Malabarba
7dfe247864 * lisp/emacs-lisp/seq.el (seq-mapn): New function
* doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn
2015-10-28 15:40:23 +00:00
Artur Malabarba
4281f722dd * lisp/character-fold.el: Make compatible with lax-whitespace
(character-fold-to-regexp): Rework internals to play nice with
lax-whitespacing.

When the user types a space, we want to match the table entry for
?\s, which is generally a regexp like "[ ...]".  However, the
`search-spaces-regexp' variable doesn't "see" spaces inside these
regexp constructs, so we need to use "\\( \\|[ ...]\\)" instead (to
manually expose a space).

Furthermore, the lax search engine acts on a bunch of spaces, not
on individual spaces, so if the string contains sequential spaces
like "  ", we need to keep them grouped together like this:
"\\(  \\|[ ...][ ...]\\)".
2015-10-28 15:40:23 +00:00
Artur Malabarba
faace42f8a * lisp/isearch.el: Refactor momentary messages
(isearch--momentary-message): New function.
(isearch-toggle-lax-whitespace, isearch-toggle-case-fold)
(isearch-toggle-invisible): Use it.
2015-10-28 15:10:08 +00:00
Artur Malabarba
12c0edb755 * lisp/isearch.el: Define all toggles with `isearch-define-mode-toggle'
(isearch-define-mode-toggle): New macro.
(isearch-toggle-invisible): Renamed to
`isearch-define-mode-toggle'.
(isearch-toggle-case-fold, isearch-toggle-invisible)
(isearch-toggle-regexp, isearch-toggle-lax-whitespace): Define
with `isearch-define-mode-toggle'.
2015-10-28 15:10:08 +00:00
Michael Albinus
9fd61a5aa2 Avoid using `add-to-list' on a let-local var in tramp-smb.el
* lisp/net/tramp-compat.el (tramp-compat-delete-dups): New defun.
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use it.
2015-10-28 15:31:40 +01:00
Anders Lindgren
1e2ed2687a Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh 2015-10-28 12:22:44 +01:00
Anders Lindgren
e5ff0e67cc Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs 2015-10-28 12:17:33 +01:00
Anders Lindgren
e69f777061 Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh 2015-10-28 12:13:18 +01:00
Michael Albinus
e1d0eefae8 Revert 692bce5b9e
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files):
Revert 692bce5b9e, `delete-dups'
does not exist in XEmacs 21.4.
2015-10-28 12:12:51 +01:00
Anders Lindgren
0392e241b8 Fixed OS X startup crash.
Input events started to arrive before ns_term_init() was finished.
Solved by blocking input. This also seems to correct the "You
can't open the application "Emacs" because it may be damaged or
incomplete" error issued when double-clicking on the Emacs
application.

* nsterm.m (ns_constrain_all_frames, ns_init_term): Block input.
* nsterm.m (ns_send_appdefined, EmacsApp): Trace output.
2015-10-28 12:11:46 +01:00
Anders Lindgren
cc587a3539 Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs 2015-10-28 12:09:51 +01:00
Artur Malabarba
64c2bfbc4f * src/process.c (Fget_buffer_process): Improve docstring
Document the fact that it doesn't return dead processes.
2015-10-28 11:07:41 +00:00
Anders Lindgren
590449f3d8 Fix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.
* nsterm.h (struct ns_output): New flag, in_animation.
* nsfns.m (Fx_create_frame): Initialize in_animation flag.
* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Set
in_animation flag around call to "setVisible". Set new tool bar
height before call to setVisible.
* nsterm.m (x_set_window_size): Don't call [view setRow:
andColumns:] as this fools the subsequent call to updateFrameSize
from performing the real resize.
(windowDidResize): Don't update anything when in_animation is
non-zero.

Trace output.

* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar)
(EmacsToolbar):
* nsterm.m (x_set_window_size, updateFrameSize)
([EmacsView setRows: andColumns:])
2015-10-28 12:06:39 +01:00
Nicolas Petton
61b63f460d * lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro. 2015-10-28 09:56:03 +01:00
Tassilo Horn
6e2a4021d3 Prettify TeX macros not ending in a word char
* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Prettify
macros which don't end in a word character.
2015-10-28 08:47:26 +01:00
Dmitry Gutov
9db11fa2d6 ; Revert "Don't declare vc-exec-after anymore"
This reverts commit 5e4395544c.

(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02009.html)
2015-10-28 02:43:14 +02:00
Dmitry Gutov
b1d39288e5 Pipe Hg commit descriptions through 'tabindent'
* lisp/vc/vc-hg.el (vc-hg-log-format): Pipe commit description
through 'tabindent'.
(vc-hg-log-view-mode): Set tab-width to 2 locally.
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02259.html)
2015-10-28 02:42:51 +02:00
Stefan Monnier
692bce5b9e * lisp/net/tramp-smb.el: Avoid using `add-to-list' on a let-local var
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use `delete-dups'.
* lisp/net/tramp.el (auto-save-file-name-transforms): Declare.
2015-10-27 20:25:55 -04:00
Stefan Monnier
3f4a192ba6 * lisp/international/ccl.el: Use lexical-binding
(ccl-compile-if): Remove unused var `false-ic'.
(ccl-compile-write-repeat): Remove unused var `i'.
(ccl-compile-map-single): Remove unused var `id'.
(ccl-dump, ccl-dump-binary): Use explicit let-binding to bind the
dynamic var `ccl-code'.
2015-10-27 20:23:32 -04:00
Stefan Monnier
449e351b1c * lisp/json.el (json-new-object): Optimize trivial `list' call 2015-10-27 20:19:51 -04:00
Stefan Monnier
4eb1e7f96b * lisp/help.el: Fix bug with incorrect arglist string
(help-add-fundoc-usage): Don't mistake a mis-formatted string for a list.
2015-10-27 20:18:45 -04:00
Stefan Monnier
1ec995ced2 * lisp/gnus/gnus-topic.el: Silence some warnings
(gnus-topic-prepare-topic): Remove unused var `topic'.
(gnus-topic-remove-topic): Mark unused arg `hide'.
(gnus-tmp-header): Declare.
(gnus-topic-goto-missing-group): Remove unused var `entry'.
(gnus-topic-unmark-topic): Mark unused arg `dummy'.
(gnus-topic-copy-matching): Mark unused arg `copyp'.
Move initialization of `topic' into its declaration.
2015-10-27 20:15:31 -04:00
Stephen Leake
e166a701dd Minor CEDET fixes
* lisp/cedet/cedet-global.el (cedet-gnu-global-gtags-call): Handle
warnings from gtags about invalid options.
(cedet-gnu-global-create/update-database): Do incremental update
properly.

* lisp/cedet/ede/generic.el (ede-enable-generic-projects): Get monotone
root right.
2015-10-27 10:41:12 -05:00
Michael Albinus
f72ac3591b ; Fix comments in file-notify-tests.el 2015-10-27 16:06:33 +01:00
Michael Albinus
838023d469 Fall back to polling in autorevert when needed
* lisp/autorevert.el (auto-revert-notify-handler): When a
`stopped' event arrives from file notification, fall back to polling.

* test/automated/file-notify-tests.el
(file-notify-test03-autorevert): Extend test for polling when file
notification ceases to work.
2015-10-27 16:02:26 +01:00
Dmitry Gutov
99ded6be7a Show full commit messages in 'hg log' when appropriate
* lisp/vc/vc-hg.el (vc-hg-log-format): New variable.
(vc-hg-print-log, vc-hg-expanded-log-entry): Use it.
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02191.html)
2015-10-27 14:55:06 +02:00
Nicolas Petton
f642a81acd Use a plain svg file for the icon
* etc/images/icons/hicolor/scalable/apps/emacs.svg: Use a plain SVG
  format instead of the Inkscape SVG format.
2015-10-27 13:45:08 +01:00
Michael Albinus
14d725725b Fix subtle bug in auto-revert-tests.el
* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Narrow *Messages*
buffer where it belongs to.  (Bug#21668)
2015-10-27 10:01:13 +01:00
Nicolas Petton
22579baf62 * lisp/emacs-lisp/map.el: Better docstrings. 2015-10-26 22:23:02 +01:00
Nicolas Petton
5a9842c933 * lisp/emacs-lisp/seq.el: Better docstrings. 2015-10-26 22:17:41 +01:00
Nicolas Petton
7637849321 * lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence. 2015-10-26 22:17:41 +01:00
Phillip Lord
5c86118b4b * lisp/emacs-lisp/ert.el: Print results without newline escaping 2015-10-26 20:27:16 +00:00
Stephen Leake
93dba9c2d7 Clarify that load-path contents should be directory file names
* doc/lispref/files.texi (Directory Names): Define and use "directory
file name". Recommend `expand-file-name'.

* src/lread.c (load-path): Fix doc string; elements are directory file
names.
2015-10-26 14:40:34 -05:00
Eli Zaretskii
c9fb8954bc Fix simple-test.el test
* test/automated/simple-test.el (simple-test--dummy-buffer): Make
sure indentation doesn't use TABs, otherwise the 6th test might
fail.
2015-10-26 21:25:10 +02:00
Mark Oteiza
3f828dc76b * lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.
`substring' does not account for full width characters.
2015-10-26 12:15:50 -04:00