Commit graph

58079 commits

Author SHA1 Message Date
Nicolas Richard
55b056bacf * emacs-lisp/package.el (describe-package-1): Tell what archive is used to
install the package.

Patch by Nicolas Richard.
2013-02-06 17:10:13 +01:00
Glenn Morris
5fd03926b3 * vc/vc-hooks.el (vc-find-file-hook): Don't ask about following links
if we can't get user input.

Fixes: debbugs:6567
2013-02-06 00:27:41 -08:00
Glenn Morris
e86762ec41 * lisp/startup.el (command-line): If simple.el is missing,
test and warn about for some possible causes.
2013-02-05 21:03:35 -05:00
Jan Djärv
6871e574da * lisp/cus-start.el (all): Add ns-use-native-fullscreen.
* src/nsmenu.m (update_frame_tool_bar): Check for negative tool bar
height.

* src/nsterm.h (HAVE_NATIVE_FS): Define if OSX => 10.7.
(EmacsView): Add fs_is_native, fsIsNative, isFullscreen and
updateCollectionBehaviour.

* src/nsterm.m (NEW_STYLE_FS): Remove.
(ns_last_use_native_fullscreen): New variable.
(x_make_frame_visible): Replace NEW_STYLE_FS with isFullscreen.
(x_set_window_size): Do not take title bar and tool bar into account
if isFullscreen returns YES.
(ns_fullscreen_hook): Replace NEW_STYLE_FS with isFullscreen.
(check_native_fs): New function.
(ns_select, ns_read_socket): Call check_native_fs if HAVE_NATIVE_FS.
(ns_term_init): Remove NEW_STYLE_FS.
(updateFrameSize:, windowWillResize:toSize:): Only adjust for title bar
and tool bar if isFullscreen returns NO.
(windowDidResize:): Replace NEW_STYLE_FS with fsIsNative.
(initFrameFromEmacs:): Initialize fs_is_native.  Replace NEW_STYLE_FS
with HAVE_NATIVE_FS.
(window:willUseFullScreenPresentationOptions:): New method.
(windowDidEnterFullScreen:): Replace NEW_STYLE_FS with fsIsNative.
Hide toolbar if not enabled.
(windowDidExitFullScreen:): Call updateCollectionBehaviour.
Restore tool bar if enabled, hide it otherwise (Bug#13444).
(fsIsNative, isFullscreen, updateCollectionBehaviour): New methods.
(toggleFullScreen:): If fs_is_native, call toggleFullScreen on
window.  Do no set FRAME_EXTERNAL_TOOL_BAR (f) to 0.
Check FRAME_EXTERNAL_TOOL_BAR (f) before restoring
FRAME_TOOLBAR_HEIGHT (f).  Call updateFrameSize when going non-fs.
(syms_of_nsterm): Add ns-use-native-fullscreen.
2013-02-05 13:16:35 +01:00
Glenn Morris
ed746aa721 * lisp/profiler.el (profiler-report-mode-map): Add a restart menu entry. 2013-02-04 21:12:58 -05:00
Glenn Morris
b687d65a02 Fix indentation in previous 2013-02-04 21:06:53 -05:00
Glenn Morris
3505fa027b gamegrid-add-score-with-update-game-score fix
* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score):
Fix directory creation in fallback case.
2013-02-04 21:03:51 -05:00
Thierry Volpiatto
50fdf39987 * lisp/vc/vc.el (vc-next-action): Fix inf-loop.
(vc-update-change-log): Use dolist.

Fixes: debbugs:13610
2013-02-04 16:23:15 -05:00
Chong Yidong
6e5c1569e9 Merge FFAP's URI-detection code into thingatpt.el.
* lisp/ffap.el: Require thingatpt.
(ffap-url-at-point): Delegate URI detection to thing-at-point.
All URI-valid characters are now recognized.
(ffap-string-at-point): Use use-region-p.
(ffap-url-regexp): Extra character is handled by thing-at-point.
(ffap-string-at-point-mode-alist): Allow parentheses.
(ffap-newsgroup-regexp, ffap-newsgroup-heads, ffap-newsgroup-p):
Convert to aliases; code moved to thingatpt.el.
(ffap-gnus-hook): Use setq-local.

