]> code.delx.au - gnu-emacs/commitdiff
Simplify part of previous Fwrite_region change
authorGlenn Morris <rgm@gnu.org>
Thu, 31 Jan 2013 16:53:37 +0000 (08:53 -0800)
committerGlenn Morris <rgm@gnu.org>
Thu, 31 Jan 2013 16:53:37 +0000 (08:53 -0800)
src/fileio.c

index ac0ce202a02ce2c60b8a60b93df0877a2dac8ffd..cd4bd4fa86e7a90624861912f33795b9393392e0 100644 (file)
@@ -4881,10 +4881,9 @@ This calls `write-region-annotate-functions' at the start, and
      We used to make this choice before calling build_annotations, but that
      leads to problems when a write-annotate-function takes care of
      unsavable chars (as was the case with X-Symbol).  */
-  Vlast_coding_system_used = NILP (Vcoding_system_for_write) ?
+  Vlast_coding_system_used =
     Fchoose_write_coding_system (start, end, filename,
-                                append, visit, lockname) :
-    Vcoding_system_for_write;
+                                 append, visit, lockname);
 
   setup_coding_system (Vlast_coding_system_used, &coding);