aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-03-23 20:38:07 +0000
committerAndrea Corallo2020-03-23 20:38:07 +0000
commit8cc8adb04d2861fb1b1bbb38e53feccf3a2fc1c5 (patch)
treeed60f8dc81f670113eff18b2f656de4864bd83cc /src
parentf8b07ff4f318d799a471c9363903e3929fd5c844 (diff)
parent5d5d5d492c0f1cc500713b133b1ad3e205031714 (diff)
downloademacs-8cc8adb04d2861fb1b1bbb38e53feccf3a2fc1c5.tar.gz
emacs-8cc8adb04d2861fb1b1bbb38e53feccf3a2fc1c5.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'src')
-rw-r--r--src/data.c2
-rw-r--r--src/eval.c4
-rw-r--r--src/filelock.c10
-rw-r--r--src/ftfont.c2
-rw-r--r--src/lisp.h1
5 files changed, 10 insertions, 9 deletions
diff --git a/src/data.c b/src/data.c
index 173b92c5bf4..2820f647981 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1602,7 +1602,7 @@ notify_variable_watchers (Lisp_Object symbol,
1602/* Return the default value of SYMBOL, but don't check for voidness. 1602/* Return the default value of SYMBOL, but don't check for voidness.
1603 Return Qunbound if it is void. */ 1603 Return Qunbound if it is void. */
1604 1604
1605static Lisp_Object 1605Lisp_Object
1606default_value (Lisp_Object symbol) 1606default_value (Lisp_Object symbol)
1607{ 1607{
1608 struct Lisp_Symbol *sym; 1608 struct Lisp_Symbol *sym;
diff --git a/src/eval.c b/src/eval.c
index e5c850a579e..6de81e5467f 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3825,7 +3825,7 @@ backtrace_eval_unrewind (int distance)
3825 { 3825 {
3826 Lisp_Object sym = specpdl_symbol (tmp); 3826 Lisp_Object sym = specpdl_symbol (tmp);
3827 Lisp_Object old_value = specpdl_old_value (tmp); 3827 Lisp_Object old_value = specpdl_old_value (tmp);
3828 set_specpdl_old_value (tmp, Fdefault_value (sym)); 3828 set_specpdl_old_value (tmp, default_value (sym));
3829 Fset_default (sym, old_value); 3829 Fset_default (sym, old_value);
3830 } 3830 }
3831 break; 3831 break;
@@ -3841,7 +3841,7 @@ backtrace_eval_unrewind (int distance)
3841 if (!NILP (Flocal_variable_p (symbol, where))) 3841 if (!NILP (Flocal_variable_p (symbol, where)))
3842 { 3842 {
3843 set_specpdl_old_value 3843 set_specpdl_old_value
3844 (tmp, Fbuffer_local_value (symbol, where)); 3844 (tmp, buffer_local_value (symbol, where));
3845 set_internal (symbol, old_value, where, SET_INTERNAL_UNBIND); 3845 set_internal (symbol, old_value, where, SET_INTERNAL_UNBIND);
3846 } 3846 }
3847 } 3847 }
diff --git a/src/filelock.c b/src/filelock.c
index 73202f0b2c4..2b734ee00d5 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -680,6 +680,9 @@ lock_file (Lisp_Object fn)
680 dostounix_filename (SSDATA (fn)); 680 dostounix_filename (SSDATA (fn));
681#endif 681#endif
682 encoded_fn = ENCODE_FILE (fn); 682 encoded_fn = ENCODE_FILE (fn);
683 if (create_lockfiles)
684 /* Create the name of the lock-file for file fn */
685 MAKE_LOCK_NAME (lfname, encoded_fn);
683 686
684 /* See if this file is visited and has changed on disk since it was 687 /* See if this file is visited and has changed on disk since it was
685 visited. */ 688 visited. */
@@ -690,7 +693,8 @@ lock_file (Lisp_Object fn)
690 693
691 if (!NILP (subject_buf) 694 if (!NILP (subject_buf)
692 && NILP (Fverify_visited_file_modtime (subject_buf)) 695 && NILP (Fverify_visited_file_modtime (subject_buf))
693 && !NILP (Ffile_exists_p (fn))) 696 && !NILP (Ffile_exists_p (fn))
697 && (!create_lockfiles || current_lock_owner (NULL, lfname) != -2))
694 call1 (intern ("userlock--ask-user-about-supersession-threat"), fn); 698 call1 (intern ("userlock--ask-user-about-supersession-threat"), fn);
695 699
696 } 700 }
@@ -698,10 +702,6 @@ lock_file (Lisp_Object fn)
698 /* Don't do locking if the user has opted out. */ 702 /* Don't do locking if the user has opted out. */
699 if (create_lockfiles) 703 if (create_lockfiles)
700 { 704 {
701
702 /* Create the name of the lock-file for file fn */
703 MAKE_LOCK_NAME (lfname, encoded_fn);
704
705 /* Try to lock the lock. FIXME: This ignores errors when 705 /* Try to lock the lock. FIXME: This ignores errors when
706 lock_if_free returns a positive errno value. */ 706 lock_if_free returns a positive errno value. */
707 if (lock_if_free (&lock_info, lfname) < 0) 707 if (lock_if_free (&lock_info, lfname) < 0)
diff --git a/src/ftfont.c b/src/ftfont.c
index 2b442ead4bf..6b549c3ddf2 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -119,7 +119,7 @@ static struct
119 { "jisx0213.2004-1", { 0x20B9F }}, 119 { "jisx0213.2004-1", { 0x20B9F }},
120 { "viscii1.1-1", { 0x1EA0, 0x1EAE, 0x1ED2 }, "vi"}, 120 { "viscii1.1-1", { 0x1EA0, 0x1EAE, 0x1ED2 }, "vi"},
121 { "tis620.2529-1", { 0x0E01 }, "th"}, 121 { "tis620.2529-1", { 0x0E01 }, "th"},
122 { "windows-1251", { 0x0401, 0x0490 }, "ru"}, 122 { "microsoft-cp1251", { 0x0401, 0x0490 }, "ru"},
123 { "koi8-r", { 0x0401, 0x2219 }, "ru"}, 123 { "koi8-r", { 0x0401, 0x2219 }, "ru"},
124 { "mulelao-1", { 0x0E81 }, "lo"}, 124 { "mulelao-1", { 0x0E81 }, "lo"},
125 { "unicode-sip", { 0x20000 }}, 125 { "unicode-sip", { 0x20000 }},
diff --git a/src/lisp.h b/src/lisp.h
index 96959764879..f86b4880f35 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -595,6 +595,7 @@ extern void char_table_set (Lisp_Object, int, Lisp_Object);
595 595
596/* Defined in data.c. */ 596/* Defined in data.c. */
597extern AVOID wrong_type_argument (Lisp_Object, Lisp_Object); 597extern AVOID wrong_type_argument (Lisp_Object, Lisp_Object);
598extern Lisp_Object default_value (Lisp_Object symbol);
598 599
599 600
600/* Defined in emacs.c. */ 601/* Defined in emacs.c. */