* lisp/thingatpt.el: Rewrite the URL detection routines, absorbing some
code from ffap.el.
(thing-at-point-beginning-of-url-regexp): New var.
(thing-at-point-uri-schemes): Update list of URI schemes.
(thing-at-point-url-regexp): Variable deleted.
(thing-at-point-markedup-url-regexp): Disallow newlines.
(thing-at-point-newsgroup-regexp)
(thing-at-point-newsgroup-heads)
(thing-at-point-default-mail-uri-scheme): New variables.
(thing-at-point-bounds-of-url-at-point): Rewrite.  Use ffap's
method to find the possible bounds of the URI at point.  New
optional argument to find ill-formed URIs.
(thing-at-point-url-at-point): Rewrite.  New arguments for finding
ill-formed URIs.  Use thing-at-point-bounds-of-url-at-point, and
the scheme-adding heuristics from ffap-url-at-point.
(thing-at-point--bounds-of-well-formed-url): New function.  Do
parens matching to decide whether to include parens in the URI

* test/automated/thingatpt.el: New file.

Fixes: debbugs:5673
2013-02-04 20:02:25 +08:00
Glenn Morris
84a06b500f ert--explain-format-atom fix for non-characters
* lisp/emacs-lisp/ert.el (ert--explain-format-atom):
Don't try to print non-characters as characters.

Fixes: debbugs:13543
2013-02-03 23:46:22 -08:00
Michael Albinus
5870b2b1d3 * net/tramp.el (tramp-debug-message): Extend function exclude list.
(tramp-backtrace): New defun.
(tramp-handle-insert-file-contents): Use `visit' when inserting
the local copy.

* net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime): Use
`remote-file-name-inhibit-cache'.
2013-02-03 17:49:37 +01:00
Stefan Monnier
37a5665636 * lisp/url/url-cache.el (url-cache-create-filename-using-md5): Don't waste your
time `requiring' a builtin feature.
* lisp/subr.el (internal--called-interactively-p--get-frame): Remove
left-over message.
2013-02-03 11:13:36 -05:00
Stefan Monnier
4813c453b2 * lisp/progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning.
Fixes: debbugs:13614
2013-02-03 10:47:12 -05:00
Stefan Monnier
659a901046 * lisp/subr.el (internal--called-interactively-p--get-frame): Avoid filling
current-load-list.

Fixes: debbugs:13366
2013-02-03 10:28:47 -05:00
Christopher Schmidt
85a83ea09d * progmodes/compile.el (compilation-mode-hook)
(compilation-start-hook, compilation-window-height): Simplify
docstrings.  (Bug#13379)
2013-02-02 09:41:02 +01:00
Christopher Schmidt
a1876c5c7d * progmodes/compile.el (compilation-start-hook): Simplify docstring.
(Bug#13379)
2013-02-02 07:25:20 +01:00
Christopher Schmidt
35114711c0 * progmodes/compile.el (compilation-error-regexp-alist-alist):
Identify g++ template instantiation trace.  (Bug#12287)
2013-02-02 07:15:05 +01:00
Paul Eggert
d9c287e589 Spelling fixes. 2013-02-01 22:04:06 -08:00
Glenn Morris
94fbc90170 Merge from emacs-24; up to 2012-12-13T09:45:54Z!lekktu@gmail.com 2013-02-01 19:38:21 -08:00
Juri Linkov
98da8c0f54 * lisp/progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face
instead of hard-coded default face `match'.  (Bug#9438)
2013-02-02 02:35:38 +02:00
Stefan Monnier
13841bfcc2 * lisp/mouse.el (mouse-drag-track): Always deactivate the mark before
running the final event's command since that command is in charge of
activating the mark if needed.

