From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Segundo Bob Newsgroups: gmane.emacs.help Subject: Re: Emacs starts with current screen contents in its display buffer Date: Wed, 09 Jul 2014 18:07:19 -0700 Message-ID: <53BDE747.9020503@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1405030274 21588 80.91.229.3 (10 Jul 2014 22:11:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 22:11:14 +0000 (UTC) Cc: pjb@informatimago.com To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 11 00:11:06 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X5MYS-00015B-Iu for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jul 2014 00:11:04 +0200 Original-Received: from localhost ([::1]:34941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X52q7-0002KI-OG for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jul 2014 21:07:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X52ph-0002JP-7A for help-gnu-emacs@gnu.org; Wed, 09 Jul 2014 21:07:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X52pY-0005Rh-0w for help-gnu-emacs@gnu.org; Wed, 09 Jul 2014 21:07:33 -0400 Original-Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:51599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X52pX-0005Rb-Jc for help-gnu-emacs@gnu.org; Wed, 09 Jul 2014 21:07:23 -0400 Original-Received: by mail-pa0-f43.google.com with SMTP id lf10so10156742pab.30 for ; Wed, 09 Jul 2014 18:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:cc:subject :references:content-type:content-transfer-encoding; bh=29yc+WhlG3VhCVJaIRYEcT/atefVK5OTNez1psDwFy4=; b=KxoP056KWj4LNPdIbXCilwFxKSsZ+A7smo1xjz+9SlmQttLS/oFNjysTJWgFHb4ybf re0jiHeYaiFNuUL/Jzb/VSQb31CTNt2Y8if1377V3QSxg4gH2bZrOVu9Dldfon9PLZSn dTpf0GYy0LvM4O4IeRSlJRMpiSYFOjH7qugUbwOVQrkChx+bR3bA1mwfa0/JnpfE8UQm aE9116+7bycwVepnhsQCHUKdnNerOKDRj08aKJ62vOQaxEz6wjAg8JJw8ouXLQYwZP9p 1LpVdd/j+rwRVYa920FwQ2Wq6Fe+vQF5RVMJb6/gtsUuTX1PGk2sKHlUZGeTE5aZfb4M 03rg== X-Received: by 10.66.252.35 with SMTP id zp3mr43898749pac.40.1404954442666; Wed, 09 Jul 2014 18:07:22 -0700 (PDT) Original-Received: from [192.168.1.103] (user-0c9h1f4.cable.mindspring.com. [24.152.133.228]) by mx.google.com with ESMTPSA id r1sm30160628pdm.16.2014.07.09.18.07.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Jul 2014 18:07:21 -0700 (PDT) X-Google-Original-From: Segundo Bob User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Original-References: 87oaxdvaaq.fsf@kuiper.lan.informatimago.com X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98629 Archived-At: Pascal J. Bourguignon wrote: Try to type C-l to have emacs redisplay the current buffer? --- C-l has no effect on the display, not even a flicker. --- Pascal J. Bourguignon wrote: Use: emacs -q --no-spash What you have put in your ~/.emacs should work, it works for me. --- For me "emacs -q --no-splash" works no different than plain "emacs". Here is my ~/.emacs: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(delete-selection-mode t) '(global-linum-mode t) '(indent-tabs-mode nil) '(mark-even-if-inactive t) '(recentf-max-menu-items 30) '(recentf-max-saved-items 30) '(recentf-mode t) '(save-interprogram-paste-before-kill t) '(save-place t nil (saveplace)) '(scroll-bar-mode (quote right)) '(tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80))) '(tab-width 4) '(transient-mark-mode 1)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; 2012-03-28 W SegundoBob ;; I don't like the default font. (set-face-font 'menu "-*-liberation mono-*-*-*-*-*-*-*-*-*-*-*-*") (set-face-font 'default "-*-liberation mono-*-*-*-*-*-*-*-*-*-*-*-*") ;;; Emacs Load Path (setq load-path (append '("/home/ldi/emacs") load-path)) ;; Allow narrow to region (put 'narrow-to-region 'disabled nil) (setq-default transient-mark-mode t) (setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.htm$" . html-helper-mode) auto-mode-alist)) (setq inhibit-startup-message t) ;;; Enable use of the Gnome clipboard (setq x-select-enable-clipboard t) (setq interprogram-paste-function 'x-cut-buffer-or-selection-value) ;; Key mapping for counting words in buffer - SegundoBob (require 'count-words-buffer) (global-set-key (kbd "\C-c c") 'count-words-buffer) ;;; Key mapping for date and date-time - SegundoBob (require 'insert-date) (global-set-key (kbd "\C-c d") 'insert-date) (global-set-key (kbd "\C-c t") 'insert-date-time) ;; Miscellaneous utility functions - SegundoBob (load "bob-utils.el") ;; tabbar - SegundoBob (require 'tabbar) ; turn on the tabbar (tabbar-mode t) ;; 2011-11-27 Su SegundoBob - Sort tabs within each group (defun tabbar-add-tab (tabset object &optional append_ignored) "Add to TABSET a tab with value OBJECT if there isn't one there yet. If the tab is added, it is added at the beginning of the tab list, unless the optional argument APPEND is non-nil, in which case it is added at the end." (let ((tabs (tabbar-tabs tabset))) (if (tabbar-get-tab object tabset) tabs (let ((tab (tabbar-make-tab object tabset))) (tabbar-set-template tabset nil) (set tabset (sort (cons tab tabs) (lambda (a b) (string< (buffer-name (car a)) (buffer-name (car b)))))))))) ;; 2011-11-27 Su SegundoBob - All buffers in same group ;; Default grouping is by major mode. (setq tabbar-buffer-groups-function (lambda () (list "All"))) ;; code by Peter Barabas ;; 2011-11-27 Su SegundoBob - tabbar dirty buffer marker ;; Begun from code by yswzing. (defadvice tabbar-buffer-tab-label (after fixup_tab_label_space_and_flag activate) "Add a dirty-buffer mark to a tabbar name" (setq ad-return-value (if (and (buffer-modified-p (tabbar-tab-value tab)) (buffer-file-name (tabbar-tab-value tab))) (concat " + " (concat ad-return-value " ")) (concat " " (concat ad-return-value " "))))) (defun ztl-modification-state-change () "Toggle buffer dirty state" (tabbar-set-template tabbar-current-tabset nil) (tabbar-display-update)) (defun ztl-on-buffer-modification () "Initialize dirty-buffer flag before first change." (set-buffer-modified-p t) (ztl-modification-state-change)) (add-hook 'after-save-hook 'ztl-modification-state-change) (add-hook 'first-change-hook 'ztl-on-buffer-modification) ;; yswzing: I don't know how to handle revert. ;;(add-hook 'after-revert-hook 'ztl-modification-state-change) ;; tabbar - end ***** ;; I-Switch Buffers (iswitchb-mode 1) ;; 2012-07-21 Sa SegundoBob (load "adaptive-wrap-prefix.el") ;; 2012-07-21 Sa SegundoBob (require 'yaml-mode) (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) ;; 2012-07-22 Su - 2012-07-25 W SegundoBob (require 'yad-mode) (add-to-list 'auto-mode-alist '("\\.yad$" . yad-mode)) (add-hook 'yad-mode-hook (lambda () (auto-fill-mode 0) ; No auto fill. (visual-line-mode 1) ; word wrap (Visual Line Mode) (flyspell-mode 1) ; Automatic spell checking (Flyspell) (linum-mode 1) ; Display line numbers in left margin (setq tab-width 2) ; Indent 2 spaces per level for .yad only (make-variable-buffer-local 'tab-stop-list) (setq tab-stop-list '(2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80)) ;(adaptive-wrap-prefix-mode 1) ; Wrap to indentation -- Usually not desirable. )) ;; 2012-07-23 M SegundoBob ;; openSUSE doesn't load the delete-selection-mode code by default (require 'delsel) (delete-selection-mode 1) ;; 2012-07-23 M SegundoBob ;; Save cursor position in file between sessions. (require 'saveplace) ;; Instead of turning it on here I turned it on in customize options ;; which put a different looking enable in the custom section somewhere above. ;;(setq-default save-place t) ;; 2013-03-17 Su SegundoBob (setq yas/root-directory '("~/emacs.d/mysnippets" "/usr/share/emacs/site-lisp/yasnippet/snippets")) ;; Map `yas/load-directory' to every element (mapc 'yas/load-directory yas/root-directory) ;; 2013-03-22 F SegundoBob (add-hook 'before-save-hook 'delete-trailing-whitespace) (column-number-mode t) (global-whitespace-mode t) ;; make whitespace-mode use just basic coloring (setq whitespace-style (quote (spaces tabs newline space-mark tab-mark newline-mark))) -- Segundo Bob SegundoBob@gmail.com