aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-09-12 08:36:32 +0200
committerJoakim Verona2013-09-12 08:36:32 +0200
commita87e9c8f9fb3c2696bed6c1f8edb7542461d673c (patch)
treeaf6839d3c9c43cb848d6cb822e02f98fde135980
parentff7e4c63a5a19f795340ce9a7b9e2b5f55d50587 (diff)
parent8ffbc36b766d463cb4d86b6c2e5c9054a9c91234 (diff)
downloademacs-a87e9c8f9fb3c2696bed6c1f8edb7542461d673c.tar.gz
emacs-a87e9c8f9fb3c2696bed6c1f8edb7542461d673c.zip
merge from trunk
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/vc/vc-svn.el16
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c15
4 files changed, 30 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 37f63216ff6..37005de6776 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-09-12 Glenn Morris <rgm@gnu.org> 12013-09-12 Glenn Morris <rgm@gnu.org>
2 2
3 * vc/vc-svn.el (vc-svn-parse-status): If there are multiple files
4 in the status output, assume `filename' is the first. (Bug#15322)
5
3 * vc/vc.el (vc-deduce-fileset): Doc fix. 6 * vc/vc.el (vc-deduce-fileset): Doc fix.
4 7
5 * calc/calc-help.el (Info-goto-node): 8 * calc/calc-help.el (Info-goto-node):
diff --git a/lisp/vc/vc-svn.el b/lisp/vc/vc-svn.el
index afc76c09742..bfd608c0467 100644
--- a/lisp/vc/vc-svn.el
+++ b/lisp/vc/vc-svn.el
@@ -674,19 +674,23 @@ and that it passes `vc-svn-global-switches' to it before FLAGS."
674 674
675(defun vc-svn-parse-status (&optional filename) 675(defun vc-svn-parse-status (&optional filename)
676 "Parse output of \"svn status\" command in the current buffer. 676 "Parse output of \"svn status\" command in the current buffer.
677Set file properties accordingly. Unless FILENAME is non-nil, parse only 677Set file properties accordingly. If FILENAME is non-nil, return its status."
678information about FILENAME and return its status." 678 (let (multifile file status propstat)
679 (let (file status propstat)
680 (goto-char (point-min)) 679 (goto-char (point-min))
681 (while (re-search-forward 680 (while (re-search-forward
682 ;; Ignore the files with status X. 681 ;; Ignore the files with status X.
683 "^\\(?:\\?\\|[ ACDGIMR!~][ MC][ L][ +][ S]..\\([ *]\\) +\\([-0-9]+\\) +\\([0-9?]+\\) +\\([^ ]+\\)\\) +" nil t) 682 "^\\(?:\\?\\|[ ACDGIMR!~][ MC][ L][ +][ S]..\\([ *]\\) +\\([-0-9]+\\) +\\([0-9?]+\\) +\\([^ ]+\\)\\) +" nil t)
684 ;; If the username contains spaces, the output format is ambiguous, 683 ;; If the username contains spaces, the output format is ambiguous,
685 ;; so don't trust the output's filename unless we have to. 684 ;; so don't trust the output's filename unless we have to.
686 (setq file (or filename 685 (setq file (or (unless multifile filename)
687 (expand-file-name 686 (expand-file-name
688 (buffer-substring (point) (line-end-position))))) 687 (buffer-substring (point) (line-end-position))))
689 (setq status (char-after (line-beginning-position)) 688 ;; If we are parsing the result of running status on a directory,
689 ;; there could be multiple files in the output.
690 ;; We assume that filename, if supplied, applies to the first
691 ;; listed file (ie, the directory). Bug#15322.
692 multifile t
693 status (char-after (line-beginning-position))
690 ;; Status of the item's properties ([ MC]). 694 ;; Status of the item's properties ([ MC]).
691 propstat (char-after (1+ (line-beginning-position)))) 695 propstat (char-after (1+ (line-beginning-position))))
692 (if (eq status ??) 696 (if (eq status ??)
diff --git a/src/ChangeLog b/src/ChangeLog
index e1276f54d03..88aa22b30dc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-09-12 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * xterm.c (x_set_scroll_bar_thumb) [USE_LUCID && !HAVE_XAW3D]: Clip
4 scroll bar values to prevent thumb from disappear and update comment.
5
12013-09-11 Glenn Morris <rgm@gnu.org> 62013-09-11 Glenn Morris <rgm@gnu.org>
2 7
3 * emacs.c (usage_message): Possessive apostrophe tweak. 8 * emacs.c (usage_message): Possessive apostrophe tweak.
diff --git a/src/xterm.c b/src/xterm.c
index 322bacf2332..6004fcf6c0a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4807,12 +4807,21 @@ x_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int positio
4807 top = max (0, min (1, top)); 4807 top = max (0, min (1, top));
4808 else 4808 else
4809 top = old_top; 4809 top = old_top;
4810#if ! defined (HAVE_XAW3D)
4811 /* With Xaw, 'top' values too closer to 1.0 may
4812 cause the thumb to disappear. Fix that. */
4813 top = min (top, 0.99f);
4814#endif
4810 /* Keep two pixels available for moving the thumb down. */ 4815 /* Keep two pixels available for moving the thumb down. */
4811 shown = max (0, min (1 - top - (2.0f / height), shown)); 4816 shown = max (0, min (1 - top - (2.0f / height), shown));
4817#if ! defined (HAVE_XAW3D)
4818 /* Likewise with too small 'shown'. */
4819 shown = max (shown, 0.01f);
4820#endif
4812 4821
4813 /* If the call to XawScrollbarSetThumb below doesn't seem to work, 4822 /* If the call to XawScrollbarSetThumb below doesn't seem to
4814 check that your system's configuration file contains a define 4823 work, check that 'NARROWPROTO' is defined in src/config.h.
4815 for `NARROWPROTO'. See s/freebsd.h for an example. */ 4824 If this is not so, most likely you need to fix configure. */
4816 if (top != old_top || shown != old_shown) 4825 if (top != old_top || shown != old_shown)
4817 { 4826 {
4818 if (bar->dragging == -1) 4827 if (bar->dragging == -1)