Fixes: debbugs:13523
2013-02-01 18:40:55 -05:00
Juri Linkov
dc2bc29527 * lisp/replace.el (perform-replace): Move let-bindings of isearch-*
variables deeper to the loop that searches for the next match.
Add bindings for `isearch-nonincremental' and `isearch-adjusted'.
Use `isearch-search-fun-default' instead of `isearch-search-fun'.

* lisp/isearch.el (isearch-search-fun-default): Check for null
first element of isearch-cmds as a precaution when it's used
with inactive isearch.

Fixes: debbugs:13579
2013-02-02 01:38:41 +02:00
Andrew W. Nosenko
f864e0ea83 * net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range"
error when buffer in question is narrowed so position 1 is out of
visible part.
2013-02-01 22:10:08 +01:00
Christopher Schmidt
af314ba001 * vc/vc-arch.el (vc-arch-registered):
* vc/vc-bzr.el (vc-bzr-registered):
* vc/vc-cvs.el (vc-cvs-registered):
* vc/vc-git.el (vc-git-registered):
* vc/vc-hg.el (vc-hg-registered):
* vc/vc-mtn.el (vc-mtn-registered):
* vc/vc-svn.el (vc-svn-registered): Suppress load messages.
(Bug#13139)
2013-02-01 18:19:24 +01:00
Christopher Schmidt
7b6d5ecf80 * info.el (Info-next-reference, Info-prev-reference): Add numeric
prefix argument.  (Bug#11656)
2013-02-01 17:46:46 +01:00
Stefan Monnier
686d9fb678 * lisp/help-fns.el (help-split-fundoc): Don't insert byte-compiled body. 2013-02-01 10:56:22 -05:00
Glenn Morris
25b4eb90f9 Auto-commit of loaddefs files. 2013-02-01 07:18:14 -05:00
Glenn Morris
7f12eefa77 Auto-commit of loaddefs files. 2013-02-01 06:21:12 -05:00
Glenn Morris
1f4f0f46bd * vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
if the backend is known not to support it.
2013-02-01 00:44:10 -08:00
Glenn Morris
48c828b923 * imenu.el (imenu-default-create-index-function):
Tweak infinite loop test to check for forward motion as well as none.
2013-02-01 00:23:47 -08:00
Alex Harsanyi
cd87ae10a8 * net/soap-client.el (soap-invoke): Encode the string for
`url-request-data' as UTF-8.  Fixes
<http://code.google.com/p/emacs-soap-client/issues/detail?id=16>.
2013-02-01 08:28:10 +01:00
Glenn Morris
0eb61895e5 Move lisp/calc/README* to etc/CALC-NEWS
* make-dist: Only README files exist in lisp/ now, not README*.

* doc/misc/calc.texi (Help Commands): Mention etc/CALC-NEWS.

* etc/CALC-NEWS: Move here from lisp/calc/README, README.prev.

* lisp/calc/README, lisp/calc/README.prev: Rename/merge to etc/CALC-NEWS.
2013-01-31 19:58:50 -08:00
Glenn Morris
86e100a693 Merge calc news from lisp/calc/README into etc/NEWS files
* doc/misc/calc.texi (Help Commands): Update calc-view-news description.

* lisp/calc/calc-help.el (calc-view-news): Use view-emacs-news.

* lisp/calc/README: Move news entries from here...
* etc/NEWS, etc/NEWS.23: ... to here
2013-01-31 19:51:08 -08:00
Sam Steingold
1e77b18e33 fix last patch 2013-01-31 17:37:54 -05:00
David Engster
be798504fa Sync CEDET and EIEIO version numbers with upstream. 2013-01-31 20:58:56 +01:00
Glenn Morris
fb77fe0fb7 * lisp/textmodes/remember.el (remember-clipboard): Doc fix. 2013-01-31 09:03:53 -08:00
Michael Albinus
61642d9a27 * net/tramp.el (tramp-tramp-file-p): Comment check for
`string-as-unibyte'.  The function does not exist on XEmacs, and
likely we need another approach.

* net/tramp-sh.el (tramp-compute-multi-hops): Check, whether
`tramp-gw-*' variables are bound.
2013-01-31 09:33:03 +01:00
Glenn Morris
9dbda10075 Reduce delay between backing up a file and saving new version
* lisp/files.el (basic-save-buffer-2):
Choose coding system for writing the file before backing it up.

* src/fileio.c (choose_write_coding_system): Make it callable from Lisp.
(Fwrite_region): If coding-system-for-write is set, don't call
choose_write_coding_system.
Move the last piece of choose_write_coding_system here.
(syms_of_fileio): Add choose-write-coding-system.

Fixes: debbugs:13522
2013-01-30 22:35:45 -08:00
Michal Nazarewicz
ad4de702e1 * lisp/simple.el (cycle-spacing): New command.
(just-one-space): Use it.
2013-01-30 21:57:35 -05:00
Stefan Monnier
c4f268a137 * lisp/progmodes/opascal.el: Rename from delphi.el. Use lexical-binding.
(opascal-newline-always-indents): Remove custom.
(opascal-tab, opascal-newline): Remove commands.
(opascal-new-comment-line): Insert "\n" instead of calling newline.
(opascal-mode-map): Keep default bindings for RET and TAB and DEL.
(opascal-save-match-data): Remove, use save-match-data instead.
(opascal-save-state): Use with-silent-modifications.
2013-01-30 20:58:24 -05:00
Stefan Monnier
9ca243c631 * lisp/progmodes/pascal.el (pascal-mode-syntax-table): Accept //..\n comments.
Fixes: debbugs:13585
2013-01-30 19:58:24 -05:00
Juri Linkov
64ced39437 * lisp/frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
Use fullboth as an alias for fullscreen.  Suggested by Jan Djärv in
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00203.html>.
2013-01-31 01:50:11 +02:00
Christopher Schmidt
5f9eccc4b6 lisp/gnus/gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace 2013-01-30 22:45:32 +00:00
Stefan Monnier
c56d2269c2 * lisp/progmodes/make-mode.el (makefile-backslash-region): Don't compute
column if we're just deleting the backslashes.
(makefile-fill-paragraph): Use eolp.
2013-01-30 15:46:10 -05:00
Stefan Monnier
c517ec69d8 * lisp/progmodes/make-mode.el (makefile-fill-paragraph): Reset syntax-table
properties.

Fixes: debbugs:13179
2013-01-30 15:43:02 -05:00
Michael Albinus
382936d146 * autorevert.el (auto-revert-use-notify): Fix docstring. 2013-01-30 20:20:46 +01:00
Leo Liu
dd331297c1 * lisp/imenu.el (imenu--truncate-items): Fix subalist checking.
Fixes: debbugs:13576
2013-01-31 01:57:54 +08:00
Glenn Morris
741d511359 Merge from emacs-24; up to 2012-12-13T00:52:17Z!yamaoka@jpl.org 2013-01-30 09:16:30 -08:00
Glenn Morris
c491dd7037 mouse-drag-line changes for mouse-1 in header-line
* lisp/mouse.el (mouse-drag-line): Avoid pushing same event onto
unread-command-events twice in some cases.  This tries to implement
the 2012-07-26 changes in a different way.

Fixes: debbugs:13560
2013-01-30 09:14:24 -08:00
Stefan Monnier
1d4e72256b * lisp/jit-lock.el (jit-lock-stealth-chunk-start): Don't widen.
(jit-lock-mode, jit-lock-functions, jit-lock-context-unfontify-pos):
Use defvar-local.
(jit-lock-register): Use setq-local.

Fixes: debbugs:13542
2013-01-30 12:03:44 -05:00