Daniel Colascione
c2208b3d91
Better binding for vc-delete-file
...
* lisp/vc/vc-hooks.el (vc-prefix-map): Bind vc-delete-file to C-x v x,
by analogy with dired.
2015-01-09 22:44:31 -08:00
Paul Eggert
7e09ef09a4
Update copyright year to 2015
...
Run admin/update-copyright.
2015-01-01 14:26:41 -08:00
Eric S. Raymond
ea8b9df12e
Remove VC rollback method.
...
* vc/vc.el, vc/vc-hg.el, vc/vc-git.el, vc/vc-hooks.el,
vc/vc-mtn.el, vc/vc-rcs.el, vc/vc-sccs.el, vc/vc-src.el: rrollback
method removed, to be replaced in the future by uncommit.
2014-12-11 22:44:32 -05:00
Eric S. Raymond
8bc7ac5c25
Righteous featurectomy of vc-keep-workfiles - always do it.
...
* vc/vc-dispatcher.el, vc/vc-hooks.el, vc/vc-rcs.el, vc/vc-sccs.el,
vc/vc.el: Righteous featurectomy of vc-keep-workfiles, it's a
shoot-self-in-foot archaism. Workfiles are always kept.
2014-12-10 12:33:26 -05:00
Eric S. Raymond
7fb8fc35eb
vc/vc-arch.el: Moved to obsolete directory...
...
...so a test framework won't trip over bit-rot in it. There has been no
Arch snapshot for nine years.
2014-12-08 06:11:49 -05:00
Eric S. Raymond
e6fe301afe
Another longstanding to-do: bind vc-delete-file.
2014-12-02 05:31:04 -05:00
Eric S. Raymond
2a81c5d94d
Confine vc-stay-local to CVS, because it was unusable in SVN.
2014-12-01 10:11:42 -05:00
Eric S. Raymond
578d91ac50
Remove vc-state-heuristic from the set of public methods.
...
* vc/vc.el, vc-hooks.el, and all backends: API simplification;
vc-state-heuristic is no longer a public method, having been removed
where it is redundant, unnecessary, or known buggy. This eliminated
all backends except CVS. Eliminates bug#7850.
2014-12-01 09:41:54 -05:00
Eric S. Raymond
33b4235db6
The vc-mistrust-permissions configuration variable is gone.
...
* vc/vc-cvs.el, vc/vc-hooks.el, vc/vc-rcs.el, vc/vc-sccs.el: Eliminate
vc-mistrust-permissions. It was only relevant to the RCS and SCCS
back ends and defaulted to t. Code now always mistrusts permissions -
by actual measurement the effect on performance is negligible. As a
side effect bug#11490 is now irrelevant.
2014-12-01 09:08:26 -05:00
Eric S. Raymond
f82f3f1f17
API simplification: remove vc-workfile-unchanged-p from pubic methods.
...
* vc/vc.el, vc-hooks.el, and all backends: API simplification;
vc-workfile-unchanged-p is no longer a public method (but the RCS and
SCCS back ends retain it as a private method used in state
computation). This method was redundant with vc-state and usually
implemented as a trivial call to same. Fixes the failure mode
described in bug#694.
2014-12-01 08:24:27 -05:00
Sam Steingold
27f46ae31c
Remove a spurious comma
...
* lisp/vc/vc-hooks.el (vc-directory-exclusion-list):
Fix a trivial typo (bug#19171).
2014-11-24 15:54:07 -05:00
Stefan Monnier
b3b0b0971d
* lisp/vc/vc-hooks.el (vc-state-base-face): Don't override
...
mode-line-inactive.
2014-11-24 12:26:01 -05:00
Eric S. Raymond
cec2396625
Unbreak the build.
...
I don't really understand why this reversion works, but it will do until I can
actually comprehend the bizarre hairball that is Emacs bootstrapping.
2014-11-22 06:32:48 -05:00
Eric S. Raymond
e9b1902634
Revert "More movement of master-related code to vc-filewise.el."
...
Must unbreak the build. Which is way too complicated...
2014-11-22 06:03:57 -05:00
Eric S. Raymond
4fe5b7c0bb
More movement of master-related code to vc-filewise.el.
...
Goes with my 2014-11-22 lisp/ChangeLog entry.
2014-11-22 05:21:09 -05:00
Eric S. Raymond
354a07b570
Isolating support code for the file-granularity back ends: the easy part.
...
* vc-filewise.el: New file to isolate code used only by the
file-oriented back ends (SCCS/RCS/CVS/SRC) which should not live in
vc.el and certainly not in vc-hooks.el.
2014-11-22 00:31:20 -05:00
Eric S. Raymond
af46a2a43f
Rename vc-name to vc-master-rename.
...
* vc-hooks.el, vc-rcs.el, vc-sccs.el: vc-name -> vc-master-name. This
is preaparatory to isolating all the 'master' functions used only by
the file-oriented back ends. With this done first, the substantive
diffs will be easier to read.
2014-11-22 00:10:31 -05:00
Eric S. Raymond
f9c0081e98
Clean up after SRC support merge (typo fixes).
2014-11-20 22:44:07 -05:00
Eric S. Raymond
1e81f67690
Support for SRC in VC mode.
2014-11-20 17:57:22 -05:00
Oscar Fuentes
d409545938
Add faces for the VC modeline state indicator
...
* lisp/vc/vc-hooks.el:
(vc-state-faces, vc-state-base-face)
(vc-up-to-date-state, vc-needs-update-state)
(vc-locked-state, vc-locally-added-state)
(vc-conflict-state, vc-removed-state)
(vc-missing-state, vc-edited-state):
New faces.
(vc-default-mode-line-string): Use them
2014-11-16 06:16:41 +01:00
Glenn Morris
da41ffdd08
Merge from emacs-24; up to 2014-06-26T06:55:15Z!rgm@gnu.org
2014-07-28 05:39:09 -04:00
Glenn Morris
c509a535a8
vc-hooks.el: Fix doc typo in previous
2014-07-25 06:05:10 -04:00
Glenn Morris
59bb37859d
More toggle-read-only doc tweaks
...
* lisp/files.el (toggle-read-only): Re-add basic doc-string.
* lisp/vc/vc-hooks.el (vc-toggle-read-only): Tweak obsolescence mesage.
2014-07-25 05:24:53 -04:00
Daniel Colascione
e8a77f2423
Provide function for asking vc about project root
2014-04-20 16:24:04 -07:00
Paul Eggert
ba3189039a
Update copyright year to 2014 by running admin/update-copyright.
2014-01-01 07:43:34 +00:00
Juanma Barranquero
9d3aa82cf9
lisp/*.el: Silence lexical-binding warnings.
2013-08-09 01:59:14 +02:00
Xue Fuqiao
7188b515f6
* lisp/vc/vc-hooks.el (vc-menu-map): Fix menu entry for vc-ignore.
2013-08-01 08:19:11 +08:00
Xue Fuqiao
aeca3fbb65
* lisp/vc/vc-hooks.el (vc-menu-map): Add menu entry for vc-ignore.
2013-07-31 15:01:46 +08:00
Xue Fuqiao
207d1d0462
Fix for vc-ignore.
...
* vc/vc-hooks.el (vc-prefix-map): Add key binding for vc-ignore.
* vc/vc-dir.el (vc-dir-mode-map): Change key binding for vc-dir-ignore.
2013-07-30 22:29:14 +08:00
Xue Fuqiao
8d0b26f65d
Minor doc fix.
...
* lisp/vc/vc-cvs.el (vc-cvs-stay-local): Doc fix.
* lisp/vc/vc-hooks.el (vc-stay-local): Doc fix.
* doc/emacs/vc1-xtra.texi (CVS Options): Fix the default value of
`vc-cvs-stay-local'.
2013-06-09 19:15:54 +08:00
Michael Albinus
fed000725c
* vc/vc-hooks.el (vc-find-file-hook): `buffer-file-truename' can
...
be nil. Handle this. (Bug#13636)
2013-02-07 09:50:04 +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
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
Chong Yidong
58ba7b1b55
Try to handle buffer/file modifications which conflict with VCS locking.
...
* vc/vc-hooks.el (vc-after-save): DTRT for locking VCSes.
* vc/vc.el (vc-next-action): Detect buffer modifications
conflicting with locking VCS operation.
Fixes: debbugs:11490
2013-01-06 10:58:57 +08:00
Paul Eggert
0877d0dc24
Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
2013-01-02 08:13:04 -08:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Glenn Morris
265c2fbf11
Merge from emacs-24; up to 2012-11-26T19:56:14Z!monnier@iro.umontreal.ca
2012-12-09 18:00:42 -08:00
Juanma Barranquero
bf741d337c
lisp/vc/vc-hooks.el (vc-state): Doc fix.
2012-12-07 04:55:40 +01:00
Yuya Nishihara
cb5d51dc07
Fix use of buffer-file-truename in vc-find-file-hook (tiny change).
...
* lisp/vc/vc-hooks.el (vc-find-file-hook): Expand buffer-file-truename
before using it for comparison.
Fixes: debbugs:5297
2012-12-01 21:25:13 +08:00
Glenn Morris
999e745ef7
vc-hooks.el workaround for bug#11490
...
* vc/vc-hooks.el (vc-mistrust-permissions): Default to t, to avoid data-loss.
2012-11-26 18:50:12 -05:00
Chong Yidong
1dc2755a71
* vc/vc-hooks.el (vc-file-clearprops): Kill vc-parent-buffer.
...
Suggested by Dan Nicolaescu.
Fixes: debbugs:6326
2012-10-29 19:12:17 +08:00
Chong Yidong
a5f2b6ec3b
Remove several obsolete vars and functions unlikely to be still in use.
...
* lisp/vc/log-edit.el (cvs-changelog-full-paragraphs)
(cvs-commit-buffer-require-final-newline): Obsolete variables
removed.
* lisp/font-lock.el (font-lock-reference-face): Use
define-obsolete-variable-alias.
* lisp/international/mule.el (set-char-table-default): Remove.
(set-coding-priority, make-coding-system, generic-char-p)
(charset-list, charset-bytes, charset-id): Use declare to mark
obsolete.
* lisp/mail/supercite.el (sc-version): Remove obsolete function.
(sc-describe): Don't mark as obsolete, since it is bound.
(sc-submit-bug-report): Remove.
* lisp/progmodes/compile.el (compile-internal): Remove obsolete
function.
(compilation-parse-errors-function): Fix typo.
* lisp/vc/emerge.el (emerge-mode): Make it an obsolete alias.
(emerge-version): Remove.
* lisp/vc/pcvs-defs.el (cvs-buffer-name-alist)
(cvs-invert-ignore-marks): Remove references to obsolete vars.
* lisp/vc/vc-hooks.el (vc-default-registered): Don't use
vc-master-templates.
* lisp/vc/pcvs-defs.el (cvs-diff-buffer-name, cvs-diff-ignore-marks)
* lisp/vc/vc-hooks.el (vc-ignore-vc-files, vc-master-templates)
* lisp/vc/vc.el (vc-checkout-carefully): Likewise.
* src/chartab.c (Fset_char_table_default): Obsolete function removed.
2012-09-24 20:23:25 +08:00
Stefan Monnier
a464a6c73a
More CL cleanups and reduction of use of cl.el.
...
* woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
* vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
* textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
* strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
* progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
* play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
* play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
* net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
* image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
* eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
* eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
* eshell/em-cmpl.el, eshell/em-banner.el:
* url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
* url/url-future.el, url/url-dav.el, url/url-cookie.el:
* calendar/parse-time.el, test/eshell.el: Use cl-lib.
* wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
* vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
* textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
* term/ns-win.el, term.el, shell.el, ps-samp.el:
* progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
* progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
* play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
* net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
* net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
* mail/mailheader.el, mail/feedmail.el:
* url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
* url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
Dont use CL.
* ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
* eshell/esh-opt.el (eshell-eval-using-options): Quote code with
`lambda' rather than with `quote'.
(eshell-do-opt): Adjust accordingly.
(eshell-process-option): Simplify.
* eshell/esh-var.el:
* eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
* emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
(pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
to `pcase--dontcare'.
* emacs-cl.el (labels): Mark obsolete.
(cl--letf, letf): Move to cl-lib.
(cl--letf*, letf*): Remove.
* emacs-cl-lib.el (cl-nth-value): Use defalias.
* emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
(cl-progv): Rewrite.
(cl--letf, cl-letf): Move from cl.el.
(cl-letf*): New macro.
* emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
2012-07-11 19:13:41 -04:00
Dmitry Gutov
ac87de9763
* vc/vc-hooks.el (vc-before-save): Clear cache if file has been
...
removed (likely outside Emacs).
2012-06-30 15:14:00 +02:00
Stefan Monnier
1ec4b7b259
Get rid of all the manual purecopy calls in menu-bar definitions.
...
* lisp/loadup.el (purify-flag): Pre-grow the hash-table to reduce the
memory use.
* lisp/bindings.el (bindings--define-key): New function.
* lisp/vc/vc-hooks.el, lisp/replace.el, lisp/menu-bar.el:
* lisp/international/mule-cmds.el, lisp/emacs-lisp/lisp-mode.el:
* lisp/buff-menu.el, lisp/bookmark.el:
* bindings.el: Use it to purecopy define-key bindings.
* src/fns.c (maybe_resize_hash_table): Output message when growing the
purify-hashtable.
2012-06-27 17:15:13 -04:00
Chong Yidong
3726946669
Remove incorrect uses of "modeline".
...
* ansi-color.el (ansi-color-faces-vector): Change default faces.
* cus-edit.el (mode-line):
* dframe.el (dframe-mouse-hscroll):
* emacs-lisp/re-builder.el:
* emacs-lisp/easy-mmode.el (define-minor-mode):
* frame.el (set-frame-name):
* help.el (lookup-minor-mode-from-indicator):
* net/rcirc.el (rcirc-activity-string, rcirc-short-buffer-name):
* progmodes/cc-cmds.el (c-toggle-auto-newline)
(c-toggle-hungry-state):
* progmodes/antlr-mode.el (antlr-language-alist):
* progmodes/idlw-shell.el (idlwave-shell-electric-stop-line-face):
* progmodes/vhdl-mode.el (vhdl-mode):
* progmodes/which-func.el (which-func, which-func-cleanup-function):
* term/ns-win.el (ns-face-at-pos):
* term/sup-mouse.el (sup-mouse-report):
* textmodes/flyspell.el (flyspell-mode-line-string):
* textmodes/ispell.el (ispell-highlight-face):
* textmodes/reftex-global.el:
* vc/vc-arch.el (vc-arch-mode-line-string):
* vc/vc-cvs.el (vc-cvs-mode-line-string):
* vc/vc-git.el (vc-git-mode-line-string):
* vc/vc-hooks.el (vc-display-status)
(vc-default-mode-line-string):
* vc/vc-mtn.el (vc-mtn-mode-line-string): Doc fixes.
* dired.el (dired-sort-set-mode-line): Rename from
dired-sort-set-modeline. All callers changed.
* foldout.el (foldout-mode-line-string): Rename from
foldout-modeline-string. All callers changed.
(foldout-update-mode-line): Rename from foldout-update-modeline.
* strokes.el (strokes-lighter): Rename from
strokes-modeline-string.
* subr.el (redraw-modeline): Make into obsolete alias.
* calendar/timeclock.el (timeclock-mode-line-display): Rename from
timeclock-modeline-display. Make old name an alias.
(timeclock-update-mode-line): Likewise. All callers changed.
(timeclock-mode-line-display): No need to check before using
add-hook.
(timeclock-relative, timeclock-day-over-hook)
(timeclock-use-elapsed, timeclock-mode-string)
(timeclock-mode-line-display): Doc fix, "modeline" -> "mode line".
* emulation/crisp.el (crisp-mode-mode-line-string): Rename from
crisp-mode-modeline-string.
* erc-track.el (erc-track, erc-track-faces-priority-list)
(erc-track-faces-normal-list, erc-track-find-face)
(erc-track-modified-channels): Fix modeline -> mode line in docs.
* eshell/esh-mode.el (eshell-status-in-mode-line): Rename from
eshell-status-in-modeline.
* org-clock.el (org-clock-string-limit)
(org-clock-modeline-total, org-clock-task-overrun-text)
(org-clock-mode-line-entry): Doc fix, "modeline" -> "mode line".
* play/solitaire.el (solitaire-build-mode-line): Rename from
solitaire-build-modeline. All callers changed.
* play/zone.el (zone-hiding-mode-line): Rename from
zone-hiding-modeline. All callers changed.
(zone): Remove unusued `modeline-hidden-level' property.
* progmodes/xscheme.el (xscheme-mode-line-initialize): Rename from
xscheme-modeline-initialize. All callers changed.
* textmodes/sgml-mode.el (html-face-tag-alist)
(html-tag-face-alist): Use mode-line face instead of obsolete
alias modeline.
Fixes: debbugs:10329
2012-06-02 18:56:09 +08:00
Glenn Morris
e43273eff0
Use ctl-x-map in place of C-x (bug#10566)
...
For an example of the problems NOT doing this might cause, see eg
http://lists.gnu.org/archive/html/bug-gnu-emacs/2006-07/msg00000.html
Eg after:
(global-set-key (kbd "C-u") ctl-x-map)
(global-set-key (kbd "C-x") 'universal-argument)
just loading dired-x.el or term.el would give an error.
* lisp/dired-x.el (dired-bind-jump): Use ctl-x-map and ctl-x-4-map.
* lisp/term.el (term-raw-escape-map): Use Control-X-prefix.
* lisp/vc/vc-hooks.el (vc-prefix-map): Use ctl-x-map.
2012-01-25 21:32:56 -05:00
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Chong Yidong
d031f2c7b7
* vc/vc-hooks.el (vc-keep-workfiles): Doc fix.
2011-12-22 18:16:45 +08:00
Paul Eggert
da6062e6ea
Spelling fixes.
2011-11-14 23:55:13 -08:00